Don't use atoi.
authorJim Meyering <jim@meyering.net>
Sat, 9 Sep 2000 07:20:46 +0000 (07:20 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 9 Sep 2000 07:20:46 +0000 (07:20 +0000)
commit2bcfb3c5f7e791a1d906cfd6fe577af87ab3fcd0
tree4b868d27a199a92680422e78805dc4f2a2f403af
parentc07f54b3625cb907ec59f0bc917583dbdc999c5e
Don't use atoi.
Include sys/param.h and limits.h.
Include xstrtol.h.
(CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
(UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
(parse_user_spec): Use xstrtoul, not atoi when converting numeric
UID, GID.  Check range.
lib/userspec.c