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 | op-kernel-dev-38227f78a5020b3100cbb0406c89807563b10dae.zip op-kernel-dev-38227f78a5020b3100cbb0406c89807563b10dae.tar.gz |
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
@@ -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) |