bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] tests: readlink* ("", ... fails with EINVAL on newer kernels


From: Jim Meyering
Subject: Re: [PATCH] tests: readlink* ("", ... fails with EINVAL on newer kernels
Date: Wed, 30 Mar 2011 14:50:23 +0200

Eric Blake wrote:
> On 03/30/2011 12:49 AM, Jim Meyering wrote:
>> coreutils' "make check" failed on rawhide due to a kernel change
>> in how readlink and readlinkat treat the empty file name.
>> Before, they'd fail with ENOENT.  Now, it's EINVAL.
>
> That's unfortunate, because it violates POSIX.

Good point.

> Is it worth filing a bug
> against glibc to avoid exposing the kernel's choice to the user?

Actually I don't *know* that this changed in the kernel.
It might have been in glibc.  I didn't look.

In any case, it'd be good to know what motivated the change,
so if no one else gets to it first, I'll track that down tomorrow.



reply via email to

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