From: Sam Leonard Date: Thu, 25 Jan 2024 14:50:24 +0000 (+0000) Subject: vmspawn: fix incorrect handling of -M in getopt_long X-Git-Tag: v256-rc1~939 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ad9752260964272e52ebc942829baa53a322bb2;p=thirdparty%2Fsystemd.git vmspawn: fix incorrect handling of -M in getopt_long --- diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index c89c38165e0..67606f8c94a 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -150,7 +150,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argv); optind = 0; - while ((c = getopt_long(argc, argv, "+hi:Mq", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "+hi:M:q", options, NULL)) >= 0) switch (c) { case 'h': return help();