[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils-6.11-1 in release-2 area
From: |
Eric Blake |
Subject: |
Re: coreutils-6.11-1 in release-2 area |
Date: |
Thu, 22 May 2008 06:10:40 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Corinna Vinschen on 5/22/2008 5:56 AM:
|
| While we're talking about coreutils, it would be a good idea to use the
| latest Cygwin from CVS when testing coreutils further(*). cp baild out
| on me because it used a NULL pathname in calls to futimesat, which I'd
| consider a bug in coreutils, but the Linux man page gives away that this
| is a GLIBC extension. I fixed that in CVS so futimesat can now do its
| job (hopefully) correctly withe NULL pathname as well.
|
| However, here's a question: Should coreutils really use futimesat at
| all when futimes and utimensat are available? Isn't that sort of a
| buglet in coreutils?
Hmm. There's some history here. futimesat was the original proposal,
then Posix 200x changed their minds and decided to standardize utimensat
instead. Gnulib implemented a version prior to glibc, then glibc picked
up the prototype that Posix was proposing which conflicted with gnulib (if
I recall correctly, it was the addition of a flag parameter).
Meanwhile, it IS a bit annoying that Posix 200x decided not to standardize
utimensat(fd,NULL,times,flag) as changing the times on fd rather than
treating fd as the directory starting point; once you have an open fd,
having to refer to the file by name again is potentially racy. I wonder
if, in all of the flurry in the Austin Group about changing futimesat to
utimensat, that this use case was overlooked. But cygwin should certainly
consider providing this as a useful extension, and coreutils should be
taught to snoop whether systems with futimesat/utimensat support also
honor this extension.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkg1YsAACgkQ84KuGfSFAYCZZQCg1rYEKnRtLHbFXnoepTOuUBkj
AaYAn1Izxbo7w7NY4NsnorDJlAAk0RIZ
=T/0D
-----END PGP SIGNATURE-----
- Re: coreutils-6.11-1 in release-2 area,
Eric Blake <=
- Message not available
- Message not available
- Re: coreutils-6.11-1 in release-2 area, Eric Blake, 2008/05/22
- Re: coreutils-6.11-1 in release-2 area, Jim Meyering, 2008/05/22
- Re: coreutils-6.11-1 in release-2 area, Eric Blake, 2008/05/22
- utimens and non-standardized futimesat [was: coreutils-6.11-1 in release-2 area], Eric Blake, 2008/05/28
- Re: utimens and non-standardized futimesat, Jim Meyering, 2008/05/29