diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-08-15 13:01:24 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2012-08-15 13:01:24 +0200 |
commit | 38227f78a5020b3100cbb0406c89807563b10dae (patch) | |
tree | 9b27c2a63f69f08165830ac10372399fb7f841c3 /fs/namei.c | |
parent | 62b259d8b3ea9d4a73108fc599e40c863ec25ae6 (diff) | |
download | linux-exynos-38227f78a5020b3100cbb0406c89807563b10dae.tar.gz linux-exynos-38227f78a5020b3100cbb0406c89807563b10dae.tar.bz2 linux-exynos-38227f78a5020b3100cbb0406c89807563b10dae.zip |
vfs: pass right create mode to may_o_create()
Pass the umask-ed create mode to may_o_create() instead of the original one.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 5bac1bb6e585..26c28ec4f4af 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2452,7 +2452,7 @@ static int atomic_open(struct nameidata *nd, struct dentry *dentry, } if (open_flag & O_CREAT) { - error = may_o_create(&nd->path, dentry, op->mode); + error = may_o_create(&nd->path, dentry, mode); if (error) { create_error = error; if (open_flag & O_EXCL) |