Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38227f78 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

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: default avatarMiklos Szeredi <mszeredi@suse.cz>
Tested-by: default avatarRichard W.M. Jones <rjones@redhat.com>
parent 62b259d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)