Package: conmux
Version: 0.12.0-1ubuntu2
Severity: important

Dear Maintainer,

The systemd service file /lib/systemd/system/conmux-daemon@service does
not work when conmux has a configuration file with a hyphen
(e.g. /etc/conmux/4460panda-es.cf)

This is due to escaping due caused by using %I.  For example:

root@vence:/etc/conmux# systemctl start conmux-dae...@4460panda-es.cf
root@vence:/etc/conmux# systemctl status conmux-dae...@4460panda-es.cf
● conmux-dae...@4460panda-es.cf.service - CONMUX daemon for 
/etc/conmux/4460panda/es.cf
   Loaded: loaded (/lib/systemd/system/conmux-daemon@.service; static; vendor 
preset: enabled)
   Active: inactive (dead) since Thu 2016-07-14 13:48:33 PDT; 38s ago
Condition: start condition failed at Thu 2016-07-14 13:49:05 PDT; 6s ago
           ConditionFileNotEmpty=/etc/conmux/4460panda/es.cf was not met
 Main PID: 2111 (code=killed, signal=TERM)

Here you see that the %I causes the '-' to be interpreted as an escaped '/' and 
so
it gets converted, and thus causes the startup to fail since
4460panda/es.cf doesn't in fact exist.

Since the conmux config files are not meant to be absolute paths, the %I  should
be converted to a %i, which will allow conmux configs with '-' in the filename 
to
be handled properly.

I verified that changing all instances of %I to %i in conmux-daemon@service got 
things 
working again.

I've encountered this bug both on Debian jessie and Ubuntu xenial, and
in both cases this change fixes the problem.

Kevin

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (100, 'xenial-backports')
Architecture: i386 (i686)

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

Versions of packages conmux depends on:
ii  init-system-helpers               1.29ubuntu2
ii  libio-multiplex-perl              1.16-1
ii  liburi-perl                       1.71-1
ii  lsb-base                          9.20160110ubuntu0.2
ii  perl                              5.22.1-9
ii  perl-modules-5.22 [perl-modules]  5.22.1-9

Versions of packages conmux recommends:
ii  expect  5.45-7

conmux suggests no packages.

-- debconf-show failed

Reply via email to