[systemd-commits] src/shared

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Tue Dec 16 18:19:44 PST 2014


 src/shared/path-util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c0e57ba9e22ee937722958d8b912ade2a37f206d
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date:   Tue Dec 16 21:58:39 2014 +0100

    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 3256dee..9e2fd64 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;
 



More information about the systemd-commits mailing list