Use strtonum() instead of strtoul() when parsing uid/gid so we get
authormillert <millert@openbsd.org>
Fri, 24 Apr 2015 21:13:56 +0000 (21:13 +0000)
committermillert <millert@openbsd.org>
Fri, 24 Apr 2015 21:13:56 +0000 (21:13 +0000)
commit16e2f4834cc940133a3a3b1bc88959b8a2ad9097
tree2c60a0e08cc0b3c0464f864b9139077357fc3036
parent68544ef1ca6dfce8d59c34e532bd2b90393cc898
Use strtonum() instead of strtoul() when parsing uid/gid so we get
consistent handling of negative ids on 32bit/64bit systems.
The only negative uid/gid allowed is -1 which is special-cased
so it can be preserved when writing the new master.passwd file
instead of being written as an unsigned number.  OK deraadt@
lib/libutil/passwd.c