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:
@@ -477,7 +477,7 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent)
|
||||
|
||||
uid = current_uid();
|
||||
gid = current_gid();
|
||||
umask = current->fs->umask;
|
||||
umask = current_umask();
|
||||
lowercase = 0;
|
||||
conv = CONV_BINARY;
|
||||
eas = 2;
|
||||
|
Reference in New Issue
Block a user