Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310060
b: refs/heads/master
c: af2f554
h: refs/heads/master
v: v3
  • Loading branch information
Miklos Szeredi authored and Al Viro committed Jun 1, 2012
1 parent 65c343f commit 59c72f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54c33e7f95284539e52ec2d99dcdf6efd29b247f
refs/heads/master: af2f55426d1d888dcc0ba8dc9e9deb49fae38e38
3 changes: 3 additions & 0 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,9 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
error = -EISDIR;
if (S_ISDIR(nd->inode->i_mode))
goto exit;
error = -ENOTDIR;
if ((nd->flags & LOOKUP_DIRECTORY) && !nd->inode->i_op->lookup)
goto exit;
ok:
if (!S_ISREG(nd->inode->i_mode))
will_truncate = 0;
Expand Down

0 comments on commit 59c72f3

Please sign in to comment.