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 make sure rid and...
details: https://anonhg.NetBSD.org/src/rev/5318bfb2dff0
branches: trunk
changeset: 363971:5318bfb2dff0
user: christos <christos%NetBSD.org@localhost>
date: Sat Aug 18 11:59:25 2018 +0000
description:
make sure rid and idx are initialized.
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 6e93b8b153df -r 5318bfb2dff0 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c Sat Aug 18 11:58:59 2018 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c Sat Aug 18 11:59:25 2018 +0000
@@ -605,8 +605,14 @@
rid = FUID_RID(fuidp->z_fuid_group);
idx = FUID_INDEX(fuidp->z_fuid_group);
break;
+ default:
+ rid = UID_NOBODY;
+ break;
};
- domain = fuidp->z_domain_table[idx - 1];
+ if (idx == 0)
+ domain = nulldomain;
+ else
+ domain = fuidp->z_domain_table[idx - 1];
} else {
if (type == ZFS_OWNER || type == ZFS_ACE_USER)
status = kidmap_getsidbyuid(crgetzone(cr), id,
Home |
Main Index |
Thread Index |
Old Index