summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUmut Tezduyar Lindskog <umut.tezduyar@axis.com>2014-12-16 21:58:39 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-12-20 10:11:13 -0500
commit691bd2810bac9b591f8246ca832415b6c04f58e8 (patch)
tree05a3830c9596d0e2b47239ec49569bdd023b1034 /src
parent0ec88a3573a882f7c8cd23b011e42ffa7e01397d (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.] Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-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 4367fa7088..f64701a48d 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -380,7 +380,7 @@ fallback:
if (r < 0)
return r;
- r = lstat(parent, &b);
+ r = stat(parent, &b);
if (r < 0)
return -errno;