Skip to content
Tcl Source Code Artifact [20c8c38f70]
Login

Artifact [20c8c38f70]

Artifact 20c8c38f70d0f2bf35d17f5bd67092b386239127:

Ticket change [20c8c38f70] - New ticket [3046359fffffffff|3046359fff] <i>Tcl_FSNewNativePath() can destroy intrep</i>. by dgp on 2010-08-16 14:48:43.
D 2010-08-16T14:48:43
J assignee vincentdarley
J cmimetype text/plain
J comment \nTcl_FSNewNativePath()\smakes\sa\scall\sto\sthe\s\nTcl_Filesystem's\sTcl_FSInternalToNormalizedProc.\nIt\sdemands\sof\sthat\sdriver\sroutine\sthe\screation\sof\na\spathObj\swith\sstring\srep\s(literal\sor\sto\sbe\screated\non\sdemand)\sof\sa\snormalized\spath\sname.\s\sThe\ndriver\sdoesn't\shave\sto\sdo\sanything\smore\sthan\sthat.\n\nHowever,\sif\sthe\sdriver\sdoes\sdo\smore\sthan\sthat,\ncaching\sin\sthe\sintrep\swhatever\sthat\sfilesystem\nfinds\suseful\sto\skeep\sabout\sits\spath\svalues,\nTcl_FSNewNativePath()\sassertively\sthrows\sall\nthat\saway,\sand\sconstructs\sa\scompletely\snew\ninternal\srep\sfor\sthe\spathObj.\n\nThis\sdoesn't\sharm\sthe\soverall\sfunction.\s\sThe\nnormalized\sname\sis\spreserved,\sand\sat\sleast\nthe\sclaiming\sfilesystem\scache\sis\smaintained\stoo,\nso\sfuture\soperations\son\sthe\spath\svalue\swill\sbe\ncorrect.\s\sHowever,\sit\sdoes\sindicate\sthat\sfor\ssome\ndrivers\swork\swill\sbe\sdone\sonly\sto\sbe\sundone,\nand\sthat's\sa\sstrange\sthing\sfor\sa\sroutine\swhich\nis\sdocumented\sas\s"efficient"\sto\sbe\sdoing.\n\nI\sthink\sit\swould\sbe\san\simprovement\sif\s\nT_FSNNP()\sonly\sdid\sits\sown\sintrep\sconstruction\nif\sthe\svalue\sis\snot\salready\sof\sthe\s"path"\sTcl_ObjType.\nIf\sit\sfinds\sthe\sdriver\shas\salready\sset\sthe\svalue\sto\nthe\s"path"\sTcl_ObjType,\sI\sthink\sthe\sfilesystem\score\nought\sto\strust\sthe\sdriver\sto\shave\sset\sits\sown\sintrep\nas\sit\sbest\ssees\sfit.\n
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 37.\sFile\sSystem
J title Tcl_FSNewNativePath()\scan\sdestroy\sintrep
J type Bug
K 3046359fffffffffffffffffffffffffffffffff
U dgp
Z 2c4ee8b05f02d8b1e65a912c947df491