From: Lennart Poettering Date: Wed, 27 Apr 2011 20:30:28 +0000 (+0200) Subject: systemctl: whitelist /etc instead of blacklisting /lib to figure out if [Install... X-Git-Tag: v26~11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e190aa0be1fa6cb1f56e036598ba90d58d16d9e8;p=systemd systemctl: whitelist /etc instead of blacklisting /lib to figure out if [Install] is needed --- diff --git a/src/systemctl.c b/src/systemctl.c index d1d73bfa..10c6319b 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;