summaryrefslogtreecommitdiff
path: root/libdiskfs/node-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/node-create.c')
-rw-r--r--libdiskfs/node-create.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/node-create.c b/libdiskfs/node-create.c
index 11f5b0fe..1ff8ac2b 100644
--- a/libdiskfs/node-create.c
+++ b/libdiskfs/node-create.c
@@ -52,8 +52,8 @@ diskfs_create_node (struct node *dir,
np = *newnode;
/* Initialize the on-disk fields. */
- if (cred->nuids)
- newuid = cred->uids[0];
+ if (cred->user->uids->num)
+ newuid = cred->user->uids->ids[0];
else
{
newuid = dir->dn_stat.st_uid;
@@ -65,7 +65,7 @@ diskfs_create_node (struct node *dir,
np->dn_stat.st_uid = newuid;
newgid = dir->dn_stat.st_gid;
- if (!diskfs_groupmember (newgid, cred))
+ if (!idvec_contains (cred->user->gids, newgid))
mode &= ~S_ISGID;
err = diskfs_validate_group_change (np, newgid);
if (err)