diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-06-17 16:27:10 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-06-17 16:27:26 +0200 |
commit | 8a8f49a501fd109bcb722afff7eb2c7852a04107 (patch) | |
tree | 10702f4086c6df7720c53ed4de5f81cb0d308c38 /syslogd/logfile.c | |
parent | f1cc12f55ebb51209cb26e71985d35c5e6671520 (diff) |
usyslogd: do logfile lookup by facility number
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'syslogd/logfile.c')
-rw-r--r-- | syslogd/logfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/syslogd/logfile.c b/syslogd/logfile.c index a59f7e7..5687750 100644 --- a/syslogd/logfile.c +++ b/syslogd/logfile.c @@ -25,7 +25,7 @@ #include "logfile.h" -logfile_t *logfile_create(const char *name) +logfile_t *logfile_create(const char *name, int facility) { logfile_t *file; @@ -36,6 +36,7 @@ logfile_t *logfile_create(const char *name) } strcpy(file->name, name); + file->facility = facility; file->fd = open(file->name, O_WRONLY | O_CREAT, 0640); if (file->fd < 0) |