: <i>problem with "file executable" on windows, tcl 8.5.2</i> plus 8 other changes
by
.
D 2013-09-24T22:03:15.864
J assignee aku
J closedate 2456560.41893361
J closer dkf
J comment ActiveState\sTCL\s8.5.2,\sWindows\sXP\sSP2\r\n\r\n'file\sexecutable'\salways\sreturns\s0,\seven\son\s.exe\sand\s.bat\swhen\sasked\r\nfor\sa\sfile\son\sa\snetwork\sshare:\r\n\r\n\s\s\s\s%\sinfo\spatchlevel\r\n\s\s\s\s8.5.2\r\n\r\n\s\s\s\s%\sset\sfile\sL:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\r\n\s\s\s\sL:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\r\n\s\s\s\s%\sfile\sexists\s$file\r\n\s\s\s\s1\r\n\s\s\s\s%\sfile\sreadable\s$file\r\n\s\s\s\s1\r\n\s\s\s\s%\sfile\sexecutable\s$file\r\n\s\s\s\s0\r\n\r\n\r\n%\sfile\sstat\sl:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\sstat\r\n%\sparray\sstat\r\nstat(atime)\s=\s1209122103\r\nstat(ctime)\s=\s1209068036\r\nstat(dev)\s\s\s=\s11\r\nstat(gid)\s\s\s=\s0\r\nstat(ino)\s\s\s=\s65447\r\nstat(mode)\s\s=\s33252\r\nstat(mtime)\s=\s1209068036\r\nstat(nlink)\s=\s1\r\nstat(size)\s\s=\s143360\r\nstat(type)\s\s=\sfile\r\nstat(uid)\s\s\s=\s0\r\n%\sfile\sattributes\sl:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\r\n-archive\s0\s-hidden\s0\s-longname\sL:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\r\n\s-readonly\s0\s-shortname\sL:/ralf/SWN7X3~G/SA8C5U~X/bin/winnt/gen.exe\s-system\s0\r\n\r\nThe\sL:/\sNetwork\sShare\sis\san\sSamba\sshare\smounted\sfrom\sa\slinux\sbox.\r\n\r\n\r\nHowever,\swhen\scopying\sthe\sfiles\sto\slocal\sdisk,\sthe\sfiles\sare\squalified\r\nas\sexecutable:\r\n\r\n\s\s\s\s%\scp\sL:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\sd:/temp\r\n\s\s\s\s%\sfile\sexecutable\sd:/temp/gen.exe\r\n\s\s\s\s1\r\n\r\n%\sfile\sstat\sd:/temp/gen.exe\sstat\r\n%\sparray\sstat\r\nstat(atime)\s=\s1209124275\r\nstat(ctime)\s=\s1209064504\r\nstat(dev)\s\s\s=\s3\r\nstat(gid)\s\s\s=\s0\r\nstat(ino)\s\s\s=\s52961\r\nstat(mode)\s\s=\s33252\r\nstat(mtime)\s=\s1209064504\r\nstat(nlink)\s=\s1\r\nstat(size)\s\s=\s143360\r\nstat(type)\s\s=\sfile\r\nstat(uid)\s\s\s=\s0\r\n\r\n\r\n%\sfile\sattributes\s\sd:/temp/gen.exe\r\n-archive\s0\s-hidden\s0\s-longname\sD:/temp/gen.exe\s-readonly\s0\s-shortname\r\nD:/temp/gen.exe\s-system\s0\r\n\r\n=============================\r\n\r\nIn\sa\sdebugging\ssession\sI\ssee\sthat\sthe\sproblem\sis\sin\stclwinfile.c,\sin\sNativeAccess(),\s#1702\r\n\r\nif\s(!(*tclWinProcs->accessCheckProc)(sdPtr,\shToken,\sdesiredAccess,\r\n&genMap,\s&privSet,\s&privSetSize,\s&grantedAccess,\r\n&accessYesNo))\s{\r\n\r\nThis\smaps\sto\sthe\sWindows-API\sAccessCheck()\slibary\sfunction\sand\sreturns\s0\sin\saccessYesNo\sfor\sthe\snetwork\sfile\sand\s1\sfor\sthe\slocal\sfile.\r\n\r\nThis\scurrently\sis\sa\sreal\sshowstopper\sfor\sus,\sso\sI'd\sappreciate\sany\shelp...\r\n\r\nThis\salso\shappens\sin\s8.4.x,\sbut\snot\sin\s8.3.x\swhich\sdoes\snot\shave\sthe\sextended\ssecurity-descriptor\schecks.\r\n\r\nNote\sthat\sthe\sfile-stat-mode\sis\sthe\ssame\sfor\sthe\snetwork\sand\slocal\sfile\sand\sseems\sto\sinclude\sowner-execute-permissions\sfor\sboth\sfiles.\r\n\r\n\r\nThanks\r\nR'
J foundin 8.5.2
J login dkf
J mimetype text/plain
J severity Minor
J status Closed
K 1951574fffffffffffffffffffffffffffffffff
U dkf
Z 7dda22bd07c678b16ab892340337daad