From 707afb5d03e2e594c5e5964e8b3f74adb8cbdf55 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 10 Jan 2006 14:40:28 +0000 Subject: fixed a bug that caused the default socket (usually /dev/log) to be opened even when -o command line option was given --- syslogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syslogd.c') diff --git a/syslogd.c b/syslogd.c index 9ec41500..6939875c 100644 --- a/syslogd.c +++ b/syslogd.c @@ -6025,7 +6025,7 @@ static void init() #ifdef SYSLOG_UNIXAF - for (i = 0; i < nfunix; i++) { + for (i = startIndexUxLocalSockets ; i < nfunix ; i++) { if (funix[i] != -1) /* Don't close the socket, preserve it instead close(funix[i]); -- cgit v1.2.3