From 55a03c2a353548d420c4b8b4ab23e89d5734db62 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 20 Jul 2007 11:04:52 +0000 Subject: removed incompatibility to sysklogd in syslogd -r option parsing --- syslogd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/syslogd.c b/syslogd.c index 90700a41..7e3d38b0 100644 --- a/syslogd.c +++ b/syslogd.c @@ -9060,7 +9060,7 @@ int main(int argc, char **argv) funix[i] = -1; } - while ((ch = getopt(argc, argv, "46Aa:dehi:f:l:m:nop:r:s:t:u:vwx")) != EOF) + while ((ch = getopt(argc, argv, "46Aa:dehi:f:l:m:nop:r::s:t:u:vwx")) != EOF) switch((char)ch) { case '4': family = PF_INET; @@ -9121,7 +9121,10 @@ int main(int argc, char **argv) break; case 'r': /* accept remote messages */ AcceptRemote = 1; - LogPort = optarg; + if(optarg == NULL) + LogPort = "0"; + else + LogPort = optarg; break; case 's': if (StripDomains) { -- cgit