From e190aa0be1fa6cb1f56e036598ba90d58d16d9e8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Apr 2011 22:30:28 +0200 Subject: systemctl: whitelist /etc instead of blacklisting /lib to figure out if [Install] is needed --- src/systemctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf