Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116007
b: refs/heads/master
c: 3fc678a
h: refs/heads/master
i:
  116005: 4ff04d8
  116003: ee93641
  115999: 2bd8a85
v: v3
  • Loading branch information
David Howells authored and David Woodhouse committed Sep 1, 2008
1 parent 8600b7a commit 0f03636
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: 9d7548d4ca3c52ecb58f098a32b0756cdf8f96ee
refs/heads/master: 3fc678a0e63138f56109ea31850f19b2e29c45b8
4 changes: 2 additions & 2 deletions trunk/fs/jffs2/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,14 @@ struct inode *jffs2_new_inode (struct inode *dir_i, int mode, struct jffs2_raw_i

memset(ri, 0, sizeof(*ri));
/* Set OS-specific defaults for new inodes */
ri->uid = cpu_to_je16(current->fsuid);
ri->uid = cpu_to_je16(current_fsuid());

if (dir_i->i_mode & S_ISGID) {
ri->gid = cpu_to_je16(dir_i->i_gid);
if (S_ISDIR(mode))
mode |= S_ISGID;
} else {
ri->gid = cpu_to_je16(current->fsgid);
ri->gid = cpu_to_je16(current_fsgid());
}

/* POSIX ACLs have to be processed now, at least partly.
Expand Down

0 comments on commit 0f03636

Please sign in to comment.