Nixers Book Club - Book #1: The UNIX Programming Environment - Community & Forums Related Discussions
Users browsing this thread: 9 Guest(s)
|
|||
(21-11-2020, 12:55 PM)phillbush Wrote: Until just recently I thought that you could access a file from a directory you have --x permission given that you have the full path of it. Wait, but that’s correct, isn’t it? Code: $ uname -rs With only “r--”, both OpenBSD and Linux give somewhat strange results: Code: $ uname -rs Code: $ uname -rs Note that OpenBSD’s output of “ls -l foo” is empty, but it works as “ls foo”. Probably does something like stat(2) on the files it finds and, if that fails, silently skips the directory entry. |
|||