.
D 2020-07-18T12:57:09.569
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment In\scommand\s::safe::AliasGlob,\sthe\sfollowing\scode\sblock\sin\sthe\s[switch]\scommand\sthat\sparses\scommand\soptions\sfulfils\sno\suseful\spurpose\sand\sshould\sbe\sremoved:\r\n<verbatim>\r\n\t\s\s\s\spkgIndex.tcl\s{\r\n\t\t#\sOops,\sthis\sis\sglobbing\sa\ssubdirectory\sin\sregular\spackage\r\n\t\t#\ssearch.\sThat\sis\snot\swanted.\sAbort,\shandler\sdoes\scatch\r\n\t\t#\salready\s(because\sglob\swas\snot\sdefined\sbefore).\sSee\r\n\t\t#\spackage.tcl,\slines\s484ff\sin\stclPkgUnknown.\r\n\t\treturn\s-code\serror\s"unknown\scommand\sglob"\r\n\t\s\s\s\s}\r\n</verbatim>\r\n::safe::AliasGlob\swas\sadded\sin:\r\n\s\s*\s\sfile:\s[ec1bb9af3f]\scheck-in:\s[7f54ff3bbe]\s2008-06-25\score-8-5-branch\r\n\s\s*\s\sfile:\s[e245695909]\scheck-in:\s[d5216b1efd]\s2008-06-25\strunk\r\n\r\n\s\s*\s\sAliasGlob\swas\sadded\sso\sSafe\sBase\sinterpreters\scould\suse\stcl::tm\smodules\svia\s::tcl::tm::UnknownHandler.\r\n\s\s*\s\sThe\snon-module\spackage\shandlers,\stclPkgUnknown\sand\stcl::MacOSXPkgUnknown,\salso\suse\sglob\s(to\ssearch\ssubdirectories\sof\sthe\sauto_path\selements)\sbut\sexpected\sit\sto\sfail\sin\sa\sSafe\sBase\sinterpreter.\r\n\s\s*\s\sFrom\sthese\sfirst\scommits,\sAliasGlob\sincluded\scode\sthat\sraised\san\serror\sif\sargument\s"pkgIndex.tcl"\swas\sthe\sfirst\spattern\selement.\s\sComments\srefer\sto\sthe\swish\sto\sreject\susage\sby\stclPkgUnknown.\s\sThe\smotivation\sin\sthese\searly\sstages\swas\spresumably\sto\scraft\sAliasGlob\sfor\suse\sonly\sin\sthe\s::tcl::tm::UnknownHandler.\r\n\s\s*\s\sHowever,\sexamination\sof\stclPkgUnknown\sand\stcl::MacOSXPkgUnknown\sshows\sthat,\sby\sthe\stime\sthe\scode\swas\scommitted\sin\sJune\s2008,\sthe\scalls\sfrom\stclPkgUnknown\sand\stcl::MacOSXPkgUnknown\swould\snot\shave\striggered\sthe\serror\sbecause\s"pkgIndex.tcl"\swas\snot\sthe\sfirst\spattern\selement\safter\sthe\soptions.\s\sThe\scode\sblock\sno\slonger\sserved\sits\soriginal\spurpose.\r\n\r\nRetention\sof\sthis\s[switch]\sblock\swould\sbe\sjustified\sif\sit\sprevented\sabuse\sof\sthe\sAliasGlob\scommand\sby\suntrusted\scode.\s\sHowever,\r\n\r\n\s\s#\s\sThe\sAliasGlob\scommand\sis\sstrict\sabout\sallowing\ssearches\sonly\sin\sdirectories\sthat\sbelong\sto\sthe\saccess\spath,\sand\sthere\sis\sno\sharm\sin\sallowing\sa\ssearch\sfor\s"pkgIndex.tcl"\sthere.\r\n\s\s#\s\sA\ssearch\sfor\s"pkgIndex.*",\sor\seven\s"*",\sis\spermitted\sand\sis\sharmless.\r\n\r\nThe\scode\sis\ssimply\sa\srelic\sof\sthe\searly\sdevelopment\sof\sAliasGlob\sand\sno\slonger\sserves\sany\suseful\spurpose.\r\n\r\nFixed\sin\sbranch\ssafe-bugfixes-8-6\scommit\s[fb0d72aad4].
J foundin core-8-6-branch
J is_private 0
J login kjnash
J priority 5\sMedium
J private_contact a774b1f5653dc3360e29ea7d635a64e94c9f1dab
J resolution None
J severity Minor
J status Open
J submitter kjnash
J subsystem 33.\sSafe\sBase
J type Bug
K 5af0b88de82204d112f1d4966d9814d63a3fe6d9
U kjnash
Z 316ef6bff8d7947c9de9e73996b3d7a7