From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: Bruno Haible <bruno@clisp.org>
Cc: cygwin@cygwin.com
Subject: Re: wrong errno value set by readlinkat()
Date: Tue, 18 Apr 2023 13:56:34 +0200 [thread overview]
Message-ID: <ZD6Fcjq7J5RkoU8h@calimero.vinschen.de> (raw)
In-Reply-To: <12553230.hYdu0Ggh8K@nimes>
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
prev parent reply other threads:[~2023-04-18 11:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 10:21 Bruno Haible
2023-04-18 11:56 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZD6Fcjq7J5RkoU8h@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=bruno@clisp.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).