diff options
author | Krzysztof Benedyczak <golbi@mat.uni.torun.pl> | 2005-09-27 20:21:36 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-27 20:30:45 (GMT) |
commit | 59175839783287d3b03f18460bb3539c69300837 (patch) | |
tree | 8abf324e8c8621d82774bb92a981a0629ae77944 | |
parent | 5c1f4cac6ff75a4a602bae960a054ed3df7e9765 (diff) | |
download | linux-fsl-qoriq-59175839783287d3b03f18460bb3539c69300837.tar.xz |
[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: Krzysztof Benedyczak <golbi@mat.uni.torun.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | ipc/mqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 3a92601..a0f18c9 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -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) |