syslogd: Only warn when opening /proc/kmsg fails, continue anyway

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-13 09:55:33 +01:00
parent 353cd10a06
commit 45c7dcc6df

View File

@ -353,7 +353,7 @@ int main(int argc, char *argv[])
#ifndef KLOGD #ifndef KLOGD
/* Attempt to open kernel log pipe */ /* Attempt to open kernel log pipe */
if (opensys(_PATH_KLOG)) if (opensys(_PATH_KLOG))
err(1, "Faield opening %s", _PATH_KLOG); warn("Kernel logging disabled, failed opening %s", _PATH_KLOG);
#endif #endif
if ((!Foreground) && (!Debug)) { if ((!Foreground) && (!Debug)) {