<i>problem with "file executable" on windows, tcl 8.5.2</i> status still Open with 4 other changes
by
.
D 2008-04-25T21:45:24
J icomment Logged\sIn:\sYES\s\nuser_id=377375\nOriginator:\sYES\n\n[ferrieux]\n>\s...\son\sWindows,\swhere\sthe\sextension\s.EXE\s.BAT\s(or\n>\swhatever\sin\sPATHEXT)\sis,\sto\smy\sknowledge,\sthe\sonly\scriterion\sused\sby\n>\sthe\sOS\sitself\sto\sdecide\swhether\sit\sshould\sexecute\sit\sor\snot.\sAm\sI\n>\sright\sto\sbelieve\sthis,\sin\swhich\scase\sthe\sthing\sto\sdo\swould\sbe\sto\sadd\n>\san\sextension\scheck\sin\s[file\sexecutable],\sor\sis\sthere\sreally\san\n>\sOS-enforced\sexecutable\sflag\sin\ssome\sflavours\sof\sWindows,\sin\swhich\n>\scase\sthe\sOS/Samba\sroute\sis\sworth\spursuing\s?\n\nThis\s.exe/.bat\scheck\sis\salready\sperformed\sby\sthe\sfunction,\sright\nbefore\sthe\scode\ssection\swhich\sperforms\sthe\sACL\scheck:\n\n\s\s\s\sif\s(mode\s&\sX_OK)\s{\nif\s(!(attr\s&\sFILE_ATTRIBUTE_DIRECTORY)\s&&\s!NativeIsExec(nativePath))\s{\n\s\s\s\s/*\n\s\s\s\s\s*\sIt's\snot\sa\sdirectory\sand\sdoesn't\shave\sthe\scorrect\sextension.\n\s\s\s\s\s*\sTherefore\sit\scan't\sbe\sexecutable\n\s\s\s\s\s*/\n\n\s\s\s\sTcl_SetErrno(EACCES);\n\s\s\s\sreturn\s-1;\n}\n\s\s\s\s}\n\nThis\scheck\s(namely\sNativeIsExec())\ssucceeds\sfor\sthe\sfile\sin\squestion.\n\nBut\sthen,\sthe\sextended\scheck\sis\sperformed\swhich\sfails\sfor\sthe\nnetworked\sfile.\s\s\n\nI\swonder\swhether\sthis\sextended\scheck\sis\sonly\srelevant\nfor\snon-plain-files\s(directories?)\ssince\sthere\sI\ssee:\n\n\s\s\s\s%\sfile\sexecutable\sl:/ralf/si++aegis/si++.4.0.C443/bin/winnt/\n\s\s\s\s1\n\s\s\s\s%\sfile\sexecutable\sl:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\n\s\s\s\s0\n\nR'\n
J login ralfixx
J mimetype text/plain
J username ralfixx
K 1951574fffffffffffffffffffffffffffffffff
U ralfixx
Z bafe32233ff0f3168f9f046d05cdcdef