aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2012-08-15 07:01:24 -0400
committerMiklos Szeredi <mszeredi@suse.cz>2012-08-15 07:01:24 -0400
commit38227f78a5020b3100cbb0406c89807563b10dae (patch)
tree9b27c2a63f69f08165830ac10372399fb7f841c3 /fs
parent62b259d8b3ea9d4a73108fc599e40c863ec25ae6 (diff)
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 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,
2452 } 2452 }
2453 2453
2454 if (open_flag & O_CREAT) { 2454 if (open_flag & O_CREAT) {
2455 error = may_o_create(&nd->path, dentry, op->mode); 2455 error = may_o_create(&nd->path, dentry, mode);
2456 if (error) { 2456 if (error) {
2457 create_error = error; 2457 create_error = error;
2458 if (open_flag & O_EXCL) 2458 if (open_flag & O_EXCL)