From: NeilBrown Date: Mon, 20 Aug 2012 00:33:50 +0000 (+1000) Subject: mdmon: fix arg processing for -a X-Git-Tag: mdadm-3.2.6~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23084aaa76d9fc3121ff2ab38c04ee9893793e00;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 dee02a9c..2d0503d2 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];