|
|
@@ -550,7 +550,7 @@ struct inode *ext2_new_inode(struct inode *dir, int mode)
|
|
|
|
|
|
sb->s_dirt = 1;
|
|
|
mark_buffer_dirty(bh2);
|
|
|
- inode->i_uid = current->fsuid;
|
|
|
+ inode->i_uid = current_fsuid();
|
|
|
if (test_opt (sb, GRPID))
|
|
|
inode->i_gid = dir->i_gid;
|
|
|
else if (dir->i_mode & S_ISGID) {
|
|
|
@@ -558,7 +558,7 @@ struct inode *ext2_new_inode(struct inode *dir, int mode)
|
|
|
if (S_ISDIR(mode))
|
|
|
mode |= S_ISGID;
|
|
|
} else
|
|
|
- inode->i_gid = current->fsgid;
|
|
|
+ inode->i_gid = current_fsgid();
|
|
|
inode->i_mode = mode;
|
|
|
|
|
|
inode->i_ino = ino;
|