Artifact Content
Not logged in

Artifact 26786ea777c8676980751c33753f50bf6ca398c8

Ticket change [26786ea777] - Ticket 40df1ced7e Sync fail/crash with file: URL on Win32 status still Open with 1 other change by anonymous on 2009-06-24 12:53:43.

D 2009-06-24T12:53:43
J +comment \n\n<hr><i>anonymous\sclaiming\sto\sbe\sTwylite\sadded\son\s2009-06-24\s12:53:43:</i><br>\nI\sthink\sI\sposted\sthat\spatch\sas\s'pre'\sinstead\sof\s'verbatim'.\s\sTo\ssafe\sa\slot\sof\sfrustration\sif\syou\sdidn't\snotice\sthe\s<nowiki>[bad-link:0]</nowiki>\sin\sthere,\shere's\sa\sbetter\scopy:\r\n\r\n<verbatim>\r\n---\ssrc/http_transport.c\r\n+++\ssrc/http_transport.c\r\n@@\s-140,14\s+140,21\s@@\r\n\s/*\r\n\s**\sThis\sroutine\sis\scalled\swhen\sthe\soutbound\smessage\sis\scomplete\sand\r\n\s**\sit\sis\stime\sto\sbeing\srecieving\sa\sreply.\r\n\s*/\r\n\svoid\stransport_flip(void){\r\n+#ifdef\s__MINGW32__\r\n+\s\s/*\sIf\sa\scommand\sbegins\swith\sa\squote,\scmd.exe\swill\sstrip\sthe\sleading\schar\r\n+\s\s\s*\sand\sthe\slast\squote\schar\son\sthe\sline.\s\sSee\s'cmd\s/?'\s*/\r\n+\s\schar*\scmdformat\s=\s"\\"\\"%s\\"\shttp\s\\"%s\\"\s\\"%s\\"\s\\"%s\\"\s127.0.0.1\\"";\r\n+#else\r\n+\s\schar*\scmdformat\s=\s"\\"%s\\"\shttp\s\\"%s\\"\s\\"%s\\"\s\\"%s\\"\s127.0.0.1";\r\n+#endif\r\n\s\s\sif(\sg.urlIsFile\s){\r\n\s\s\s\s\schar\s*zCmd;\r\n\s\s\s\s\sfclose(transport.pFile);\r\n-\s\s\s\szCmd\s=\smprintf("\\"%s\\"\shttp\s\\"%s\\"\s\\"%s\\"\s\\"%s\\"\s127.0.0.1",\r\n+\s\s\s\szCmd\s=\smprintf(cmdformat,\r\n\s\s\s\s\s\s\s\sg.argv[0],\sg.urlName,\stransport.zOutFile,\stransport.zInFile\r\n\s\s\s\s\s);\r\n\s\s\s\s\ssystem(zCmd);\r\n\s\s\s\s\sfree(zCmd);\r\n\s\s\s\s\stransport.pFile\s=\sfopen(transport.zInFile,\s"rb");\r\n\r\n</verbatim>\r\n\r\n
K 40df1ced7ebd6a8b9e419ff1a788ce05e33a82e1
U anonymous
Z 9ba730df0055376629e2eed0556a3ae9