From be58bd6f3734b98a60cb3e8c0ffcd8a34e289d40 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 14 Sep 2018 19:06:53 +0000 Subject: [PATCH] The macros kidmap_getsidby{u,g}id always return 1 from sid.h on NetBSD, and clang is complaining about the impossible... So initialize rid and be done with it, it is the least intrusive fix. --- external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c index c3784e1e2d99..311eff1ad85a 100644 --- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c +++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c @@ -558,7 +558,7 @@ zfs_fuid_create(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr, const char *domain; char *kdomain; uint32_t fuid_idx = FUID_INDEX(id); - uint32_t rid; + uint32_t rid = UID_NOBODY; // XXX: broken clang idmap_stat status; uint64_t idx = 0; zfs_fuid_t *zfuid = NULL;