projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb963c
)
systemctl: whitelist /etc instead of blacklisting /lib to figure out if [Install...
author
Lennart Poettering
<lennart@poettering.net>
Wed, 27 Apr 2011 20:30:28 +0000
(22:30 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 27 Apr 2011 20:30:50 +0000
(22:30 +0200)
src/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl.c
b/src/systemctl.c
index
d1d73bf
..
10c6319
100644
(file)
--- 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;