bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: canonicalize test failures on Cygwin


From: Ken Brown
Subject: Re: canonicalize test failures on Cygwin
Date: Thu, 21 Jan 2021 13:19:35 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1

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

[Prev in Thread] Current Thread [Next in Thread]