mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue