delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4D74EC98.7090803@redhat.com> |
Date: | Mon, 07 Mar 2011 07:32:56 -0700 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: tar --atime-preserve with an empty file triggers a warning |
References: | <20110307152005 DOT 17292u50da242vth AT messagerie DOT si DOT c-s DOT fr> |
In-Reply-To: | <20110307152005.17292u50da242vth@messagerie.si.c-s.fr> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------enig4B88106DFEE291D6E65BF1CA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 03/07/2011 07:20 AM, EXCOFFIER Denis wrote: > Hello, >=20 > I've the experienced the following (100% reproducible under 1.7.7-1 or > 1.7.8-1): >=20 > % cp /dev/null empty Why not the much simpler: : > empty > % tar cf empty.tar --atime-preserve empty > /usr/bin/tar: empty: Cannot utime: Invalid argument > /usr/bin/tar: Exiting with failure status due to previous errors > % >=20 > Of course the empty.tar is created as expected (ie identical as without > `--atime-preserve). The warning is not produced on Solaris, Darwin or > Linux, > therefore i contacted this list. Do you think, with your expertise, that i > should contact bug-tar also? No, this list is correct. utime should not fail on an empty file, so you've probably exposed a bug in cygwin1.dll. Also, be aware that on cygwin, you _can't_ preserve symlink or directory atimes, as the mere act of lstat'ing those files causes cygwin to make windows syscalls that end up altering the access times on those types of files (but generally, the atime on directories and symlinks is not as interesting as the atime on regular files). --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig4B88106DFEE291D6E65BF1CA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJNdOyYAAoJEKeha0olJ0NqSl4H/jLtAKbuHzGw91loyiG3RYB4 lTcdR9nDBTRc8j+zPj6t1MSNLjsnCmvHHkaNPLzHhGa0sCQIZzqx0NP41k/Uu9KN MNJ1Lglnroq0uoj8gY8EJOiK53aMVGzGuwVV7+I/zqEaQVUTu88cY4gQkwdycsRO jo1oTmeveMuGNz5ikccu1pyySyKUTlunvCBlcx7oDZk5uC/KJdE8zOct+ug9lkcY /75ce2CoBC5uUdQxo08Xgj2HCYqW6XVCmVVL1137xTFC8G/P/OGv3U2jCECMU3Mk K2QTXZHbC0UpGEwKLrJqFtredT8zV/WBp17YZEkpatPA4iGqe0zCPktrGhXiPzM= =Wd2A -----END PGP SIGNATURE----- --------------enig4B88106DFEE291D6E65BF1CA--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |