summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/systemctl.c3
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;