Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197992
b: refs/heads/master
c: ab9a79b
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed May 21, 2010
1 parent ba3d3fd commit 6a6d38d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be8ded5974c69d0d2128a508b0900ef541d0e7da
refs/heads/master: ab9a79b9669c28734a69fa9384df6fb93152e53a
9 changes: 1 addition & 8 deletions trunk/fs/logfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,7 @@ struct inode *logfs_new_inode(struct inode *dir, int mode)
inode->i_mode = mode;
logfs_set_ino_generation(sb, inode);

inode->i_uid = current_fsuid();
inode->i_gid = current_fsgid();
if (dir->i_mode & S_ISGID) {
inode->i_gid = dir->i_gid;
if (S_ISDIR(mode))
inode->i_mode |= S_ISGID;
}

inode_init_owner(inode, dir, mode);
logfs_inode_setops(inode);
insert_inode_hash(inode);

Expand Down

0 comments on commit 6a6d38d

Please sign in to comment.