<i>file join trashes valid network paths</i> status still Open with 3 other changes
by
.
D 2018-07-27T19:51:59.080
J icomment >\sThen\sagain\s[file\sjoin\sC:\s/a]\son\sunix\salso\sdestroys\sthe\sdrive\spath.\r\n\r\nSure,\sbut\syou\sdid\snot\sunderstand\smy\sexample\s-\sI\smeant\son\sunix\sc:/...\sis\snot\sabsolute,<br/>\r\nso\sin\scase\s[file\sjoin\sfoo\sc:/bar/$tcl_platform(platform)]\r\nit\sDOES\sNOT\soverwrite\sfoo,\sbut\swill\sbe\sappended\sas\srelative\spath.\sTake\sa\slook\son\smy\sexample\sagain.\r\n\r\nThis\sway\sit\sis\sdefinitely\sdifferent\sas\son\swindows\s(just\sas\san\sargument\sagainst\sthe\sUNC).\r\n\r\nAs\sregards\sthe\sprovided\slink,\sI\ssaw\sit\salready\sin\sthe\snewest\sedition\s(<a\shref="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13">issue\s7,\s2018\sedition</a>):\r\n<code><pre\sstyle="padding-left:10pt">\r\nA\spathname\sconsisting\sof\sa\ssingle\s<slash>\sshall\sresolve\sto\sthe\sroot\sdirectory\sof\sthe\sprocess.\s\r\nA\snull\spathname\sshall\snot\sbe\ssuccessfully\sresolved.\r\nIf\sa\spathname\sbegins\swith\stwo\ssuccessive\s<slash>\scharacters,\sthe\sfirst\scomponent\sfollowing\s\r\nthe\sleading\s<slash>\scharacters\s<b>may\sbe\sinterpreted\sin\san\simplementation-defined\smanner,</b>\r\nalthough\smore\sthan\stwo\sleading\s<slash>\scharacters\sshall\sbe\streated\sas\sa\ssingle\s<slash>\scharacter.\r\n</pre></code>\r\n\r\nAnd\sin\syour\sopinion\sis\s"may\sbe\sinterpreted\sin\san\simplementation-defined\smanner"\sthe\ssame\sas\s"the\sPOSIX\sspecification\sdisagrees"?<br/>\r\nIn\smy\sopinion\sthis\ssentence\sallows\simplementation\sto\sdo\swhat\sit\swants.<br/>\r\nAdditionally\sit's\sgoing\sto\spathname\sresolution\s(not\sabout\sthe\sjoin),\sand\sanyway\snot\sabout\sthe\sfile-subsystem,\sto\swhere\sthe\s`file`\sensemble\sdoes\sbelong.\r\n\r\nI\scould\sbe\swrong,\sbut\sI'm\ssure\sthis\swill\snot\sconvince\sTCT\sto\slet\sus\srewrite\sthe\shandling\sto\ssupport\sUNC-paths.
J login sebres
J mimetype text/x-fossil-wiki
K baf43873720f5e92ae1142b1fc8d343b3648b54d
U sebres
Z d7eee7ab13ac6ff1edfd7766aeff6d64