Date: Mon, 6 Jul 2009 02:02:45 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/cpio cmdline.c src/usr.bin/cpio/test test_owner_parse.c Message-ID: <200907060202.n6622xul068144@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2009-07-06 02:02:45 UTC
FreeBSD src repository
Modified files:
usr.bin/cpio cmdline.c
usr.bin/cpio/test test_owner_parse.c
Log:
SVN rev 195389 on 2009-07-06 02:02:45Z by kientzle
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)
Revision Changes Path
1.8 +24 -34 src/usr.bin/cpio/cmdline.c
1.3 +50 -32 src/usr.bin/cpio/test/test_owner_parse.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907060202.n6622xul068144>
