Fossil SCM

Potential fix for [40df1ced7e].

drh 2009-06-25 12:26 trunk
Commit 2554ba460dd8b5655aadc53f2482ad40cee2638c
1 file changed +5
--- src/http_transport.c
+++ src/http_transport.c
@@ -146,10 +146,15 @@
146146
char *zCmd;
147147
fclose(transport.pFile);
148148
zCmd = mprintf("\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1",
149149
g.argv[0], g.urlName, transport.zOutFile, transport.zInFile
150150
);
151
+#ifdef __MINGW32__
152
+ /* Quote the entire command to work around goofiness in system() on
153
+ ** on windows. Ticket [40df1ced7e] */
154
+ zCmd = mprintf("\"%z\"", zCmd);
155
+#endif
151156
system(zCmd);
152157
free(zCmd);
153158
transport.pFile = fopen(transport.zInFile, "rb");
154159
}
155160
}
156161
--- src/http_transport.c
+++ src/http_transport.c
@@ -146,10 +146,15 @@
146 char *zCmd;
147 fclose(transport.pFile);
148 zCmd = mprintf("\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1",
149 g.argv[0], g.urlName, transport.zOutFile, transport.zInFile
150 );
 
 
 
 
 
151 system(zCmd);
152 free(zCmd);
153 transport.pFile = fopen(transport.zInFile, "rb");
154 }
155 }
156
--- src/http_transport.c
+++ src/http_transport.c
@@ -146,10 +146,15 @@
146 char *zCmd;
147 fclose(transport.pFile);
148 zCmd = mprintf("\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1",
149 g.argv[0], g.urlName, transport.zOutFile, transport.zInFile
150 );
151 #ifdef __MINGW32__
152 /* Quote the entire command to work around goofiness in system() on
153 ** on windows. Ticket [40df1ced7e] */
154 zCmd = mprintf("\"%z\"", zCmd);
155 #endif
156 system(zCmd);
157 free(zCmd);
158 transport.pFile = fopen(transport.zInFile, "rb");
159 }
160 }
161

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button