Artifact 782f8afcae76d1c9236ac31d94daeeb915322317
Ticket change
[782f8afcae]
- Ticket cdd360438d Fossil does not handle absolute paths without disk drives in Windows. status still Open with 2 other changes
by
drh on
2009-09-13 11:47:15.
D 2009-09-13T11:47:15
J +comment \n\n<hr><i>drh\sadded\son\s2009-09-13\s11:47:15:</i><br>\nI\sthink\sthat\sthe\sfollowing\spatch\smay\sbe\ssufficient\sto\sfix\sthis:\r\n\r\n<verbatim>\r\n---\ssrc/file.c\r\n+++\ssrc/file.c\r\n@@\s-244,10\s+244,11\s@@\r\n\s**\sConvert\s/A/../\sto\sjust\s/\r\n\s*/\r\n\svoid\sfile_canonical_name(const\schar\s*zOrigName,\sBlob\s*pOut){\r\n\s\s\sif(\szOrigName[0]=='/'\r\n\s#ifdef\s__MINGW32__\r\n+\s\s\s\s\s\s||\szOrigName[0]=='\\\\'\r\n\s\s\s\s\s\s\s||\s(strlen(zOrigName)>3\s&&\szOrigName[1]==':'\r\n\s\s\s\s\s\s\s\s\s\s\s\s&&\s(zOrigName[2]=='\\\\'\s||\szOrigName[2]=='/'))\r\n\s#endif\r\n\s\s\s){\r\n\s\s\s\s\sblob_set(pOut,\szOrigName);\r\n</verbatim>\r\n\r\nI\swill\sstrive\sto\sboot\sup\sa\scopy\sof\swindows\sthis\safternoon\sand\stry\sit\sout.\r\nIn\sthe\smeantime,\sa\swork-around\smight\sbe\sto\suse\sforward\sslashes\s("/")\sinstead\sof\r\nbackslashes\s("\\")\sin\sthe\spathname,\sat\sleast\sfor\sthe\sfirst\scharacter\sof\r\nan\sabsolute\spathname.\r\n
J resolution Open
K cdd360438de1331b83874fbb70f4e0d22fdbae79
U drh
Z b4165b3d63904a8d419b108028111508