<i>Glob doesn't deal properly with * and [</i> status still Open with 5 other changes
by
.
D 2001-08-24T22:16:52
J assignee hobbs
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nThis\sis,\sI\sbelieve,\snothing\sto\sdo\swith\s\nTclpMatchFilesTypes.\s\sSince\swe\sare\smatching\sa\sliteral\s\nstring\shere,\s'glob'\sfalls\sthrough\sto\sthe\send\sof\sTclDoGlob\s\nwhich\ssimply\schecks\sfor\sexistence\sof\sthe\sfile,\susing\s\nTcl_FSAccess\s(or\ssince\sthe\spatch\swas\schecked\sin\syesterday)\s\nTcl_FSLStat.\s\sHowever,\slooking\sat\sthe\simplementation\sof\s\nstat\son\sWinTcl,\sI\ssee\sthis:\n\n\s\s\s\s/*\n\s\s\s\s\s*\sEliminate\sfile\snames\scontaining\swildcard\scharacters,\s\nor\ssubsequent\s\n\s\s\s\s\s*\scall\sto\sFindFirstFile()\swill\sexpand\sthem,\smatching\s\nsome\sother\sfile.\n\s\s\s\s\s*/\n\n\s\s\s\stransPtr\s=\sTcl_FSGetTranslatedPath(NULL,\spathPtr);\n\s\s\s\sif\s(transPtr\s==\sNULL\s||\s(strpbrk(Tcl_GetString\n(transPtr),\s"?*")\s!=\sNULL))\s{\nTcl_SetErrno(ENOENT);\nreturn\s-1;\n\s\s\s\s}\n\ni.e.\swe\spurposefully\sdisallow\sourselves\sfrom\sstatting\sany\s\nfile\swith\s'*'\sor\s'?'\sin\sthe\sname.\s\sSince\sthis\sbug\sis\s\nreported\sagainst\solder\sversions\sof\sTcl,\sit\sseems\sas\s\nif\s'access'\shas\sthe\ssame\slimitation\s(although\sit\sdoesn't\s\nseem\sto\sbe\sexplicitly\scoded\sin\sTcl's\score).\s\sI\sassume\sthis\s\nis\stherefore\sa\slimitation\sof\sthe\sWin32\sapi's\swe\suse,\sand\s\ntherefore\scannot\sbe\sfixed\s(at\sleast\swithout\schanging\sthose\s\napi's).\n\nI'm\stherefore\sassigning\sthis\sto\sJeff,\ssince\she\sseems\sto\s\nknow\ssomething\sabout\sthe\s'real\sWin32'\sstuff\s(and\sI\sdon't)\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 219258ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 230f892c8d655bc163258066bfe14d95