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.]

(cherry picked from commit c0e57ba9e2)
This commit is contained in:
Umut Tezduyar Lindskog
2015-01-15 22:43:37 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent 4aad055e8f
commit 79cc383701
+1 -1
View File
@@ -519,7 +519,7 @@ fallback:
if (r < 0)
return r;
r = lstat(parent, &b);
r = stat(parent, &b);
if (r < 0)
return -errno;