mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-09-22 13:45:21 +03:00
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.]
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
dd9c7723fa
commit
c0e57ba9e2
@@ -519,7 +519,7 @@ fallback:
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
r = lstat(parent, &b);
|
r = stat(parent, &b);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user