https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99533

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #1)
> > On Linux, called with / it stops when hitting for example a
> > "/proc/1/task/1/cwd", resulting in EPERM too.
> 
> But that happens in your code, not in the library. The error is:
> 
>   Error: filesystem error: status: Permission denied [/proc/1/task/1/cwd]

And that's an EACCES error anyway (as POSIX requires for stat(3) permission
errors). The text would be "Operation not permitted" for EPERM.

Reply via email to