Skip to content
Tcl Source Code Artifact [7e92728ffe]
Login

Artifact [7e92728ffe]

Artifact 7e92728ffe0f041f1767b7d1244f1735f6943e01:

Ticket change [7e92728ffe] - Ticket [3092089fffffffff|3092089fff] <i>[file normalize] can remove path components</i> status still Open with 4 other changes by oehhar on 2012-12-13 16:47:16.
D 2012-12-13T16:47:16
J icomment I\shave\stried\sthe\spatch\sproposed\sat\sthis\scomment:\nDate:\s2011-12-12\s06:47:09\sPST\nSender:\sdunkfan\nwith\stcl8.5.13,\smsvc++\s6,\sMakefile.vc,\swin\svista\s32\sbit.\n\nHere\sis\sthe\sapplied\spatch:\n\n---\sC:/test/tcl8.5.13/win/tclWinFile_ori.cTue\sNov\s06\s16:05:00\s2012\n+++\sC:/test/tcl8.5.13/win/tclWinFile.cThu\sDec\s13\s09:47:22\s2012\n@@\s-704,7\s+704,7\s@@\n\s\s\s\s\sHANDLE\shFile;\n\s\s\s\s\sDWORD\sreturnedLength;\n\s\n-\s\s\s\shFile\s=\s(*tclWinProcs->createFileProc)(linkDirPath,\sGENERIC_READ,\s0,\n+\s\s\s\shFile\s=\s(*tclWinProcs->createFileProc)(linkDirPath,\s0,\s0,\n\s\s\s\s\sNULL,\sOPEN_EXISTING,\n\s\s\s\s\sFILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKUP_SEMANTICS,\sNULL);\n\s\n\nResults:\n\n1)\sThe\sissue\sis\ssolved\sfor\sme.\n\nThe\sdemonstration\sin\scomment\nDate:\s2012-11-15\s01:05:50\sPST\nSender:\soehhar\nof\stcl\sbug\s3587096\nnow\sreturns:\n%\sfile\snormalize\sc:/test2_junction/tcl860rc0\nC:/test2/tcl860rc0\n%\s\sfile\snormalize\sc:/test2_junction/tcl860rc0/bin\nC:/test2/tcl860rc0/bin\n%\s\sfile\snormalize\sc:/test2_junction/tcl860rc0/bin/junk\n\n2)\sBug\s3587096\sis\salso\ssolved\n\n3)\sMany\smany\stests\sfail\sin\sthe\stest\ssuite\swith\s"permission\sdenied\son\sfile\saccess"\nThe\stest\slog\sis\sin\sthe\sfile\ssection\s(200kB).\sHere\sthe\sfirst\sfailure\sas\san\sexample:\n\n====\sautoMkindex-4.1\splatform\sindenpendant\ssource\scommands\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\sfile\sdelete\stclIndex\n\s\s\s\sauto_mkindex\s.\spkg/samename.tcl\n\s\s\s\sset\sf\s[open\stclIndex\sr]\n\s\s\s\sset\sdat\s[split\s[string\strim\s[read\s$f]]\s"\\n"]\n\s\s\s\sset\slen\s[llength\s$dat]\n\s\s\s\sset\sresult\s[lsort\s[lrange\s$dat\s[expr\s{$len-2}]\s[expr\s{$len-1}]]]\n\s\s\s\sclose\s$f\n\s\s\s\sset\sresult\n\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\n----\serrorInfo:\scouldn't\sopen\s"tclIndex":\spermission\sdenied\n\s\s\s\swhile\sexecuting\n"open\s"tclIndex"\sw"\n\s\s\s\s(procedure\s"auto_mkindex"\sline\s32)\n\s\s\s\sinvoked\sfrom\swithin\n"auto_mkindex\s.\spkg/samename.tcl"\n\s\s\s\s("uplevel"\sbody\sline\s3)\n\s\s\s\sinvoked\sfrom\swithin\n"uplevel\s1\s$script"\n----\serrorCode:\sPOSIX\sEACCES\s{permission\sdenied}\n====\sautoMkindex-4.1\sFAILED\n\n\n3)\sIn\sa\spractical\stest,\sthe\smodified\sversion\sworked\swell\sfor\sme.\n\nThank\syou,\nHarald\n
J login oehhar
J mimetype text/plain
J username oehhar
K 3092089fffffffffffffffffffffffffffffffff
U oehhar
Z 5e5b59d876b0c28b8decbe00beaa1ef9