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.
This commit is contained in:
christos 2018-09-14 19:06:53 +00:00
parent 8262d5806f
commit be58bd6f37
1 changed files with 1 additions and 1 deletions

View File

@ -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;