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

2011-03-30 Thread Jim Meyering
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.

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

2011-03-30 Thread Eric Blake
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. Is it worth filing a bug

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

2011-03-29 Thread Jim Meyering
a369223ab69 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 30 Mar 2011 08:46:22 +0200 Subject: [PATCH] tests: readlink* ("",... fails with EINVAL on newer kernels readlink and readlinkat have typically failed with ENOENT for the invalid, empty file name, "". However,