Check-in [2554ba460d]
Not logged in
Overview

SHA1 Hash:2554ba460dd8b5655aadc53f2482ad40cee2638c
Date: 2009-06-25 12:26:28
User: drh
Comment:Potential fix for 40df1ced7e.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/http_transport.c from [cbbda92e40] to [4a0b5a79aa].

@@ -146,10 +146,15 @@
     char *zCmd;
     fclose(transport.pFile);
     zCmd = mprintf("\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1",
        g.argv[0], g.urlName, transport.zOutFile, transport.zInFile
     );
+#ifdef __MINGW32__
+    /* Quote the entire command to work around goofiness in system() on
+    ** on windows. Ticket [40df1ced7e] */
+    zCmd = mprintf("\"%z\"", zCmd);
+#endif
     system(zCmd);
     free(zCmd);
     transport.pFile = fopen(transport.zInFile, "rb");
   }
 }