summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-21 01:07:25 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-21 01:07:25 +0200
commit8571962ca31a468959eedce26fda278587327ba5 (patch)
treec682369b9b2df7c22091d42d9e6875e067cfba40 /src
parentdb01f8b3f870611a013b913636bb7fefaab34018 (diff)
condition: always follow symlinks for condition checks, to mimic test
Diffstat (limited to 'src')
-rw-r--r--src/condition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/condition.c b/src/condition.c
index 131b456806..7f8564966a 100644
--- a/src/condition.c
+++ b/src/condition.c
@@ -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;
}