diff options
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index b8821b0e73de..f247da9f4edc 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -1191,11 +1191,11 @@ mkdir_get_info: | |||
1191 | .device = 0, | 1191 | .device = 0, |
1192 | }; | 1192 | }; |
1193 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID) { | 1193 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID) { |
1194 | args.uid = (__u64)current->fsuid; | 1194 | args.uid = (__u64)current_fsuid(); |
1195 | if (inode->i_mode & S_ISGID) | 1195 | if (inode->i_mode & S_ISGID) |
1196 | args.gid = (__u64)inode->i_gid; | 1196 | args.gid = (__u64)inode->i_gid; |
1197 | else | 1197 | else |
1198 | args.gid = (__u64)current->fsgid; | 1198 | args.gid = (__u64)current_fsgid(); |
1199 | } else { | 1199 | } else { |
1200 | args.uid = NO_CHANGE_64; | 1200 | args.uid = NO_CHANGE_64; |
1201 | args.gid = NO_CHANGE_64; | 1201 | args.gid = NO_CHANGE_64; |
@@ -1232,13 +1232,13 @@ mkdir_get_info: | |||
1232 | if (cifs_sb->mnt_cifs_flags & | 1232 | if (cifs_sb->mnt_cifs_flags & |
1233 | CIFS_MOUNT_SET_UID) { | 1233 | CIFS_MOUNT_SET_UID) { |
1234 | direntry->d_inode->i_uid = | 1234 | direntry->d_inode->i_uid = |
1235 | current->fsuid; | 1235 | current_fsuid(); |
1236 | if (inode->i_mode & S_ISGID) | 1236 | if (inode->i_mode & S_ISGID) |
1237 | direntry->d_inode->i_gid = | 1237 | direntry->d_inode->i_gid = |
1238 | inode->i_gid; | 1238 | inode->i_gid; |
1239 | else | 1239 | else |
1240 | direntry->d_inode->i_gid = | 1240 | direntry->d_inode->i_gid = |
1241 | current->fsgid; | 1241 | current_fsgid(); |
1242 | } | 1242 | } |
1243 | } | 1243 | } |
1244 | } | 1244 | } |