]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/install: add a bit more quoting
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Mar 2022 10:09:25 +0000 (11:09 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 14:17:56 +0000 (16:17 +0200)
commite75a26d0457d67a3146ff2d90af07db22213da3c
tree0076f3db957c82dde3e40ed70640d56e6abda8c8
parent047d37dc3d376d912275c14d217f7a0dda9a5f0e
shared/install: add a bit more quoting

When we are printing a valid unit name, quoting isn't necessary, because
unit names cannot contain whitespace or other confusing characters. In particular
if the unit name is prefixed by " unit " or something else that clearly
identifies the string as a unit name, quoting would just add unnecessary
noise. But when we're printing paths or invalid names, it's better to add
quotes for clarity.
src/shared/install.c