Date: Sat, 1 Aug 2015 10:40:18 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286153 - head/usr.sbin/chkgrp Message-ID: <201508011040.t71AeIUm085604@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Sat Aug 1 10:40:17 2015 New Revision: 286153 URL: https://svnweb.freebsd.org/changeset/base/286153 Log: Revert r286148 Modified: head/usr.sbin/chkgrp/chkgrp.c Modified: head/usr.sbin/chkgrp/chkgrp.c ============================================================================== --- head/usr.sbin/chkgrp/chkgrp.c Sat Aug 1 10:25:55 2015 (r286152) +++ head/usr.sbin/chkgrp/chkgrp.c Sat Aug 1 10:40:17 2015 (r286153) @@ -171,9 +171,9 @@ main(int argc, char *argv[]) /* check the range of the group id */ errno = 0; - gid = strtoumax(f[2], NULL, 10); + gid = strtoul(f[2], NULL, 10); if (errno != 0) { - warnx("%s: line %d: strtoumax failed", gfn, n); + warnx("%s: line %d: strtoul failed", gfn, n); } else if (gid > GID_MAX) { warnx("%s: line %d: group id is too large (%ju > %ju)", gfn, n, (uintmax_t)gid, (uintmax_t)GID_MAX);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508011040.t71AeIUm085604>