summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2012-08-15 13:01:24 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2012-08-15 13:01:24 +0200
commit38227f78a5020b3100cbb0406c89807563b10dae (patch)
tree9b27c2a63f69f08165830ac10372399fb7f841c3 /fs
parent62b259d8b3ea9d4a73108fc599e40c863ec25ae6 (diff)
downloadop-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')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 5bac1bb..26c28ec 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)
OpenPOWER on IntegriCloud