summaryrefslogtreecommitdiff
path: root/src/condition.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-20 01:28:00 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-20 01:28:07 +0200
commit34a2dc4bfce222a6eb858bc5effab0091bf0db2e (patch)
treea9dd017b258aa230051f5481a918b1f85a437c69 /src/condition.c
parenta373b0e7bc24b8fffe0ba69e8b92eebf2740332e (diff)
condition: in ConditionPathIsExecutable follow symlinks
https://bugzilla.redhat.com/show_bug.cgi?id=737047
Diffstat (limited to 'src/condition.c')
-rw-r--r--src/condition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/condition.c b/src/condition.c
index 8c08be43e4..933aec8485 100644
--- 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 (lstat(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;