|
From: | Paul Eggert |
Subject: | Re: coreutils-9.0.193-54bec on Solaris 11.4 |
Date: | Tue, 12 Apr 2022 17:51:07 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 |
On 4/12/22 07:05, Pádraig Brady wrote:
This does seem like a bug in that O_DIRECTORY should take precedence, especially considering O_SEARCH is documented in the Solaris open man page to return ENOTDIR for non directories.
I don't think it's a bug, as longstanding POSIX tradition is that if there are multiple reasons to fail (here, EACCES and ENOTDIR) then a library function can fail with either error number.
Your patch doesn't feel quite right to me but I haven't figured out why yet; I'll try to spring time to look at it in more detail.
[Prev in Thread] | Current Thread | [Next in Thread] |