[m-rev.] diff: fix mkinit option processing

Julien Fischer jfischer at opturion.com
Sat Mar 26 00:19:46 AEDT 2022


This one is also for the release branch.

----------------------------------------

Fix mkinit option processing.

util/mkinit.c:
     The -l option does not take an argument. An incorrect edit in
     commit fcb8ffe9 meant that it was expecting one.

Julien.

diff --git a/util/mkinit.c b/util/mkinit.c
index 3dfcc44..20dddc7 100644
--- a/util/mkinit.c
+++ b/util/mkinit.c
@@ -815,7 +815,7 @@ parse_options(int argc, char *argv[])
      String_List *tmp_slist;
      int         seen_f_option = 0;

-    while ((c = getopt(argc, argv, "A:c:f:g:iI:l:o:r:tw:xX:ks")) != EOF) {
+    while ((c = getopt(argc, argv, "A:c:f:g:iI:lo:r:tw:xX:ks")) != EOF) {
          switch (c) {
          case 'A':
              // Add the argument to the end of the list of always executed


More information about the reviews mailing list