Description of problem:
escaped systemd unit retruns wrongly escaped (and different) Id
Version-Release number of selected component (if applicable):
Latest systemd release
Steps to Reproduce:
Run show all and grep the Id of an escaped unit
# /usr/bin/systemctl --no-pager --all show -- 'systemd-fsck@dev-mapper-vg0\x2dscratch.service' |grep Id=
--> the extra x5c is the backslash (\) systemd-escape'd
no real issue with systemd-escape
# systemd-escape -u 'systemd-fsck@dev-mapper-vg0\x2dscratch.service'
on fedora27, it gives the correct Id
/usr/bin/systemctl --no-pager --all show -- "systemd-fsck@dev-mapper-vg0\x2dscratch.service" |grep Id=
fixed by https://github.com/systemd/systemd/commit/27e9c5af817147ea1c678769e45e83f2e4b4ae96
(In reply to David Tardon from comment #2)
> fixed by
Oops. That is the commit that broke it. The fix is https://github.com/systemd/systemd/commit/3dfbc968e8343172faf754a3c81e27f0dbd8f157.
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/246 -> post
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.