Skip to content
Tcl Source Code Artifact [0c8bb4611f]
Login

Artifact [0c8bb4611f]

Artifact 0c8bb4611f90896c9b7905bd5052f023c84a76f7:

Ticket change [0c8bb4611f] - Ticket [391bc0fd2cdd5920|391bc0fd2c] <i>glob, -nocomplain, -types, and insufficient privileges</i> status still Open with 3 other changes by aspect on 2016-11-16 12:00:30.
D 2016-11-16T12:00:30.411
J icomment This\ssurprised\sme\sso\sI\shad\sto\sdig\sa\sbit\sfurther.\s\sThe\smanual\sfor\s<code>stat(2)</code>\son\sLinux\sand\sFreeBSD\sagrees:\r\n\r\n<quote>No\spermissions\sare\srequired\son\sthe\sfile\sitself,\sbut\sexecute\s(search)\spermission\sis\srequired\son\sall\sof\sthe\sdirectories\sin\spathname\sthat\slead\sto\sthe\sfile.</quote>\r\n\r\nSo\s<code>stat()</code>\swill\sreturn\s-1\swith\serrno\s<code>EACCES</code>\sin\sthis\scase.\r\n\r\nAn\soddity\sbelow\sthis:\s\s<code>TclOSStat</code>\sand\sfriends\spopulate\sstatBuf\swith\sjunk\sif\sthe\ssyscall\sreturns\snon-zero.\s\sI\sdon't\sthink\sthis\shas\sany\seffect,\sbut\sit\sdoesn't\sseem\swise.
J login aspect
J mimetype text/plain
K 391bc0fd2cdd59209201660b95a2d886d24c1825
U aspect
Z fcc51757de2f72a6d03ddca2b14e8269