Overview
| Artifact ID: | 0c8bb4611f90896c9b7905bd5052f023c84a76f7 |
|---|---|
| Ticket: | 391bc0fd2cdd59209201660b95a2d886d24c1825
glob, -nocomplain, -types, and insufficient privileges |
| User & Date: | aspect on 2016-11-16 12:00:30 |
Changes
- icomment:
This surprised me so I had to dig a bit further. The manual for <code>stat(2)</code> on Linux and FreeBSD agrees: <quote>No permissions are required on the file itself, but execute (search) permission is required on all of the directories in pathname that lead to the file.</quote> So <code>stat()</code> will return -1 with errno <code>EACCES</code> in this case. An oddity below this: <code>TclOSStat</code> and friends populate statBuf with junk if the syscall returns non-zero. I don't think this has any effect, but it doesn't seem wise.
- login: "aspect"
- mimetype: "text/plain"