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)
commit0c124f8b2c93d2c7d6eefca3bdc59b28250fc077
treee596a73a7de8823e8b93509a1626c5c3fd2a4673
parent59059b4a0769dd042a92159e7d35d2fea62f795d
unit-name: fix escaping logic in unit_name_mangle_with_suffix()

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
src/shared/unit-name.c