summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorUmut Tezduyar Lindskog <umut.tezduyar@axis.com>2014-12-16 21:58:39 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-16 21:19:19 -0500
commitc0e57ba9e22ee937722958d8b912ade2a37f206d (patch)
treeda75b706b38b5ac514a28e2fd17a2da6ecb55960 /src/shared
parentdd9c7723fafc8b326188efa86efe00bcbe5abcfd (diff)
path: follow symbolic link for parent path
[zj: When we lstat the target path, symlinks above the last component will be followed by both stat and lstat. So when we look at the parent, we should follow symlinks.]
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index 3256deeec1..9e2fd6434a 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -519,7 +519,7 @@ fallback:
if (r < 0)
return r;
- r = lstat(parent, &b);
+ r = stat(parent, &b);
if (r < 0)
return -errno;