From 34a2dc4bfce222a6eb858bc5effab0091bf0db2e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 20 Sep 2011 01:28:00 +0200 Subject: [PATCH] condition: in ConditionPathIsExecutable follow symlinks https://bugzilla.redhat.com/show_bug.cgi?id=737047 --- src/condition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2