From: /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net Date: Sat, 12 Jan 2008 14:44:05 +0000 (+0000) Subject: [PATCH 1/5] openlog() to syslog for global ulogd log messages X-Git-Tag: ulogd-2.0.0beta2~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f85a39c52807920061d526082d9681e1c2cb45;p=thirdparty%2Fulogd2.git [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 --- 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");