diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/syslogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index e3abcc7cb..5998732bd 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -299,7 +299,7 @@ static void log_locally(char *msg) | |||
299 | | O_NOCTTY | O_APPEND | O_NONBLOCK); | 299 | | O_NOCTTY | O_APPEND | O_NONBLOCK); |
300 | if (G.logFD < 0) { | 300 | if (G.logFD < 0) { |
301 | /* cannot open logfile? - print to /dev/console then */ | 301 | /* cannot open logfile? - print to /dev/console then */ |
302 | int fd = device_open(_PATH_CONSOLE, O_WRONLY | O_NOCTTY | O_NONBLOCK); | 302 | int fd = device_open(DEV_CONSOLE, O_WRONLY | O_NOCTTY | O_NONBLOCK); |
303 | if (fd < 0) | 303 | if (fd < 0) |
304 | fd = 2; /* then stderr, dammit */ | 304 | fd = 2; /* then stderr, dammit */ |
305 | full_write(fd, msg, len); | 305 | full_write(fd, msg, len); |