Fossil SCM
Potential fix for [40df1ced7e].
Commit
2554ba460dd8b5655aadc53f2482ad40cee2638c
Parent
deb6f2af4fa9302…
1 file changed
+5
+5
| --- src/http_transport.c | ||
| +++ src/http_transport.c | ||
| @@ -146,10 +146,15 @@ | ||
| 146 | 146 | char *zCmd; |
| 147 | 147 | fclose(transport.pFile); |
| 148 | 148 | zCmd = mprintf("\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1", |
| 149 | 149 | g.argv[0], g.urlName, transport.zOutFile, transport.zInFile |
| 150 | 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 | |
| 151 | 156 | system(zCmd); |
| 152 | 157 | free(zCmd); |
| 153 | 158 | transport.pFile = fopen(transport.zInFile, "rb"); |
| 154 | 159 | } |
| 155 | 160 | } |
| 156 | 161 |
| --- 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 |