Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Default files to ...



details:   https://anonhg.NetBSD.org/src/rev/e768f6127a48
branches:  trunk
changeset: 1029097:e768f6127a48
user:      hauke <hauke%NetBSD.org@localhost>
date:      Tue Dec 21 15:08:14 2021 +0000

description:
Default files to BSD group ownership in line with ffs, after the lead
of FreeBSD <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=139076>
(patch by hannken@)

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a268f7cbbd50 -r e768f6127a48 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c      Tue Dec 21 13:56:58 2021 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c      Tue Dec 21 15:08:14 2021 +0000
@@ -1661,7 +1661,7 @@
                        } else {
                                acl_ids->z_fgid = zfs_fuid_create_cred(zfsvfs,
                                    ZFS_GROUP, cr, &acl_ids->z_fuidp);
-#ifdef __FreeBSD_kernel__
+#if defined(__FreeBSD_kernel__) || defined(__NetBSD__)
                                gid = acl_ids->z_fgid = dzp->z_gid;
 #else
                                gid = crgetgid(cr);



Home | Main Index | Thread Index | Old Index