D 2019-09-12T16:16:40.203
J icomment On\sthe\sWin10\sPC\swhere\scmdAH-25.3.1\sis\sfailing,\sthe\sowner\sof\sC:\\Windows\sis\s'TrustedInstaller'.\sThat's\snot\sme.\r\n\r\nWhat\sis\sweird\sis\sthat\srunning\sfile\sowned\s$env(windir)\sdirectly\sin\stclsh\sreturns\sthe\s0\sexpected\sby\sthe\stest.\r\n\r\nSo\sthe\stest\smust\sbe\stesting\sthe\sowner\sof\s$env(windir)\sbut\sthis\svariable\sdoes\snot,\sat\sthe\stime\sthe\stest\sis\sexecuted,\scontain\sC:\\Windows.\sAdding\sa\sputs\sinside\sthe\stest\sindeed\sreveals\sthat\s$env(windir)\sactually\sis\sE:\\tcltk-fossil\\tcl\\win\\..\\win,\si.e.\sthe\s'win'\ssubdirectory\sof\sthe\stcl\srepository.\r\n\r\nOn\sthe\sVista\sPC\son\swhich\scmdAH-25.3.1\sis\spassing,\sthe\sowner\sof\sC:\\Windows\salso\sis\s'TrustedInstaller',\swhich\sis\snot\sme.\sThe\sputs\sin\scmdAH-25.3.1\sreveals\sthat\sagain\s$env(windir)\sis\snot\sC:\\Windows\sbut\sthe\s'win'\ssubdirectory\sof\sthe\stcl\srepository.\sSo\son\sthis\sVista\sPC\sthe\stest\spasses\sby\spure\saccident.\r\n\r\nConclusion:\scmdAH-25.3.1\sis\snot\stesting\sthe\sowner\sof\sC:\\Windows\sas\swas\sprobably\sthe\soriginal\sintent.\sIt\sseems\sthat\ssomething\ssets\s$env(windir)\sso\sthat\sit\srather\scontains\sthe\s'win'\ssubdirectory\sof\sthe\stcl\srepository,\sand\sthe\stest\spasses\sor\sfails\sdepending\son\swhich\suser\sruns\sthe\stests.\sI\sthink\sthe\soriginal\sintent\sin\scmdAH-25.3.1\srather\swas\sto\stest\ssomething\slike\sfile\sowned\s$env(SystemRoot),\sdon't\syou\sthink\sso?
J login fvogel
J mimetype text/x-fossil-wiki
K 7de2d722bd599da5db26b42ed8addb16a66c832c
U fvogel
Z e2ccf8d0f76852822c88b2a0d44f169c