Artifact 8699cb69a1d5bfaf4bfa68c7d54362faeef32f21
Ticket change
[8699cb69a1]
- Ticket 40df1ced7e Sync fail/crash with file: URL on Win32 status still Open with 1 other change
by
anonymous on
2009-06-23 20:26:51.
D 2009-06-23T20:26:51
J +comment \n\n<hr><i>anonymous\sclaiming\sto\sbe\sTwylite\sadded\son\s2009-06-23\s20:26:51:</i><br>\nPossible\sfix:\suse\san\s#ifdef\sto\schange\squoting\son\sWIN32.\r\n\r\nThe\sfollowing\spatch\sappears\sto\sfix\sthe\sproblem\s(tested\son\sWinXP\sSP3\sunder\scmd\sshell\sand\smsys).\s\sIt\sshould\sleave\sthe\sbehaviour\son\s*nix\ssystems\suntouched.\r\n\r\n<pre>\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</pre>\r\n
K 40df1ced7ebd6a8b9e419ff1a788ce05e33a82e1
U anonymous
Z e6825e4b93066bb117f837bb21524f7e