Skip to content
Tcl Source Code Artifact [933e99bfe8]
Login

Artifact [933e99bfe8]

Artifact 933e99bfe86d3967167b418c885f5254f6502f7e:

Ticket change [933e99bfe8] - New ticket [2837204fffffffff|2837204fff] <i>glob on realtive patterns and dirs is thread &quot;unsafe&quot;</i>. by dgp on 2009-08-13 22:39:32.
D 2009-08-13T22:39:32
J assignee dgp
J cmimetype text/plain
J comment \n[glob]\sgets\simplemented\srecursively\sand\sdepending\non\sthe\sswitches\sand\spatterns\scan\sresult\sin\sa\swhole\ntree\sof\scalls\sto\sTcl_FSMatchInDirectory().\s\sIf\sthe\ndirectories\sare\snamed\sby\srelative\spaths,\sthen\sthey\nare\staken\srelative\sto\sthe\scwd\s-\swhich\sis\sa\sprocess\swide\nvalue\sthat\scan\sbe\schanged\sat\sarbitrary\stimes\sby\nother\sthreads\sin\sthe\sprocess.\s\sThis\smeans\sthat\nsome\sportions\sof\sthe\s[glob]\ssearch\smight\stake\nplace\swith\sdifferent\s[pwd]\svalues\sthan\sother\sportions,\nand\sthe\sassembled\slist\sof\s[glob]\sresults\sdoes\snot\nactually\srepresent\sany\sproperly\sfunctioning,\nconsistent\sfilesystem\ssearch.\n\nIn\sconcept,\sthe\sfix\swould\sbe\sto\sdetermine\s[pwd]\nonce\sat\sthe\sbeginning\sof\sthe\sglob\soperation\sand\nthen\stake\scare\sto\spass\sit\sdown\sthe\swhole\stree\nof\soperations\sfor\sconsistent\sresults\srooted\son\n/some/\sconsistent\svalue\sof\s[pwd].\n\nLow\spriority,\sI\sthink,\sbut\swanted\sto\srecord\sthe\nissue\swhile\sI\snoticed\sit.\n
J foundin None
J is_private 0
J priority 3\sLow
J resolution None
J status Open
J submitter dgp
J subsystem 37.\sFile\sSystem
J title glob\son\srealtive\spatterns\sand\sdirs\sis\sthread\s"unsafe"
J type Bug
K 2837204fffffffffffffffffffffffffffffffff
U dgp
Z d5eb223dfe07f3ac7cd868197cfce9b9