New helper - current_umask()
current->fs->umask is what most of fs_struct users are doing. Put that into a helper function. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -134,7 +134,7 @@ generic_acl_init(struct inode *inode, struct inode *dir,
|
||||
mode_t mode = inode->i_mode;
|
||||
int error;
|
||||
|
||||
inode->i_mode = mode & ~current->fs->umask;
|
||||
inode->i_mode = mode & ~current_umask();
|
||||
if (!S_ISLNK(inode->i_mode))
|
||||
acl = ops->getacl(dir, ACL_TYPE_DEFAULT);
|
||||
if (acl) {
|
||||
|
Reference in New Issue
Block a user