]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: fix incorrect handling of -M in getopt_long
authorSam Leonard <sam.leonard@codethink.co.uk>
Thu, 25 Jan 2024 14:50:24 +0000 (14:50 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Feb 2024 15:04:42 +0000 (16:04 +0100)
src/vmspawn/vmspawn.c

index c89c38165e0f3ecc0f043b87e4ad26f1774ec6f5..67606f8c94af4107733a55ca26d588c8e8507d9c 100644 (file)
@@ -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();