X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=ipc%2Fmqueue.c;h=c8943b53d8e6c3620f5dd3237c34af6462e6740d;hb=5367f2d67c7d0bf1faae90e6e7b4e2ac3c9b5e0f;hp=3a926011507b8768ff9991b55837a3f7ee9f579e;hpb=aa7c3a119a6202b758a669cde9e3829ced64a13f;p=powerpc.git diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 3a92601150..c8943b53d8 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -2,7 +2,7 @@ * POSIX message queues filesystem for Linux. * * Copyright (C) 2003,2004 Krzysztof Benedyczak (golbi@mat.uni.torun.pl) - * Michal Wronski (wrona@mat.uni.torun.pl) + * Michal Wronski (Michal.Wronski@motorola.com) * * Spinlocks: Mohamed Abbas (abbas.mohamed@intel.com) * Lockless receive & send, fd based notify: @@ -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)