diff options
author | Krzysztof Benedyczak <golbi@mat.uni.torun.pl> | 2005-09-27 16:21:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-27 16:30:45 -0400 |
commit | 59175839783287d3b03f18460bb3539c69300837 (patch) | |
tree | 8abf324e8c8621d82774bb92a981a0629ae77944 /ipc | |
parent | 5c1f4cac6ff75a4a602bae960a054ed3df7e9765 (diff) |
[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>
Diffstat (limited to 'ipc')
-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 3a926011507b..a0f18c9cc89d 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -611,6 +611,7 @@ static struct file *do_create(struct dentry *dir, struct dentry *dentry, | |||
611 | dentry->d_fsdata = &attr; | 611 | dentry->d_fsdata = &attr; |
612 | } | 612 | } |
613 | 613 | ||
614 | mode &= ~current->fs->umask; | ||
614 | ret = vfs_create(dir->d_inode, dentry, mode, NULL); | 615 | ret = vfs_create(dir->d_inode, dentry, mode, NULL); |
615 | dentry->d_fsdata = NULL; | 616 | dentry->d_fsdata = NULL; |
616 | if (ret) | 617 | if (ret) |