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

Artifact [9e5d42d96c]

Artifact 9e5d42d96c497769ef830081ca2575def8b98ce6:

Ticket change [9e5d42d96c] - New ticket [1951574fffffffff|1951574fff] <i>problem with &quot;file executable&quot; on windows, tcl 8.5.2</i>. by ralfixx on 2008-04-25 12:26:12.
D 2008-04-25T12:26:12
J assignee vincentdarley
J cmimetype text/plain
J comment ActiveState\sTCL\s8.5.2,\sWindows\sXP\sSP2\n\n'file\sexecutable'\salways\sreturns\s0,\seven\son\s.exe\sand\s.bat\swhen\sasked\nfor\sa\sfile\son\sa\snetwork\sshare:\n\n\s\s\s\s%\sinfo\spatchlevel\n\s\s\s\s8.5.2\n\n\s\s\s\s%\sset\sfile\sL:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\n\s\s\s\sL:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\n\s\s\s\s%\sfile\sexists\s$file\n\s\s\s\s1\n\s\s\s\s%\sfile\sreadable\s$file\n\s\s\s\s1\n\s\s\s\s%\sfile\sexecutable\s$file\n\s\s\s\s0\n\n\n%\sfile\sstat\sl:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\sstat\n%\sparray\sstat\nstat(atime)\s=\s1209122103\nstat(ctime)\s=\s1209068036\nstat(dev)\s\s\s=\s11\nstat(gid)\s\s\s=\s0\nstat(ino)\s\s\s=\s65447\nstat(mode)\s\s=\s33252\nstat(mtime)\s=\s1209068036\nstat(nlink)\s=\s1\nstat(size)\s\s=\s143360\nstat(type)\s\s=\sfile\nstat(uid)\s\s\s=\s0\n%\sfile\sattributes\sl:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\n-archive\s0\s-hidden\s0\s-longname\sL:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\n\s-readonly\s0\s-shortname\sL:/ralf/SWN7X3~G/SA8C5U~X/bin/winnt/gen.exe\s-system\s0\n\nThe\sL:/\sNetwork\sShare\sis\san\sSamba\sshare\smounted\sfrom\sa\slinux\sbox.\n\n\nHowever,\swhen\scopying\sthe\sfiles\sto\slocal\sdisk,\sthe\sfiles\sare\squalified\nas\sexecutable:\n\n\s\s\s\s%\scp\sL:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe\sd:/temp\n\s\s\s\s%\sfile\sexecutable\sd:/temp/gen.exe\n\s\s\s\s1\n\n%\sfile\sstat\sd:/temp/gen.exe\sstat\n%\sparray\sstat\nstat(atime)\s=\s1209124275\nstat(ctime)\s=\s1209064504\nstat(dev)\s\s\s=\s3\nstat(gid)\s\s\s=\s0\nstat(ino)\s\s\s=\s52961\nstat(mode)\s\s=\s33252\nstat(mtime)\s=\s1209064504\nstat(nlink)\s=\s1\nstat(size)\s\s=\s143360\nstat(type)\s\s=\sfile\nstat(uid)\s\s\s=\s0\n\n\n%\sfile\sattributes\s\sd:/temp/gen.exe\n-archive\s0\s-hidden\s0\s-longname\sD:/temp/gen.exe\s-readonly\s0\s-shortname\nD:/temp/gen.exe\s-system\s0\n\n=============================\n\nIn\sa\sdebugging\ssession\sI\ssee\sthat\sthe\sproblem\sis\sin\stclwinfile.c,\sin\sNativeAccess(),\s#1702\n\nif\s(!(*tclWinProcs->accessCheckProc)(sdPtr,\shToken,\sdesiredAccess,\n&genMap,\s&privSet,\s&privSetSize,\s&grantedAccess,\n&accessYesNo))\s{\n\nThis\smaps\sto\sthe\sWindows-API\sAccessCheck()\slibary\sfunction\sand\sreturns\s0\sin\saccessYesNo\sfor\sthe\snetwork\sfile\sand\s1\sfor\sthe\slocal\sfile.\n\nThis\scurrently\sis\sa\sreal\sshowstopper\sfor\sus,\sso\sI'd\sappreciate\sany\shelp...\n\nThis\salso\shappens\sin\s8.4.x,\sbut\snot\sin\s8.3.x\swhich\sdoes\snot\shave\sthe\sextended\ssecurity-descriptor\schecks.\n\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.\n\n\nThanks\nR'\n\n\n\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter ralfixx
J subsystem 37.\sFile\sSystem
J title problem\swith\s"file\sexecutable"\son\swindows,\stcl\s8.5.2
J type Bug
K 1951574fffffffffffffffffffffffffffffffff
U ralfixx
Z b4e27d6164e20ee0fffce76d4fbbaee5