Whamcloud - gitweb
b=10163
[fs/lustre-release.git] / libsysio / src / namei.c
index 6167189..f58713c 100644 (file)
@@ -260,6 +260,8 @@ _sysio_path_walk(struct pnode *parent, struct nameidata *nd)
                        lpath[cc] = '\0';                       /* NUL term */
                        /*
                         * Handle symbolic links with recursion. Yuck!
+                        * Pass the NULL intent for recursive symlink
+                        * except the last component.
                         */
                        ND_INIT(&nameidata,
                                (nd->nd_flags | ND_NEGOK),