summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--syslogd.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 947abb4b..bba449d9 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,8 @@ Version 1.12.2 (RGer), 2005-12-??
- added support for field-extracting in the property replacer
- enhanced the legacy-syslog parser so that it can interpret messages
that do not contain a TIMESTAMP
+- fixed a bug that caused the default socket (usually /dev/log) to be
+ opened even when -o command line option was given
---------------------------------------------------------------------------
Version 1.12.1 (RGer), 2005-11-23
- made multithreading work with BSD. Some signal-handling needed to be
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]);