[systemd-commits] src/condition.c

Lennart Poettering lennart at kemper.freedesktop.org
Mon Sep 19 16:28:27 PDT 2011


 src/condition.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 34a2dc4bfce222a6eb858bc5effab0091bf0db2e
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Sep 20 01:28:00 2011 +0200

    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 8c08be4..933aec8 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;



More information about the systemd-commits mailing list