Package: irker
Version: 2.12+dfsg-1
Severity: normal

Dear Maintainer,

lines 989-993 of `/usr/bin/irkerd' look like this:

        logdev = [x for x in ('/dev/log', '/var/run/syslog', '/var/run/log')
                  if os.path.exists(x)]
        if len(logdev) != 1:
            sys.stderr.write("can't initialize log device, bailing out!\n")
            raise SystemExit(1)

However, on my host running jessie and systemd, both /dev/log and /var/run/log
exist:

  $ ls -ld '/dev/log' '/var/run/syslog' '/var/run/log'
  ls: cannot access /var/run/syslog: No such file or directory
  lrwxrwxrwx 1 root root 28 Jun 22  2015 /dev/log -> 
/run/systemd/journal/dev-log
  drwxr-xr-x 3 root root 60 Jun 22  2015 /var/run/log

As a result, irker exits with the respective failure message right after it has
been started.

A trivial patch, which forks for me, is attached.

Cheers, 
 - Roland


-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages irker depends on:
ii  adduser              3.113+nmu3
ii  init-system-helpers  1.22
pn  python:any           <none>

irker recommends no packages.

irker suggests no packages.

-- no debconf information
--- /home/rohieb/irkerd.orig	2016-02-11 21:35:18.908000000 +0100
+++ /usr/bin/irkerd	2016-02-11 21:35:52.896000000 +0100
@@ -988,7 +988,7 @@
         # The Linux, Mac, and FreeBSD values of the logging device.
         logdev = [x for x in ('/dev/log', '/var/run/syslog', '/var/run/log')
                   if os.path.exists(x)]
-        if len(logdev) != 1:
+        if len(logdev) < 1:
             sys.stderr.write("can't initialize log device, bailing out!\n")
             raise SystemExit(1)
         # There's a case for falling back to address = ('localhost', 514)

Reply via email to