qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix double backslash problem in Windows
@ 2008-01-08 16:17 Hervé Poussineau
  2008-01-09  9:31 ` Laurent Vivier
  0 siblings, 1 reply; 33+ messages in thread
From: Hervé Poussineau @ 2008-01-08 16:17 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

Hi,
  
On Windows, since December 2nd, files names provided in command line 
have to double their backslash to work correctly, for example: "-hda 
c:\\disks\\qemu.qcow" instead of -hda c:\disks\qemu.qcow"
This patch removes this need and reverts back to Qemu 0.9.0 behaviour
  
Hervé


[-- Attachment #2: no-double-backslash.patch --]
[-- Type: application/octet-stream, Size: 579 bytes --]

Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.394
diff -u -r1.394 vl.c
--- vl.c	6 Jan 2008 17:21:48 -0000	1.394
+++ vl.c	8 Jan 2008 12:49:08 -0000
@@ -4589,11 +4589,7 @@
     substring = 0;
     q = buf;
     while (*p != '\0') {
-        if (*p == '\\') {
-            p++;
-            if (*p == '\0')
-                break;
-        } else if (*p == '\"') {
+        if (*p == '\"') {
             substring = !substring;
             p++;
             continue;

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2008-01-11  9:01 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 16:17 [Qemu-devel] [PATCH] Fix double backslash problem in Windows Hervé Poussineau
2008-01-09  9:31 ` Laurent Vivier
2008-01-09  9:51   ` andrzej zaborowski
2008-01-09 10:04   ` Laurent Vivier
2008-01-09 10:40     ` andrzej zaborowski
2008-01-09 12:08       ` Laurent Vivier
2008-01-09 12:27         ` Johannes Schindelin
2008-01-09 12:51           ` Laurent Vivier
2008-01-09 13:27             ` Johannes Schindelin
2008-01-09 13:46               ` Laurent Vivier
2008-01-09 13:56                 ` andrzej zaborowski
2008-01-09 14:45                   ` Laurent Vivier
2008-01-09 13:59                 ` Johannes Schindelin
2008-01-09 14:42                   ` Laurent Vivier
2008-01-10  9:35               ` Laurent Vivier
2008-01-10 11:53                 ` Johannes Schindelin
2008-01-10 12:12                   ` Laurent Vivier
2008-01-10 12:15                     ` Johannes Schindelin
2008-01-10 12:33                       ` Laurent Vivier
2008-01-10 13:30                       ` Avi Kivity
2008-01-10 13:58                         ` Laurent Vivier
2008-01-10 14:18                           ` [Qemu-devel] " Jernej Simončič
2008-01-10 15:02                             ` Laurent Vivier
2008-01-10 18:13                               ` Laurent Vivier
2008-01-11  9:01                                 ` Laurent Vivier
2008-01-10 18:59                         ` [Qemu-devel] Re: [PATCH] " consul
2008-01-10 19:21                           ` Laurent Vivier
2008-01-09 12:27         ` [Qemu-devel] " Andreas Färber
2008-01-09 13:24           ` Laurent Vivier
2008-01-09 12:44         ` andrzej zaborowski
2008-01-09 17:53         ` Anthony Liguori
2008-01-09 18:23           ` Johannes Schindelin
2008-01-09 19:11           ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).