mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
e9de7669c3
Previously, it used atoi(3) to parse the unit parameter, which would silently yield a unit of 0 in the presence of an invalid unit number. As most users of mpsutil(8) are likely to have at least a unit 0, this is could have confusing results. This behaviour was particularly unintuitive if one incorrectly passed an adapter device name, or a device path, instead of a unit number. In addition to using strtoumax(3) instead of atoi(3) to parse unit numbers, support stripping a device name (e.g. mps1) or path (e.g. /dev/mps2) to just its unit number. Reviewed by: scottl (earlier version) |
||
---|---|---|
.. | ||
Makefile | ||
Makefile.depend | ||
mps_cmd.c | ||
mps_debug.c | ||
mps_flash.c | ||
mps_show.c | ||
mps_slot.c | ||
mpsutil.8 | ||
mpsutil.c | ||
mpsutil.h |