Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347788
b: refs/heads/master
c: 582aa64
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Al Viro committed Dec 20, 2012
1 parent 8a889d9 commit b824327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e75529e3c6c18dc535f38454173c4f2dfa99685
refs/heads/master: 582aa64a04a579d47d05e4a0ee85bf047978ef4d
7 changes: 1 addition & 6 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1903,6 +1903,7 @@ static int path_init(int dfd, const char *name, unsigned int flags,
get_fs_pwd(current->fs, &nd->path);
}
} else {
/* Caller must check execute permissions on the starting path component */
struct fd f = fdget_raw(dfd);
struct dentry *dentry;

Expand All @@ -1916,12 +1917,6 @@ static int path_init(int dfd, const char *name, unsigned int flags,
fdput(f);
return -ENOTDIR;
}

retval = inode_permission(dentry->d_inode, MAY_EXEC);
if (retval) {
fdput(f);
return retval;
}
}

nd->path = f.file->f_path;
Expand Down

0 comments on commit b824327

Please sign in to comment.