Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185924
b: refs/heads/master
c: 5b369df
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Mar 5, 2010
1 parent 19a9883 commit 0c33758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 9a66179e13504c676f891908a1e94912ec5cdefb
refs/heads/master: 5b369df8263fe7ab4dac2bb08b8f423dc5e33752
10 changes: 5 additions & 5 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ static struct file *finish_open(struct nameidata *nd,
}

static struct file *do_last(struct nameidata *nd, struct path *path,
int open_flag, int flag, int acc_mode,
int open_flag, int acc_mode,
int mode, const char *pathname,
int *is_link)
{
Expand Down Expand Up @@ -1712,12 +1712,12 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
audit_inode(pathname, path->dentry);

error = -EEXIST;
if (flag & O_EXCL)
if (open_flag & O_EXCL)
goto exit_dput;

if (__follow_mount(path)) {
error = -ELOOP;
if (flag & O_NOFOLLOW)
if (open_flag & O_NOFOLLOW)
goto exit_dput;
}

Expand Down Expand Up @@ -1845,7 +1845,7 @@ struct file *do_filp_open(int dfd, const char *pathname,
nd.flags |= LOOKUP_CREATE | LOOKUP_OPEN;
if (flag & O_EXCL)
nd.flags |= LOOKUP_EXCL;
filp = do_last(&nd, &path, open_flag, flag, acc_mode, mode,
filp = do_last(&nd, &path, open_flag, acc_mode, mode,
pathname, &is_link);
if (is_link)
goto do_link;
Expand Down Expand Up @@ -1907,7 +1907,7 @@ struct file *do_filp_open(int dfd, const char *pathname,
nd.flags &= ~LOOKUP_PARENT;
if (nd.last_type == LAST_BIND)
goto ok;
filp = do_last(&nd, &path, open_flag, flag, acc_mode, mode,
filp = do_last(&nd, &path, open_flag, acc_mode, mode,
pathname, &is_link);
if (nd.last_type == LAST_NORM)
__putname(nd.last.name);
Expand Down

0 comments on commit 0c33758

Please sign in to comment.