From a9f85a39c52807920061d526082d9681e1c2cb45 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Sat, 12 Jan 2008 14:44:05 +0000 Subject: [PATCH 1/5] openlog() to syslog for global ulogd log messages 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 --- src/ulogd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ulogd.c b/src/ulogd.c index 2f23d2a..853b408 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -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"); -- cgit v1.2.3