Date: Mon, 3 Jan 2005 18:59:04 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/ffsinfo ffsinfo.c Message-ID: <200501031859.j03Ix4nb044524@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2005-01-03 18:59:04 UTC
FreeBSD src repository
Modified files:
sbin/ffsinfo ffsinfo.c
Log:
The ffsinfo utility uses atol() to parse numeric values out of optarg
strings. This isn't necessarily a bug, but it can be slightly inconvenient,
because atol() doesn't know how to parse hexadecimal or octal numbers and at
least one of the options of ffsinfo(8) would be easier to use if it did.
Changing atol() -> strtol() allows one to use hex masks for -l MASK, i.e.:
orion:/a/freebsd/src/sbin/ffsinfo# ./ffsinfo -l 0x3ff /
PR: 73110
Submitted by: keramida
MFC after: 2 weeks
Revision Changes Path
1.8 +10 -3 src/sbin/ffsinfo/ffsinfo.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501031859.j03Ix4nb044524>
