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

Felipe Sateler fsateler at debian.org
Thu Apr 7 19:56:45 BST 2016

On 7 April 2016 at 15:26, Dan Nicholson <nicholson at endlessm.com> wrote:
> 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.

AFAICT, the only difference between quotewords and split is that
quotewords takes into account quotes to allow "multiple words" to be
parsed as a single token. I don't think we have use for such a feature
(there are no such files in the archive).

So, unless I'm missing something, this could be further simplified to
just use split.


Felipe Sateler

More information about the Pkg-systemd-maintainers mailing list