bug-gnulib
[Top][All Lists]
Advanced

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

Re: test-readlink failure on GNU/Linux


From: Ludovic Courtès
Subject: Re: test-readlink failure on GNU/Linux
Date: Sat, 15 Oct 2011 15:59:38 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Hi Eric,

Eric Blake <address@hidden> skribis:

> On 10/14/2011 04:25 PM, Ludovic Courtès wrote:
>> Hello,
>>
>> ‘test-readlink’ from GNU M4 1.4.16 fails on GNU/Linux with Linux 3.0.4
>> and GNU libc 2.13 with an assertion failure at test-readlink.h:41:
>>
>>      40: ASSERT (func ("", buf, sizeof buf) == -1);
>>      41: ASSERT (errno == ENOENT);
>>
>> It turns out that errno is set to EINVAL instead of ENOENT, which is
>> indeed not what POSIX suggests [0].
>>
>> Thoughts?
>
> Well known report.

Great!

> Gnulib has already been relaxed to work around the Linux violation of
> POSIX,

Are you referring to commit 68483ca35c0dbd347744327b1020b2e4215454f1?

> and the next time m4 is released, it will include the gnulib
> relaxation.  Good luck convincing the kernel folks to fix their
> violation, or the glibc folks of the need to work around the kernel
> error.

Heh.  :-)  The latter is more surprising to me since ISTR the glibc
folks were more careful about providing the right errno for Hurd and
Linux.

Thanks,
Ludo’.



reply via email to

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