mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
FreeBSD: fix merge error in zfs_acl_ids_create
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10721
This commit is contained in:
parent
b0099072df
commit
cfdc432e64
@ -1658,7 +1658,6 @@ zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr,
|
||||
acl_ids->z_fgid = 0;
|
||||
}
|
||||
if (acl_ids->z_fgid == 0) {
|
||||
if (dzp->z_mode & S_ISGID) {
|
||||
char *domain;
|
||||
uint32_t rid;
|
||||
|
||||
@ -1668,24 +1667,14 @@ zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr,
|
||||
|
||||
if (zfsvfs->z_use_fuids &&
|
||||
IS_EPHEMERAL(acl_ids->z_fgid)) {
|
||||
domain = zfs_fuid_idx_domain(
|
||||
&zfsvfs->z_fuid_idx,
|
||||
domain =
|
||||
zfs_fuid_idx_domain(&zfsvfs->z_fuid_idx,
|
||||
FUID_INDEX(acl_ids->z_fgid));
|
||||
rid = FUID_RID(acl_ids->z_fgid);
|
||||
zfs_fuid_node_add(&acl_ids->z_fuidp,
|
||||
domain, rid,
|
||||
FUID_INDEX(acl_ids->z_fgid),
|
||||
domain, rid, FUID_INDEX(acl_ids->z_fgid),
|
||||
acl_ids->z_fgid, ZFS_GROUP);
|
||||
}
|
||||
} else {
|
||||
acl_ids->z_fgid = zfs_fuid_create_cred(zfsvfs,
|
||||
ZFS_GROUP, cr, &acl_ids->z_fuidp);
|
||||
#ifdef __FreeBSD_kernel__
|
||||
gid = acl_ids->z_fgid = dzp->z_gid;
|
||||
#else
|
||||
gid = crgetgid(cr);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user