]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/unit-file: fix systemctl cat user@.service
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 6 Aug 2019 19:20:07 +0000 (21:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Aug 2019 14:20:49 +0000 (16:20 +0200)
commitb208cbe5b41df010508f2f190dc69bca04421624
tree0316768b64e11722a3363ff3a2e7f97912853c94
parent24f36fb180fad44a1e48d13f48a85b15160ad481
shared/unit-file: fix systemctl cat user@.service

I assumed that unit_name_to_instnace() returns NULL if there is no instance.
In fact it returns "", so the check for instance was wrong.

Also avoid unnecessary call to unit_name_is_valid().
src/shared/unit-file.c