From: Umut Tezduyar Lindskog Date: Tue, 16 Dec 2014 20:58:39 +0000 (+0100) Subject: path: follow symbolic link for parent path X-Git-Tag: v219~961 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c0e57ba9e22ee937722958d8b912ade2a37f206d 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.] --- 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;