Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1843
b: refs/heads/master
c: d73ffe1
h: refs/heads/master
i:
  1841: eb1874a
  1839: 4655176
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jun 6, 2005
1 parent 147b498 commit c7a750d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 4e7506e4dd9e40c189fcbec95d5dbc92f2e5926a
refs/heads/master: d73ffe16b8baafae6e9249acee6b50c24099c6de
5 changes: 4 additions & 1 deletion trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,7 @@ int open_namei(const char * pathname, int flag, int mode, struct nameidata *nd)
nd->flags &= ~LOOKUP_PARENT;
down(&dir->d_inode->i_sem);
path.dentry = __lookup_hash(&nd->last, nd->dentry, nd);
path.mnt = nd->mnt;

do_last:
error = PTR_ERR(path.dentry);
Expand Down Expand Up @@ -1479,7 +1480,8 @@ int open_namei(const char * pathname, int flag, int mode, struct nameidata *nd)
error = -ELOOP;
if (flag & O_NOFOLLOW)
goto exit_dput;
while (__follow_down(&nd->mnt,&path.dentry) && d_mountpoint(path.dentry));
while (__follow_down(&path.mnt,&path.dentry) && d_mountpoint(path.dentry));
nd->mnt = path.mnt;
}
error = -ENOENT;
if (!path.dentry->d_inode)
Expand Down Expand Up @@ -1524,6 +1526,7 @@ int open_namei(const char * pathname, int flag, int mode, struct nameidata *nd)
goto exit_dput;
error = __do_follow_link(path.dentry, nd);
dput(path.dentry);
path.mnt = nd->mnt;
if (error)
return error;
nd->flags &= ~LOOKUP_PARENT;
Expand Down

0 comments on commit c7a750d

Please sign in to comment.