cvs commit: src/sbin/badsect badsect.c
Robert Watson
rwatson at FreeBSD.org
Mon Jan 3 11:03:40 PST 2005
rwatson 2005-01-03 19:03:40 UTC
FreeBSD src repository
Modified files:
sbin/badsect badsect.c
Log:
The badsect(8) utility uses atol(), which doesn't allow very good error
checking and only recognizes numbers in base 10. The attached patch
checks errno after strtol() and uses a base of 0 to allow octal, or hex
sector numbers too.
PR: 73112
Submitted by: keramida
MFC after: 2 weeks
Revision Changes Path
1.21 +4 -1 src/sbin/badsect/badsect.c
More information about the cvs-all
mailing list