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 / A word of caution: the source of ffsinfo.c does not follow style(9). This is why I used a style similar to the one of the original source in my diff.
State Changed From-To: open->patched Applied as ffsinfo.c:1.7 in FreeBSD CVS HEAD. Will MFC after two weeks. Thanks!
Responsible Changed From-To: freebsd-bugs->rwatson Grab ownership of this PR.
State Changed From-To: patched->closed Patch was applied.