aboutsummaryrefslogtreecommitdiff
path: root/syslogd/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd/main.c')
-rw-r--r--syslogd/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syslogd/main.c b/syslogd/main.c
index b1b70b0..79d6325 100644
--- a/syslogd/main.c
+++ b/syslogd/main.c
@@ -134,12 +134,12 @@ static int print_to_log(const syslog_msg_t *msg)
return -1;
for (log = logfiles; log != NULL; log = log->next) {
- if (!strcmp(log->name, fac_name))
+ if (log->facility == msg->facility)
break;
}
if (log == NULL) {
- log = logfile_create(fac_name);
+ log = logfile_create(fac_name, msg->facility);
if (log == NULL)
return -1;
log->next = logfiles;