From c0e57ba9e22ee937722958d8b912ade2a37f206d Mon Sep 17 00:00:00 2001 From: Umut Tezduyar Lindskog Date: Tue, 16 Dec 2014 21:58:39 +0100 Subject: [PATCH] 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.] --- src/shared/path-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 3256deeec..9e2fd6434 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; -- 2.30.2