aboutsummaryrefslogtreecommitdiff
path: root/source/components/dispatcher/(public-mirror)
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2025-08-07 17:48:36 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2025-08-07 18:26:46 +0000
commit3c4b3bab19ca66bbb3c53275c51d4bf863059fb2 (patch)
tree19c32ddba14dab79ef3a2e2ffe7fc8db9cb33a46 /source/components/dispatcher/(public-mirror)
parent2d76470b7011d0c2f50ae394972976fbca14bc95 (diff)
chroot: Remove always-true checksHEADmain
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 'source/components/dispatcher/(public-mirror)')
0 files changed, 0 insertions, 0 deletions