chiark / gitweb /
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 d1d73bf..10c6319 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) &&
         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;
                 return 1;
 
         i->path = filename;