Hi,

The patch below, taken from the Debian package, fixes the exit error code
when the list of supported machine is requested (-M ?).
asked

Bye,
Aurelien

Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.310
diff -u -d -p -r1.310 vl.c
--- vl.c        22 Jun 2007 08:23:44 -0000      1.310
+++ vl.c        22 Jun 2007 22:16:44 -0000
@@ -6705,7 +6707,7 @@ void help(void)
 #endif
            DEFAULT_GDBSTUB_PORT,
            "/tmp/qemu.log");
-    exit(1);
+    exit(strcmp(optarg, "?"));
 }
 
 #define HAS_ARG 0x0001

-- 
  .''`.  Aurelien Jarno             | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [EMAIL PROTECTED]         | [EMAIL PROTECTED]
   `-    people.debian.org/~aurel32 | www.aurel32.net


Reply via email to