From b4a8712f65825093d8354731aeaeafe68ab6aa13 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 22 Feb 2005 04:42:03 +0000 Subject: [PATCH] Bug-fix: don't over-ride the syslog facility type when using the '-d' option and no facility type was specified. --- src/sbbs3/sbbscon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/sbbscon.c b/src/sbbs3/sbbscon.c index 9ebdfa31a4..03736ab9a5 100644 --- a/src/sbbs3/sbbscon.c +++ b/src/sbbs3/sbbscon.c @@ -1215,7 +1215,8 @@ int main(int argc, char** argv) #ifdef __unix__ case 'D': /* Run as daemon */ is_daemon=TRUE; - SAFECOPY(daemon_type,arg++); + if(*arg) + SAFECOPY(daemon_type,arg++); break; #endif case 'T': /* Telnet settings */ -- GitLab