summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Tomaschewski <mt@suse.de>2008-09-10 11:53:34 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-10 11:53:34 +0200
commit7ad8addeb5b16669d67492188cb18646dd562484 (patch)
tree647e5d188fd81e322c6ccf57079f5840fe94fcb2
parent8cb83af1118b633d88cd01fefe2571e91918a9f9 (diff)
downloadrsyslog-7ad8addeb5b16669d67492188cb18646dd562484.tar.gz
rsyslog-7ad8addeb5b16669d67492188cb18646dd562484.tar.xz
rsyslog-7ad8addeb5b16669d67492188cb18646dd562484.zip
bugfix: option value for legacy -a option could not be specified
resulting in strange operations. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
-rw-r--r--ChangeLog3
-rw-r--r--syslogd.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1534f36b..35041e63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,9 @@ Version 3.18.4 (rgerhards), 2008-09-??
to the correct value of 8, which disables the functionality. This
problem applied both to the main message queue and the action queues.
Thanks to Raoul Bhatia for pointing out this problem.
+- bugfix: option value for legacy -a option could not be specified,
+ resulting in strange operations. Thanks to Marius Tomaschewski
+ for the patch.
---------------------------------------------------------------------------
Version 3.18.3 (rgerhards), 2008-08-18
- bugfix: imfile could cause a segfault upon rsyslogd HUP and termination
diff --git a/syslogd.c b/syslogd.c
index d90ead7f..a5483d80 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -3075,7 +3075,7 @@ int realMain(int argc, char **argv)
* only when actually neeeded.
* rgerhards, 2008-04-04
*/
- while ((ch = getopt(argc, argv, "46aAc:def:g:hi:l:m:M:nopqQr::s:t:u:vwx")) != EOF) {
+ while ((ch = getopt(argc, argv, "46a:Ac:def:g:hi:l:m:M:nopqQr::s:t:u:vwx")) != EOF) {
switch((char)ch) {
case '4':
case '6':