chiark / gitweb /
unit-name: fix escaping logic in unit_name_mangle_with_suffix()
authorIvan Shapovalov <intelfx100@gmail.com>
Tue, 25 Nov 2014 18:58:14 +0000 (21:58 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Nov 2014 05:24:53 +0000 (00:24 -0500)
Make screened character set consistent with unit_name_mangle() by splitting off
the escaping loop into a separate function.

Before this fix, unit names such as `foo@bar.target` would get transformed
into `foo\x40bar.target` when unit_name_mangle_with_suffix() is used.

https://bugs.freedesktop.org/show_bug.cgi?id=86711


No differences found