chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a373b0e
)
condition: in ConditionPathIsExecutable follow symlinks
author
Lennart Poettering
<lennart@poettering.net>
Mon, 19 Sep 2011 23:28:00 +0000
(
01:28
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 19 Sep 2011 23:28:07 +0000
(
01:28
+0200)
https://bugzilla.redhat.com/show_bug.cgi?id=737047
src/condition.c
patch
|
blob
|
history
diff --git
a/src/condition.c
b/src/condition.c
index 8c08be43e43a14df2f7f94846ebf1c9013e868ef..933aec8485ebb5ab0ec048d8ed2a5324e45493c6 100644
(file)
--- a/
src/condition.c
+++ b/
src/condition.c
@@
-171,7
+171,7
@@
bool condition_test(Condition *c) {
case CONDITION_FILE_IS_EXECUTABLE: {
struct stat st;
- if (
l
stat(c->parameter, &st) < 0)
+ if (stat(c->parameter, &st) < 0)
return !c->negate;
return (S_ISREG(st.st_mode) && (st.st_mode & 0111)) == !c->negate;