From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVq5N-0003V3-UR for qemu-devel@nongnu.org; Sat, 07 Feb 2009 11:31:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVq4j-0002ZM-BL for qemu-devel@nongnu.org; Sat, 07 Feb 2009 11:31:17 -0500 Received: from [199.232.76.173] (port=40810 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVq4j-0002Z7-2J for qemu-devel@nongnu.org; Sat, 07 Feb 2009 11:30:37 -0500 Received: from smtp2-g21.free.fr ([212.27.42.2]:53421) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVq4h-0005UK-Vj for qemu-devel@nongnu.org; Sat, 07 Feb 2009 11:30:36 -0500 Received: from smtp2-g21.free.fr (localhost [127.0.0.1]) by smtp2-g21.free.fr (Postfix) with ESMTP id A5DD04B0160 for ; Sat, 7 Feb 2009 17:29:39 +0100 (CET) Received: from [192.168.0.32] (rob92-10-88-171-126-33.fbx.proxad.net [88.171.126.33]) by smtp2-g21.free.fr (Postfix) with ESMTP id 9101C4B00E9 for ; Sat, 7 Feb 2009 17:29:36 +0100 (CET) Message-ID: <498DB6D7.2090807@reactos.org> Date: Sat, 07 Feb 2009 17:29:11 +0100 From: =?ISO-8859-1?Q?Herv=E9_Poussineau?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090207090507010800010406" Subject: [Qemu-devel] [PATCH] Fix qemu-img argument handling Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------090207090507010800010406 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hi, qemu-img doesn't work on MS Windows, when compiled with MinGW Runtime=20 package >=3D 3.15 According to=20 http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D2222263&grou= p_id=3D2435&atid=3D102435=20 , qemu-img shouldn't skip the first argument (command name) by doing=20 optind++. Attached patch fixes the problems, and repairs qemu-img parsing with=20 MinGW Runtime package >=3D 3.15 Signed-off-by: Herv=E9 Poussineau Herv=E9 --------------090207090507010800010406 Content-Type: plain/text; name="qemu-img-optind.diff" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="qemu-img-optind.diff" SW5kZXg6IHFlbXUtaW1nLmMNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCi0tLSBxZW11LWltZy5jCShyZXZp c2lvbiA2NTE2KQ0KKysrIHFlbXUtaW1nLmMJKHdvcmtpbmcgY29weSkNCkBAIC04NjUsNyAr ODY1LDggQEANCiAgICAgaWYgKGFyZ2MgPCAyKQogICAgICAgICBoZWxwKCk7CiAgICAgY21k ID0gYXJndlsxXTsKLSAgICBvcHRpbmQrKzsKKyAgICBhcmdjLS07CisgICAgYXJndisrOwog ICAgIGlmICghc3RyY21wKGNtZCwgImNyZWF0ZSIpKSB7CiAgICAgICAgIGltZ19jcmVhdGUo YXJnYywgYXJndik7CiAgICAgfSBlbHNlIGlmICghc3RyY21wKGNtZCwgImNvbW1pdCIpKSB7 Cg== --------------090207090507010800010406--