|
@@ -93,13 +93,13 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
|
|
|
return ERR_PTR(rc);
|
|
|
}
|
|
|
|
|
|
- inode->i_uid = current->fsuid;
|
|
|
+ inode->i_uid = current_fsuid();
|
|
|
if (parent->i_mode & S_ISGID) {
|
|
|
inode->i_gid = parent->i_gid;
|
|
|
if (S_ISDIR(mode))
|
|
|
mode |= S_ISGID;
|
|
|
} else
|
|
|
- inode->i_gid = current->fsgid;
|
|
|
+ inode->i_gid = current_fsgid();
|
|
|
|
|
|
/*
|
|
|
* New inodes need to save sane values on disk when
|