]> err.no Git - systemd/commitdiff
systemctl: whitelist /etc instead of blacklisting /lib to figure out if [Install...
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Apr 2011 20:30:28 +0000 (22:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Apr 2011 20:30:50 +0000 (22:30 +0200)
src/systemctl.c

index d1d73bfa01397d5af617dbd69d6cd39454db13f3..10c6319b4e840a21c8786eaadb74bfa5f1d89f6c 100644 (file)
@@ -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;