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>
Sun, 31 May 2020 05:05:13 +0000 (07:05 +0200)
commitc1a83277d0866c6f16760823a93d41c5a923fcd7
tree4a75f5eede2d9dbd664858bac3c99b3e5a78cef2
parent1f382d818dd0e39427af9c503592ff9e06ba50d4
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

(cherry picked from commit efdbf5fe9c4222725899d0e1093a09c5d649ab68)
src/shared/install.c