mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-10 14:02:43 +00:00
Restore BSD behaviour - when creating new directory entry use parent directory
gid to set group ownership and not process gid. This was overlooked during v6 -> v13 switch. PR: kern/139076 Reported by: Sean Winn <sean@gothic.net.au> MFC after: 3 days
This commit is contained in:
parent
aae0914135
commit
eb03c3cdfb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197426
@ -1841,7 +1841,7 @@ zfs_perm_init(znode_t *zp, znode_t *parent, int flag,
|
||||
fgid = zfs_fuid_create_cred(zfsvfs,
|
||||
ZFS_GROUP, tx, cr, fuidp);
|
||||
#ifdef __FreeBSD__
|
||||
gid = parent->z_phys->zp_gid;
|
||||
gid = fgid = parent->z_phys->zp_gid;
|
||||
#else
|
||||
gid = crgetgid(cr);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user