]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/path-lookup.h
install: consider globally enabled units as "enabled" for the user 6892/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Sep 2017 12:46:09 +0000 (14:46 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Sep 2017 16:40:26 +0000 (18:40 +0200)
commitd2561cfdf772c621963e62b52cfbf57d6f75178d
treeae983da05e0c2c8b421f86571866c7ba7aed4cd9
parentd9b4b48f3fee12293cc911929d1d92a01a5c69c9
install: consider globally enabled units as "enabled" for the user

We would not consider symlinks in /etc/systemd/user/*.{wants,requires}/
towards the user unit being "enabled", because the symlinks were not
located in "config" paths. But this is confusing to users, since those units
are clearly enabled and will be started. So let's muddle the definition of
enablement a bit to include the paths only accessible to root when looking for
enabled user units.

Fixes #4432.
src/shared/install.c
src/shared/path-lookup.c
src/shared/path-lookup.h