From: Lennart Poettering Date: Mon, 19 Sep 2011 23:28:00 +0000 (+0200) Subject: condition: in ConditionPathIsExecutable follow symlinks X-Git-Tag: v36~55 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=34a2dc4bfce222a6eb858bc5effab0091bf0db2e condition: in ConditionPathIsExecutable follow symlinks https://bugzilla.redhat.com/show_bug.cgi?id=737047 --- diff --git a/src/condition.c b/src/condition.c index 8c08be43e..933aec848 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;