From: NeilBrown Date: Mon, 20 Aug 2012 00:33:50 +0000 (+1000) Subject: mdmon: fix arg processing for -a X-Git-Tag: mdadm-3.3-rc1~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcd2b4485a373943e8c618aba6ba87846356e73e;p=thirdparty%2Fmdadm.git mdmon: fix arg processing for -a '-a' was not being recognised as an abbreviation for '--all'. Signed-off-by: NeilBrown --- diff --git a/mdmon.c b/mdmon.c index 294cd72c..d06e4757 100644 --- a/mdmon.c +++ b/mdmon.c @@ -299,7 +299,7 @@ int main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - while ((opt = getopt_long(argc, argv, "th", options, NULL)) != -1) { + while ((opt = getopt_long(argc, argv, "tha", options, NULL)) != -1) { switch (opt) { case 'a': container_name = argv[optind-1];