Loading fs/namei.c +2 −2 Original line number Diff line number Diff line Loading @@ -1859,7 +1859,7 @@ static int path_init(int dfd, const char *name, unsigned int flags, if (flags & LOOKUP_ROOT) { struct inode *inode = nd->root.dentry->d_inode; if (*name) { if (!inode->i_op->lookup) if (!can_lookup(inode)) return -ENOTDIR; retval = inode_permission(inode, MAY_EXEC); if (retval) Loading Loading @@ -1913,7 +1913,7 @@ static int path_init(int dfd, const char *name, unsigned int flags, dentry = f.file->f_path.dentry; if (*name) { if (!S_ISDIR(dentry->d_inode->i_mode)) { if (!can_lookup(dentry->d_inode)) { fdput(f); return -ENOTDIR; } Loading Loading
fs/namei.c +2 −2 Original line number Diff line number Diff line Loading @@ -1859,7 +1859,7 @@ static int path_init(int dfd, const char *name, unsigned int flags, if (flags & LOOKUP_ROOT) { struct inode *inode = nd->root.dentry->d_inode; if (*name) { if (!inode->i_op->lookup) if (!can_lookup(inode)) return -ENOTDIR; retval = inode_permission(inode, MAY_EXEC); if (retval) Loading Loading @@ -1913,7 +1913,7 @@ static int path_init(int dfd, const char *name, unsigned int flags, dentry = f.file->f_path.dentry; if (*name) { if (!S_ISDIR(dentry->d_inode->i_mode)) { if (!can_lookup(dentry->d_inode)) { fdput(f); return -ENOTDIR; } Loading