]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
[PATCH 1/5] openlog() to syslog for global ulogd log messages
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>
Sat, 12 Jan 2008 14:44:05 +0000 (14:44 +0000)
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>
Sat, 12 Jan 2008 14:44:05 +0000 (14:44 +0000)
When [global]'s logfile is syslog, ulogd should log it's own
mesasages (not the firewall log lines) to syslog, which it
does'nt because openlog() is missing. This patch adds openlog()

Signed-off-by: Peter Warasin <peter@endian.com>
src/ulogd.c

index 2f23d2a9fd8dce8cba0d55c32b23137d2099dd12..853b408ddb44d6ab46b6bf44bf7228aad6de280a 100644 (file)
@@ -738,6 +738,7 @@ static int logfile_open(const char *name)
        if (!strcmp(name, "stdout")) {
                logfile = stdout;
        } else if (!strcmp(name, "syslog")) {
+               openlog("ulogd", LOG_PID, LOG_DAEMON);
                logfile = &syslog_dummy;
        } else {
                logfile = fopen(ulogd_logfile, "a");