From 7ad8addeb5b16669d67492188cb18646dd562484 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski Date: Wed, 10 Sep 2008 11:53:34 +0200 Subject: bugfix: option value for legacy -a option could not be specified resulting in strange operations. Signed-off-by: Rainer Gerhards --- ChangeLog | 3 +++ syslogd.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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': -- cgit v1.2.3