diff options
Diffstat (limited to 'usr.sbin/chroot/chroot.c')
-rw-r--r-- | usr.sbin/chroot/chroot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/chroot/chroot.c b/usr.sbin/chroot/chroot.c index 8a99a9bbf7cb..d9fb29474d87 100644 --- a/usr.sbin/chroot/chroot.c +++ b/usr.sbin/chroot/chroot.c @@ -65,7 +65,7 @@ resolve_group(const char *group) */ errno = 0; gid = strtoul(group, &endp, 0); - if (errno == 0 && *endp == '\0' && (gid_t)gid >= 0 && gid <= GID_MAX) + if (errno == 0 && *endp == '\0' && gid <= GID_MAX) return (gid); errx(1, "no such group '%s'", group); @@ -84,7 +84,7 @@ resolve_user(const char *user) errno = 0; uid = strtoul(user, &endp, 0); - if (errno == 0 && *endp == '\0' && (uid_t)uid >= 0 && uid <= UID_MAX) + if (errno == 0 && *endp == '\0' && uid <= UID_MAX) return (uid); errx(1, "no such user '%s'", user); |