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:
parent
8262d5806f
commit
be58bd6f37
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue