Skip to contentSkip to conversation

[6578] Make qemu-img argument handling POSIX compliant

Qemu-devel Aurelien Jarno 1 participant 1 message Feb 9, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6578

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6578
Author:   aurel32
Date:     2009-02-09 18:14:31 +0000 (Mon, 09 Feb 2009)

Log Message:
-----------
Make qemu-img argument handling POSIX compliant

Modified Paths:
--------------
trunk/qemu-img.c

Modified: trunk/qemu-img.c
===================================================================

qemu-img.c +1 -1
@@ -865,7 +865,7 @@
     if (argc < 2)
         help();
     cmd = argv[1];
-    optind++;
+    argc--; argv++;
     if (!strcmp(cmd, "create")) {
         img_create(argc, argv);
     } else if (!strcmp(cmd, "commit")) {