]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-02-10 Alexandre Boeglin <alex@boeglin.org>
authorboeglin <boeglin@localhost>
Sun, 10 Feb 2008 15:18:03 +0000 (15:18 +0000)
committerboeglin <boeglin@localhost>
Sun, 10 Feb 2008 15:18:03 +0000 (15:18 +0000)
  * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
  on remaining N args, instead of "--" arg N times.

ChangeLog
normal/arg.c

index 516282d02a8d8cd9bf2bbfdb1124f5016a45e086..586cc1dc8a19ceae326eb3f980e9195588080731 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-10  Alexandre Boeglin  <alex@boeglin.org>
+
+       * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
+       on remaining N args, instead of "--" arg N times.
+
 2008-02-09  Vesa Jaaskelainen  <chaac@nic.fi>
 
        * font/manager.c (unknown_glyph): Added variable for unknown glyph.
index ab3613d7f64f4312f62daae11cfd1a88ec5159cd..3aa6a03311659f7b15e459670eff5e7a2d307618 100644 (file)
@@ -313,7 +313,7 @@ grub_arg_parse (grub_command_t cmd, int argc, char **argv,
          if (grub_strlen (arg) == 2)
            {
              for (curarg++; curarg < argc; curarg++)
-               if (add_arg (arg) != 0)
+               if (add_arg (argv[curarg]) != 0)
                  goto fail;
              break;
            }