chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
condition: always follow symlinks for condition checks, to mimic test
[elogind.git]
/
src
/
condition.c
diff --git
a/src/condition.c
b/src/condition.c
index 131b456806c2282cc9ef7a96a2073ed086f8dc7c..7f8564966a22cdc39dcce79eaa693c445da9d2f3 100644
(file)
--- a/
src/condition.c
+++ b/
src/condition.c
@@
-162,7
+162,7
@@
bool condition_test(Condition *c) {
case CONDITION_PATH_IS_DIRECTORY: {
struct stat st;
- if (
l
stat(c->parameter, &st) < 0)
+ if (stat(c->parameter, &st) < 0)
return !c->negate;
return S_ISDIR(st.st_mode) == !c->negate;
}