From 54623c939c208d38f7e98db6f6eed478eeec083b Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 14 Nov 2008 10:39:04 +1100 Subject: [PATCH] --- yaml --- r: 120700 b: refs/heads/master c: a5f773a65928a10eb5e5534fe6da6b427ac5b646 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ufs/ialloc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 4967ecb42ee6..176a1c9ddfae 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7706bb39adff18a48ff98f203ffcbb00878d8589 +refs/heads/master: a5f773a65928a10eb5e5534fe6da6b427ac5b646 diff --git a/trunk/fs/ufs/ialloc.c b/trunk/fs/ufs/ialloc.c index ac181f6806a3..6f5dcf006096 100644 --- a/trunk/fs/ufs/ialloc.c +++ b/trunk/fs/ufs/ialloc.c @@ -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;