Re: [Bug-tar] Re: tar --atime-preserve with an empty file triggers a warning

2011-03-07 Thread Paul Eggert
Thanks for reporting that. I installed the following patch into GNU tar: From 24980ce3c6e01ce43cdccd5d1f693c9838e447ed Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 7 Mar 2011 15:40:32 -0800 Subject: [PATCH] --atime-preserve=replace: fix correctness and performance bugs reported by Eri

Re: tar --atime-preserve with an empty file triggers a warning

2011-03-07 Thread Christopher Faylor
On Mon, Mar 07, 2011 at 04:43:30PM +0100, Corinna Vinschen wrote: >On Mar 7 08:07, Eric Blake wrote: >> [adding bug-tar] >> >> On 03/07/2011 07:43 AM, Corinna Vinschen wrote: >> > THis looks like a tar bug, per the strace. For some reason, if the >> > file is empty, tar calls futimens on file de

Re: tar --atime-preserve with an empty file triggers a warning

2011-03-07 Thread Corinna Vinschen
On Mar 7 08:07, Eric Blake wrote: > [adding bug-tar] > > On 03/07/2011 07:43 AM, Corinna Vinschen wrote: > > THis looks like a tar bug, per the strace. For some reason, if the > > file is empty, tar calls futimens on file descriptor 0 (which is > > connected to /dev/tty1 in my case), while it ca

Re: tar --atime-preserve with an empty file triggers a warning

2011-03-07 Thread Eric Blake
[adding bug-tar] On 03/07/2011 07:43 AM, Corinna Vinschen wrote: >>> 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,

Re: tar --atime-preserve with an empty file triggers a warning

2011-03-07 Thread Corinna Vinschen
On Mar 7 07:32, Eric Blake wrote: > On 03/07/2011 07:20 AM, EXCOFFIER Denis wrote: > > Hello, > > > > I've the experienced the following (100% reproducible under 1.7.7-1 or > > 1.7.8-1): > > > > % cp /dev/null empty > > Why not the much simpler: > > : > empty > > > % tar cf empty.tar --atime-

Re: tar --atime-preserve with an empty file triggers a warning

2011-03-07 Thread Eric Blake
On 03/07/2011 07:20 AM, EXCOFFIER Denis wrote: > Hello, > > I've the experienced the following (100% reproducible under 1.7.7-1 or > 1.7.8-1): > > % cp /dev/null empty Why not the much simpler: : > empty > % tar cf empty.tar --atime-preserve empty > /usr/bin/tar: empty: Cannot utime: Invalid a

tar --atime-preserve with an empty file triggers a warning

2011-03-07 Thread EXCOFFIER Denis
Hello, I've the experienced the following (100% reproducible under 1.7.7-1 or 1.7.8-1): % cp /dev/null 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 % Of course the empty.tar i