|
@@ -106,8 +106,8 @@ static int bfs_create(struct inode *dir, struct dentry *dentry, int mode,
|
|
|
}
|
|
|
set_bit(ino, info->si_imap);
|
|
|
info->si_freei--;
|
|
|
- inode->i_uid = current->fsuid;
|
|
|
- inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid;
|
|
|
+ inode->i_uid = current_fsuid();
|
|
|
+ inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current_fsgid();
|
|
|
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC;
|
|
|
inode->i_blocks = 0;
|
|
|
inode->i_op = &bfs_file_inops;
|