On 12 September 2012 11:29, Eric Blake wrote:
> In POSIX, the wording "is not a directory" is true only if the file
> exists as some other type. But here, zzz does not even exist; hence,
> the ENOENT error takes precedence. This is a bug in the FreeBSD
> realpath() code, because they misinterpr
On 09/12/2012 09:21 AM, Ed Maste wrote:
>> Since '/path/to/zzz' does not exist, this should be ENOENT; ENOTDIR
>> would only be valid in the case where /path/to/zzz exists but is not a
>> directory. It sounds like a bug in the FreeBSD kernel.
>>
>> That said, are we already replacing realpath() on
On 12 September 2012 10:44, Eric Blake wrote:
> On 09/12/2012 08:38 AM, Paul Eggert wrote:
>> On 09/12/2012 06:38 AM, Ed Maste wrote:
>>> Should ENOTDIR be a permissible errno for this test?
>>
>> I don't see why. It's not called out in the GNU documentation
>> for canonicalize_file_name, and the
Ed Maste wrote:
> I have four test failures when running the gnulib test suite (at 6418d7c961)
> on FreeBSD, some of which are clear FreeBSD bugs. My test host is FreeBSD
> 9.1-PRERELEASE (r240164M).
>
> One that isn't clear to me is:
>
> test-canonicalize-lgpl.c:98: assertion failed
> Abort trap
On 09/12/2012 08:38 AM, Paul Eggert wrote:
> On 09/12/2012 06:38 AM, Ed Maste wrote:
>> Should ENOTDIR be a permissible errno for this test?
>
> I don't see why. It's not called out in the GNU documentation
> for canonicalize_file_name, and the POSIX documentation for
> realpath does not seem to
On 09/12/2012 06:38 AM, Ed Maste wrote:
> Should ENOTDIR be a permissible errno for this test?
I don't see why. It's not called out in the GNU documentation
for canonicalize_file_name, and the POSIX documentation for
realpath does not seem to allow ENOTDIR for the similar
situation with realpath.
I have four test failures when running the gnulib test suite (at 6418d7c961)
on FreeBSD, some of which are clear FreeBSD bugs. My test host is FreeBSD
9.1-PRERELEASE (r240164M).
One that isn't clear to me is:
test-canonicalize-lgpl.c:98: assertion failed
Abort trap (core dumped)
FAIL: test-canon