OSDN Git Service

Make partprobe accept --help and --version options.
authorJim Meyering <jim@meyering.net>
Mon, 5 Mar 2007 13:47:02 +0000 (14:47 +0100)
committerJim Meyering <jim@meyering.net>
Mon, 5 Mar 2007 13:47:02 +0000 (14:47 +0100)
commitcc46aa2dbbaebc7f68e8bbfc9bfb313a2e1c2e18
treee71e1f5415e909e14cb9a808d8a603272d9a2e68
parent3389f62ba35ca2f0c5ba87ae29af5ef807ecf985
Make partprobe accept --help and --version options.
Add long options: --no-update (same as existing -d), and
--summary (same as existing -s).
* partprobe/partprobe.c
Include configmake.h, getopt.h, and NLS-related things.
(main): Rewrite option handling.
Along the way, fix a bug whereby "partprobe DEV1 DEV2 ... DEVN" would
exit successfully whenever process_dev (DEVN) returns nonzero, even
when that function fails for each of the preceding devices.
partprobe/partprobe.c