Skip to content
Tcl Source Code Artifact [9d36af47f2]
Login

Artifact [9d36af47f2]

Artifact 9d36af47f29698792db7a69088a469c53b56b18e:

Ticket change [9d36af47f2] - Ticket [1193497fffffffff|1193497fff] <i>file writable lies for certain XP directories</i> status still Open with 4 other changes by fvogelnew1 on 2006-03-18 06:40:23.
D 2006-03-18T06:40:23
J icomment Logged\sIn:\sYES\s\nuser_id=1245417\n\nHi,\n\n1.\nI've\sseen\syou\sfixed\sboth\stypos\sin\stclWinTest.c,\sthanks.\n\n\n2.\nI\sfound\sthe\sreason\swhy\sfCmd.test\sspits\serrors\sfor\sme\sand\s\nnot\sfor\sVince.\n\nRunning\stcltest\sin\sdebug\smode\sit\sturns\sout\sthat\sthe\s\nfailing\stests\sfrom\sfCmd.c\sare\sfailing\sbecause\sin\sline\s654\s\nof\stclWinTest.c\sGetLastError()\shas\svalue\s1332\sfor\sme,\s\nwhich\sis\sERROR_NONE_MAPPED\s(No\smapping\sbetween\saccount\s\nnames\sand\ssecurity\sIDs\swas\sdone.)\n\nThis\shappens\son\smy\ssystem\sbecause\sat\sthis\spoint\s\nTestplatformChmod\stries\sto\sfind\spermissions\sfor\sthe\s\nEVERYONE\sSID.\sIt\sfails\sbecause\sI'm\sthe\sonly\suser\sallowed\s\nto\shave\saccess\sto\sthe\sdirectory\sthat\swas\sjust\screated.\sIn\s\nturn,\sthis\sis\sbecause\sthe\sdirectory\sinherited\sthe\s\npermissions\sfrom\sits\sparent.\sThere\sis\sno\s"EVERYONE"\s\naccount\sfor\sthat\sdirectory.\sI\scan\screate\sone,\sbut\ssince\sI\s\nhave\sa\sfrench\sXP,\sits\sname\sis\s"Tout\sle\smonde".\n\nSo\sto\smake\stclWinTest.c\swork\sfor\sme,\sI\smust\schange\sline\s\n505\sfrom\n\s\s\s\sstatic\sconst\schar\severyoneBuf[]\s=\s"EVERYONE";\nto\n\s\s\s\sstatic\sconst\schar\severyoneBuf[]\s=\s"Tout\sle\smonde";\n\nThen\s*no*\stest\sfrom\sfCmd.test\sis\sfailing\sanymore.\n\nSo\sit\sseems\sthat\sthe\slocale\scomes\sinto\splay\swhile\schecking\s\nfor\spermissions\sin\sTestplatformChmod.\n\nIs\sthere\sany\sway\sto\smake\sthis\swork\sautomatically\sin\syour\s\nopinion?\nI\smean,\sthere\sshould\sbe\sa\sway\sto\sretrieve\sthe\sname\sof\s\nthe\s"EVERYONE"\saccount\sfrom\sthe\slocale,\sand\sset\sthe\s\neveryoneBuf\scharacter\sstring\saccordingly.\n\nAnyway,\sthe\spatch\sis\scorrect\sand\sthe\stests\sfrom\sfCmd.test\s\nare\salso\scorrect.\n\n\n3.\nFailing\stcltest-8.4:\snot\syet\slooked\sat\sit.\sProbably\s\ntomorrow.\n\n\n4.\nFailing\stests\sfrom\swinFCmd.test:\sonly\stwo\stests\sare\snow\s\nfailing\s(7.11\sand\s7.19).\sHere\sthe\serror\sis\snot\sdue\sto\s\ntestchmod\sin\sthis\scase\s(it\ssucceeds).\sRather,\sfrom\swinFCmd-\n7.11\sor\s7.19\scontents\s(btw,\sI\ssee\sno\sdifference\sbetween\s\nthose\stwo\stests?):\n%\sfile\smkdir\std1\n%\stestchmod\s000\std1\n%\screatefile\std1/tf1\stf1\ncouldn't\sopen\s"td1/tf1":\spermission\sdenied\n\nThis\sis\sactually\sbecause\screatefile\stries\sto\sopen\sfile\stf1\s\nin\std1\sfor\swriting.\nHere\sis\swhat\sproc\screatefile\sdoes\sfirst:\n%\sset\sfile\std1/tf1\ntd1/tf1\n%\sset\sf\s[open\s$file\sw]\ncouldn't\sopen\s"td1/tf1":\spermission\sdenied\n\nThis\sfails\sbecause\sof\sreason\s2.\sexhibited\sby\sJason\sbelow:\n>Testcase\sdoes\sa\schmod\s000\sand\sexpects\sthe\sdirectory\sto\s\n>be\swritable\n\nI\sbelieve\sthe\stestcase\sshould\sbe\scorrected\sas\sJason\s\nsuggested:\n>I\sthink\sthe\stest\sshould\sreally\sbe\screating\n>another\ssub\sdirectory\sunder\sthe\sfirst\sone\sbefore\schmod\s000\n>and\sthen\stry\sto\swrite\sto\sit.\s\sThe\stestcases\sappear\sto\sbe\n>checking\sthat\sa\snon\sreadable\sdirectory\scan\sbe\straversed\n>through.\n\n\n5.\nIs\sthere\sany\sfurther\sfailing\stest\sthat\sI'm\snot\saware\sof\s(I\s\nmean\sa\stest\sthat\sseems\sto\sfail\sbecause\sof\sJason's\spatch)?\n\n\nFrancois\n\n
J login fvogelnew1
J mimetype text/plain
J username fvogelnew1
K 1193497fffffffffffffffffffffffffffffffff
U fvogelnew1
Z dbf4a6eae2d66f9cca684d6df149b65a