int retval = 0;
nd->last_type = LAST_ROOT; /* if there are only slashes... */
- nd->flags = flags | LOOKUP_JUMPED;
+ nd->flags = flags | LOOKUP_JUMPED | LOOKUP_PARENT;
nd->depth = 0;
nd->base = NULL;
if (flags & LOOKUP_ROOT) {
* be handled by restarting a traditional ref-walk (which will always
* be able to complete).
*/
- err = path_init(dfd, name, flags | LOOKUP_PARENT, nd);
+ err = path_init(dfd, name, flags, nd);
if (unlikely(err))
goto out;
struct nameidata nd;
int err;
- err = path_init(dfd, name, flags | LOOKUP_PARENT, &nd);
+ err = path_init(dfd, name, flags, &nd);
if (unlikely(err))
goto out;
goto out;
}
- error = path_init(dfd, pathname->name, flags | LOOKUP_PARENT, nd);
+ error = path_init(dfd, pathname->name, flags, nd);
if (unlikely(error))
goto out;