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

Commit 59175839 authored by Krzysztof Benedyczak's avatar Krzysztof Benedyczak Committed by Linus Torvalds
Browse files

[PATCH] Make POSIX message queue sys_mq_open() honor umask



We ignored umask when creating new queues via mq_open (when creating
with open() on mqueue fs it is ok of course).  According to the
specification this a bug.  This trivial patch fixes this.

Signed-off-by: default avatarKrzysztof Benedyczak <golbi@mat.uni.torun.pl>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5c1f4cac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -611,6 +611,7 @@ static struct file *do_create(struct dentry *dir, struct dentry *dentry,
		dentry->d_fsdata = &attr;
	}

	mode &= ~current->fs->umask;
	ret = vfs_create(dir->d_inode, dentry, mode, NULL);
	dentry->d_fsdata = NULL;
	if (ret)