Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120700
b: refs/heads/master
c: a5f773a
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and James Morris committed Nov 13, 2008
1 parent 38e5b1c commit 54623c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 7706bb39adff18a48ff98f203ffcbb00878d8589
refs/heads/master: a5f773a65928a10eb5e5534fe6da6b427ac5b646
4 changes: 2 additions & 2 deletions trunk/fs/ufs/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,13 @@ struct inode * ufs_new_inode(struct inode * dir, int mode)

inode->i_ino = cg * uspi->s_ipg + bit;
inode->i_mode = mode;
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))
inode->i_mode |= S_ISGID;
} else
inode->i_gid = current->fsgid;
inode->i_gid = current_fsgid();

inode->i_blocks = 0;
inode->i_generation = 0;
Expand Down

0 comments on commit 54623c9

Please sign in to comment.