diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-07-06 02:02:45 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-07-06 02:02:45 +0000 |
commit | 629faf0b20d18f48b008dea69c992c638ac335ca (patch) | |
tree | 89267540a26d6ce2840b3f51155284521004f961 /lib | |
parent | 8c4633ab62af37ee0a885c34f4b92014ab3c42a6 (diff) | |
download | FreeBSD-src-629faf0b20d18f48b008dea69c992c638ac335ca.zip FreeBSD-src-629faf0b20d18f48b008dea69c992c638ac335ca.tar.gz |
This addresses some issues with my earlier -R fix that
were pointed out by Brooks Davis and Alexey Dokuchaev:
* It now tries to lookup arguments as names first, then tries
to parse them as numbers. In particular, this makes the
behavior consistent with POSIX conventions when usernames
consist entirely of digits.
* It now uses strtoul() for the numeric parsing.
Finally, I've included an update to the test harness
to exercise the new numeric cases for -R.
Approved by: re (kib)
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions