diff options
author | John Baldwin <jhb@FreeBSD.org> | 2025-08-07 17:48:36 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2025-08-07 18:26:46 +0000 |
commit | 3c4b3bab19ca66bbb3c53275c51d4bf863059fb2 (patch) | |
tree | 19c32ddba14dab79ef3a2e2ffe7fc8db9cb33a46 /contrib/perl5/ext/B/(developers-only) | |
parent | 2d76470b7011d0c2f50ae394972976fbca14bc95 (diff) |
gid_t and uid_t are unsigned types, so the values are always >= 0.
usr.sbin/chroot/chroot.c: In function 'resolve_group':
usr.sbin/chroot/chroot.c:68:55: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
68 | if (errno == 0 && *endp == '\0' && (gid_t)gid >= 0 && gid <= GID_MAX)
| ^~
usr.sbin/chroot/chroot.c: In function 'resolve_user':
usr.sbin/chroot/chroot.c:87:55: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
87 | if (errno == 0 && *endp == '\0' && (uid_t)uid >= 0 && uid <= UID_MAX)
| ^~
Reported by: GCC
Fixes: 91eb4d2ba4de ("chroot: slightly cleanup")
Diffstat (limited to 'contrib/perl5/ext/B/(developers-only)')
0 files changed, 0 insertions, 0 deletions