diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-09-22 14:46:09 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-09-22 18:40:26 +0200 |
commit | d2561cfdf772c621963e62b52cfbf57d6f75178d (patch) | |
tree | ae983da05e0c2c8b421f86571866c7ba7aed4cd9 /src/shared/path-lookup.h | |
parent | d9b4b48f3fee12293cc911929d1d92a01a5c69c9 (diff) | |
download | systemd-d2561cfdf772c621963e62b52cfbf57d6f75178d.tar.gz |
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.
Diffstat (limited to 'src/shared/path-lookup.h')
-rw-r--r-- | src/shared/path-lookup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/path-lookup.h b/src/shared/path-lookup.h index 45fba64d2a..fc8b8ed8c7 100644 --- a/src/shared/path-lookup.h +++ b/src/shared/path-lookup.h @@ -67,6 +67,8 @@ struct LookupPaths { }; int lookup_paths_init(LookupPaths *p, UnitFileScope scope, LookupPathsFlags flags, const char *root_dir); +bool path_is_user_data_dir(const char *path); +bool path_is_user_config_dir(const char *path); int lookup_paths_reduce(LookupPaths *p); |