Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157285
b: refs/heads/master
c: b7a437b
h: refs/heads/master
i:
  157283: b07db60
v: v3
  • Loading branch information
Linus Torvalds committed Sep 8, 2009
1 parent f917975 commit dc4c858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: e8e66ed25b5cbeebed69c475f6c108e52078a3b3
refs/heads/master: b7a437b08a44a3ed7e3a052eb39d2c5f618b603b
5 changes: 1 addition & 4 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ static int exec_permission_lite(struct inode *inode)
umode_t mode = inode->i_mode;

if (inode->i_op->permission)
return -EAGAIN;
return inode_permission(inode, MAY_EXEC);

if (current_fsuid() == inode->i_uid)
mode >>= 6;
Expand Down Expand Up @@ -853,9 +853,6 @@ static int __link_path_walk(const char *name, struct nameidata *nd)

nd->flags |= LOOKUP_CONTINUE;
err = exec_permission_lite(inode);
if (err == -EAGAIN)
err = inode_permission(nd->path.dentry->d_inode,
MAY_EXEC);
if (err)
break;

Expand Down

0 comments on commit dc4c858

Please sign in to comment.