[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug 552320] Handling AT_FDCWD as EBADF in glibc's utimens() causes
Dmitry V. Levin
Re: [Bug 552320] Handling AT_FDCWD as EBADF in glibc's utimens() causes tar failures
Fri, 8 Jan 2010 04:16:28 +0300
On Wed, Jan 06, 2010 at 06:20:51AM -0700, Eric Blake wrote:
> According to Jim Meyering on 1/5/2010 2:07 PM:
> >> --- Comment #5 from Ondrej Vasik <address@hidden> 2010-01-05 14:29:13 EDT
> >> ---
> >> Ah - even the latest gnulib doesn't handle this new recent change - so
> >> touch
> >> from coreutils might be affected as well as mentioned in debian bugzilla
> >> from
> >> comment #4. Therefore adding coreutils/gnulib upstream maintainer into CC.
> For the record, the bug occurs any time something calls fdutimens
> (negative, name, t) trying to change the timestamp of name with no fd
> present, and only occurs on platforms running an old kernel (2.6.18 or
> older, where utimensat syscall fails with ENOSYS) but new glibc (2.11.1 or
> newer, where the futimens wrapper failing with EBADF masks the desired
> ENOSYS that we used to get from the kernel).
Just for the record, appropriate glibc commit glibc-2.11-77-g4286fa4 hasn't
been backported to 2.11 branch yet, so glibc-2.11.1 is not fresh enough to
reproduce the issue.
Description: PGP signature