|
@@ -104,13 +104,13 @@ struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir,
|
|
|
*/
|
|
|
inode->i_flags |= (S_NOCMTIME);
|
|
|
|
|
|
- inode->i_uid = current->fsuid;
|
|
|
+ inode->i_uid = current_fsuid();
|
|
|
if (dir->i_mode & S_ISGID) {
|
|
|
inode->i_gid = dir->i_gid;
|
|
|
if (S_ISDIR(mode))
|
|
|
mode |= S_ISGID;
|
|
|
} else
|
|
|
- inode->i_gid = current->fsgid;
|
|
|
+ inode->i_gid = current_fsgid();
|
|
|
inode->i_mode = mode;
|
|
|
inode->i_mtime = inode->i_atime = inode->i_ctime =
|
|
|
ubifs_current_time(inode);
|