Commit 8f9b157e063ee31b656d31d2367c5676ca16665f
1 parent
09218951
Make qemu-img argument handling POSIX compliant
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6578 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
qemu-img.c
@@ -865,7 +865,7 @@ int main(int argc, char **argv) | @@ -865,7 +865,7 @@ int main(int argc, char **argv) | ||
865 | if (argc < 2) | 865 | if (argc < 2) |
866 | help(); | 866 | help(); |
867 | cmd = argv[1]; | 867 | cmd = argv[1]; |
868 | - optind++; | 868 | + argc--; argv++; |
869 | if (!strcmp(cmd, "create")) { | 869 | if (!strcmp(cmd, "create")) { |
870 | img_create(argc, argv); | 870 | img_create(argc, argv); |
871 | } else if (!strcmp(cmd, "commit")) { | 871 | } else if (!strcmp(cmd, "commit")) { |