Bug#820359: init-system-helpers: Handle \ escape in systemd unit names

Dan Nicholson nicholson at endlessm.com
Thu Apr 7 19:26:59 BST 2016

Package: init-system-helpers
Version: 1.29

Systemd unit names can have valid \ escape characters. See
systemd-escape(1) for examples. When a unit references a another unit
with escaped characters, init-system-helpers handles them incorrectly.
For example, a unit file having WantedBy=foo\x2dbar.target will have
an /etc/systemd/system/foox2dbar.target.wants directory created
without the x escaped by \.

The attached patch fixes this.

Dan Nicholson  |  +1.206.437.0833  |  Endless
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-script-Handle-escapes-in-unit-names-properly.patch
Type: text/x-patch
Size: 5033 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160407/55eeb9f5/attachment-0001.bin>

More information about the Pkg-systemd-maintainers mailing list