summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-08 18:05:23 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-08 18:05:23 +0200
commitc574f90c450ece3e336612e232e464b7c8d08ab1 (patch)
tree0682d86a7ea26bbf3db39f2aa82f6af2631d38b8 /syslogd.c
parentee48fa29d919cb30a80e876aa851cd30e1c5f2a8 (diff)
parent2a6b13ae0d11244648f3705dc20cc90aa83b9a3d (diff)
downloadrsyslog-c574f90c450ece3e336612e232e464b7c8d08ab1.tar.gz
rsyslog-c574f90c450ece3e336612e232e464b7c8d08ab1.tar.xz
rsyslog-c574f90c450ece3e336612e232e464b7c8d08ab1.zip
Merge branch 'v3-stable' into beta
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/syslogd.c b/syslogd.c
index 803e5239..26dd35ca 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -1741,6 +1741,7 @@ void legacyOptsHook(void)
while(pThis != NULL) {
if(pThis->line != NULL) {
+ errno = 0;
errmsg.LogError(NO_ERRCODE, "Warning: backward compatibility layer added to following "
"directive to rsyslog.conf: %s", pThis->line);
conf.cfsysline(pThis->line);
@@ -3059,7 +3060,7 @@ int realMain(int argc, char **argv)
/* END core initializations */
- while ((ch = getopt(argc, argv, "46Ac:dehi:f:g:l:m:M:nqQr::s:t:u:vwx")) != EOF) {
+ while ((ch = getopt(argc, argv, "46aAc:def:g:hi:l:m:M:nopqQr::s:t:u:vwx")) != EOF) {
switch((char)ch) {
case '4':
family = PF_INET;
@@ -3146,7 +3147,7 @@ int realMain(int argc, char **argv)
legacyOptsEnq((uchar *) "ModLoad imuxsock");
bImUxSockLoaded = 1;
}
- legacyOptsEnq((uchar *) "OmitLocaLogging");
+ legacyOptsEnq((uchar *) "OmitLocalLogging");
} else {
fprintf(stderr, "error -o is no longer supported, use module imuxsock instead");
}