Skip to content
Tcl Source Code Artifact [4b4548b3a8]
Login

Artifact [4b4548b3a8]

Artifact 4b4548b3a8c6068be784742b94eb80c35d71b686b3f17565050deb405e81e22e:

Ticket change [4b4548b3a8] - New ticket [cc1fabcb10f74c40|cc1fabcb10] <i>windows: file join, file normalize (and/or Tcl_FSGetTranslatedPath) behave incorrect by translation to parent dir for root of samba path</i>. by sebres on 2024-11-08 00:13:03.
D 2024-11-08T00:13:03.868
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Example:\r\n<code><pre>\r\n\s\s\s\s%\sfile\snormalize\s[file\sjoin\s//host/former\s../latter/.$tcl_platform(platform)]\r\n\s\s\s\s//host/former/latter/.windows\r\n\s\s\s\s%\sfile\sjoin\s[file\sdirname\s//host/former]\slatter/.$tcl_platform(platform)\r\n\s\s\s\s//host/former/latter/.windows\r\n</pre></code>\r\nFor\swindows\sit\sdoesn't\sswitch\ssamba-share\s(must\sbasically\sreplace\sformer\swith\slatter\shere),\sso\sit\ssimply\signores\s".."\r\n\r\nExpected\s(for\sboth\scases):\r\n<code><pre>\r\n\s\s\s\s//host/latter/.windows\r\n</pre></code>\r\n\r\nPoC,\swhy\sit\sis\sdefinitely\swrong\s(and\sdeviates\sfrom\snative\sFS):\r\n<code><pre>\r\n\s\s\s\s%\sputs\s[set\sp\s[file\sjoin\s//?/d:/\s../c:/windows]]]\\t[file\snormalize\s$p]\\t[file\sexists\s$p]\r\n\s\s\s\s//?/d:/../c:/windows]\s\s\s//?/d:/c:/windows\s\s\s\s\s\s\s0\r\n\s\s\s\s%\sexec\scmd\s/c\s"IF\sEXIST\s$p\sECHO\sYES"\r\n\s\s\s\sYES\r\n</pre></code>\r\nSo\sit\slooks\slike\s<code><i>Tcl_FSGetTranslatedPath</i></code>\sfunction\shas\salso\sthe\ssame\sissue,\sbecause\sof\s<code><i>file\sexists</i></code>\swrong\sresult\s(0).
J foundin any
J is_private 0
J login sebres
J priority 5\sMedium
J private_contact 50e9528765c18296566374b3fde2df942c394efd
J resolution None
J severity Severe
J status Open
J submitter sebres
J subsystem 36.\sPathname\sManagement
J title windows:\sfile\sjoin,\sfile\snormalize\s(and/or\sTcl_FSGetTranslatedPath)\sbehave\sincorrect\sby\stranslation\sto\sparent\sdir\sfor\sroot\sof\ssamba\spath
J type Bug
K cc1fabcb10f74c404f7992845c64f796e43fd27b
U sebres
Z 4a64685301ab47397344c16b77b28218