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 The macros kidmap...



details:   https://anonhg.NetBSD.org/src/rev/d7790c639998
branches:  trunk
changeset: 433436:d7790c639998
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Sep 14 19:06:53 2018 +0000

description:
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.

diffstat:

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

diffs (12 lines):

diff -r 3220a70a1cf7 -r d7790c639998 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c     Fri Sep 14 18:46:47 2018 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_fuid.c     Fri Sep 14 19:06:53 2018 +0000
@@ -558,7 +558,7 @@
        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;



Home | Main Index | Thread Index | Old Index