]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/logger.c
logger: do not exit when socket errors are not enforced
authorSami Kerola <kerolasa@iki.fi>
Sun, 19 Jul 2015 20:19:12 +0000 (21:19 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Jul 2015 08:54:44 +0000 (10:54 +0200)
commit9b83e7a48d023b2822de930c9408a127654144f1
treed00da796a714a524b99bccb55a020fd62cdf7358
parent46e43c986017b408688e9f302b421ad554d9ff5f
logger: do not exit when socket errors are not enforced

The libc openlog(3) does not have error detection whether unix socket
could be opened.  As a side effect that made it possible to use logger
even if syslogd was not running.  Of course user message in these cases
were lost.  This change makes the logger do behave similar way again, so
that sysvinit scripts can successfully pipe messages to logger when ever.

Addresses: https://bugs.debian.org/787864
Addresses: https://bugs.debian.org/790875
Reported-by: Andreas Beckmann <anbe@debian.org>
Reported-by: Andreas Henriksson <andreas@fatal.se>
Tested-by: Robie Basak <robie.basak@ubuntu.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/logger.c