.
D 2009-12-08T18:10:58
J assignee dgp
J cmimetype text/plain
J comment \nWithin\s[tclPkgUnknown]\sis:\n\n\s\s\s\s\s\s\s\s\s\s\s\s#\ssafe\sinterps\susually\sdon't\shave\s"file\sexists",\n\s\s\s\s\s\s\s\s\s\s\s\sif\s{([interp\sissafe]\s||\s[file\sexists\s$file])}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sset\scode\s[catch\s{source\s$file}\smsg\sopt]\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s{$code\s==\s1\s&&\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s[lindex\s[dict\sget\s$opt\s-errorcode]\s0]\seq\s"POSIX"\s&&\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s[lindex\s[dict\sget\s$opt\s-errorcode]\s1]\seq\s"EACCES"}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s#\s$file\swas\snot\sreadable;\ssilently\signore\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\scontinue\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s{$code}\s\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\stclLog\s"error\sreading\spackage\sindex\sfile\s$file:\s$msg"\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sset\sprocdDirs($dir)\s1\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s\s\s\s\s}\n\nso\sin\ssafe\sinterps\swe\sintentionally\sdo\snot\sverify\sfile\sexistence\nbefore\sattempting\sthe\s[source].\s\sThis\spredictably\sfails\sin\smany\nof\sthe\ssearched\sdirectories,\swhich\sleads\sto\smany\s[tclLog]\ncalls\sto\sreport\sthese\sfailures.\n\nIn\sa\ssafe\sinterp,\s[puts]\sis\soften\sdisabled\sas\swell,\sso\sthe\n[tclLog]\smay\sbe\ssilent.\s\s\s(this\sis\swhy\sthe\spoor\slogic\sis\nseldom\snonticed).\n\nHowever,\swhen\sSafe\sBase\sis\sin\suse,\ssome\ssafety-enabled\nversion\sof\s[puts]\sis\slikely\son,\sand\sthe\snoisy\serror\smessages\nspew\sforth.\n\nWhole\slogic\sof\ssafe\sinterps\sneeds\ssome\sreview\sat\sthis\npoint.\n\nThe\splace\sthis\sis\smost\seasily\sseen\sis\sin\stest\smath-12.1\nin\sthe\stest\ssuite\sof\sthe\smath\spackage\sin\stcllib.\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title [tclPkgUnknown]\sand\sSafe\sBase
J type Bug
K 2910867fffffffffffffffffffffffffffffffff
U dgp
Z 6ce4e9b09d4b4a497e62b18e6268d6cf