wrong errno value set by readlinkat()

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Apr 18 11:56:34 GMT 2023


On Apr 18 12:21, Bruno Haible via Cygwin wrote:
> Hi,
> 
> When an empty path argument is passed to the readlinkat() function,
> POSIX:2018 specifies that the function fails with error ENOENT:
> 
> https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html
> "These functions shall fail if:
> ...
> [ENOENT]
>     A component of path does not name an existing file or path is an empty
>     string."
> 
> In Cygwin 3.4.6, readlinkat() fails with error EBADF instead.

Thanks, I pushed a patch.

A test release cygwin-3.5.0-0.283.gfa84aa4dd2fb containing this patch
is building right now.  You can install it via setup as soon as it's
available (roughly in an hour).


Thanks again,
Corinna



More information about the Cygwin mailing list