diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-04-27 22:30:28 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-27 22:30:50 +0200 |
commit | e190aa0be1fa6cb1f56e036598ba90d58d16d9e8 (patch) | |
tree | 1b69f84c1745b68dd0f292468de779fd03ee0963 /src/systemctl.c | |
parent | ecb963cc40a0270a357c2640d368b3116e0f56b6 (diff) |
systemctl: whitelist /etc instead of blacklisting /lib to figure out if [Install] is needed
Diffstat (limited to 'src/systemctl.c')
-rw-r--r-- | src/systemctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index d1d73bfa01..10c6319b4e 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -4157,8 +4157,7 @@ static int install_info_apply(const char *verb, LookupPaths *paths, InstallInfo if (streq(verb, "is-enabled") && strv_isempty(i->aliases) && strv_isempty(i->wanted_by) && - (path_startswith(filename, "/lib") || - path_startswith(filename, "/usr"))) + !path_startswith(filename, "/etc")) return 1; i->path = filename; |