On Fri, Jun 5, 2020, at 8:22 PM, Richard Miller wrote:
> Looks to me like access(2) is not doing the right thing for directory
> execute (=search) permission.
thanks for the tip. access is a very simple function. it doesn't do the right
thing, but there's a reason:
BUGS
Since file permissions are checked by the server and group
information is not known to the client, access must open the
file to check permissions. (It calls stat(2) to check sim-
ple existence.)
it's open() which is failing. i suppose it should.
if the open fails, maybe access should stat the file, and if it's a directory,
try dirread(2). or maybe just opening it for reading will work. i don't know,
i'm new to this bit of plan 9 & i haven't slept.
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tdd7a9b1b32d01f54-M6c82b233d9b0cabf21ca7512
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription