]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared: treat generator units as vendor units
authorJeremy Cline <jcline@redhat.com>
Fri, 15 May 2020 20:28:35 +0000 (16:28 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 May 2020 08:03:40 +0000 (10:03 +0200)
commitefdbf5fe9c4222725899d0e1093a09c5d649ab68
tree6bee0c3dc5b396fb0eb2a2ccfc207b3472af4198
parent9b3278d90704416bfe51a05d5681caf99445fb2f
shared: treat generator units as vendor units

Units created with "systemctl edit --full" from generator units aren't
removed with "systemctl revert" because units in the generator,
generator_early, and generator_late paths aren't considered vendor
units.

Alter path_is_vendor() to return true if the given path is a
generator unit, which in turn causes "systemctl revert" to remove units
created with "systemctl edit --full" as they now have vendor versions.

Fixes #10053
src/shared/install.c