Whamcloud - gitweb
LU-3205 llite: Set layout_gen before compatibility check
[fs/lustre-release.git] / libsysio / src / namei.c
index e339f04..63e610e 100644 (file)
@@ -186,7 +186,7 @@ _sysio_path_walk(struct pnode *parent, struct nameidata *nd)
                parent = nd->nd_root;
        }
 
-#if DEFER_INIT_CWD
+#ifdef DEFER_INIT_CWD
        if (!parent) {
                const char *icwd;
 
@@ -268,7 +268,7 @@ _sysio_path_walk(struct pnode *parent, struct nameidata *nd)
                         * except the last component.
                         */
                        ND_INIT(&nameidata,
-                               (nd->nd_flags | ND_NEGOK),
+                               nd->nd_flags,
                                lpath,
                                nd->nd_root,
                                !next.len ? nd->nd_intent : NULL);