chiark / gitweb /
condition: always follow symlinks for condition checks, to mimic test
[elogind.git] / src / condition.c
index 131b456806c2282cc9ef7a96a2073ed086f8dc7c..7f8564966a22cdc39dcce79eaa693c445da9d2f3 100644 (file)
@@ -162,7 +162,7 @@ bool condition_test(Condition *c) {
         case CONDITION_PATH_IS_DIRECTORY: {
                 struct stat st;
 
-                if (lstat(c->parameter, &st) < 0)
+                if (stat(c->parameter, &st) < 0)
                         return !c->negate;
                 return S_ISDIR(st.st_mode) == !c->negate;
         }