summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-01-12 14:44:05 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-01-12 14:44:05 +0000
commita9f85a39c52807920061d526082d9681e1c2cb45 (patch)
tree865e427533fa729bae18864da69759c5202e6263
parentb2eda3be83f28da3c3a78d3453ed8a8fc24ff9f0 (diff)
[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 <peter@endian.com>
-rw-r--r--src/ulogd.c1
1 files changed, 1 insertions, 0 deletions
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");