On 1/20/2021 3:31 AM, Bruno Haible wrote:
Ken Brown wrote:
I took a quick look, and it appears that this is a Cygwin bug in which
realpath() fails with ENOENT instead of ENOTDIR.

Yes, I confirm. POSIX
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html>
says that when one of the components "names an existing file that is neither
a directory nor a symbolic link to a directory", realpath() shall fail with
error ENOTDIR. Failing with error ENOENT is not allowed in this case.

Thanks for confirming.  I've submitted a patch that fixes this:

  https://cygwin.com/pipermail/cygwin-patches/2021q1/010985.html

Ken

Reply via email to