GNU bug report logs - #8380
"tar u" ignores files if archive modification time >= folder modification time

Previous Next

Package: coreutils;

Reported by: Karsten Loesing <karsten.loesing <at> gmx.net>

Date: Wed, 30 Mar 2011 12:29:01 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8380 in the body.
You can then email your comments to 8380 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8380; Package coreutils. (Wed, 30 Mar 2011 12:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Karsten Loesing <karsten.loesing <at> gmx.net>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 30 Mar 2011 12:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Karsten Loesing <karsten.loesing <at> gmx.net>
To: bug-coreutils <at> gnu.org
Subject: "tar u" ignores files if archive modification time >= folder
	modification time
Date: Wed, 30 Mar 2011 14:13:58 +0200
[Message part 1 (text/plain, inline)]
Hello list,

today I found that "tar u" doesn't update an archive unless the folder's
modification time is newer than the archive's modification time.

So, for example, creating a folder files/ with file-1, creating a test.tar
from it, creating another file files/file-2, and updating test.tar won't
add file-2 if this all happens in the same second.

Even touching files/file-2 a few seconds later won't add it to the tarball
if one tries to update it.

The only way to add files/file-2 is to touch the files/ folder before
updating the tarball.

Please find the attached shell script for an example.

I'm running "tar (GNU tar) 1.20", and I confirmed that "bsdtar 2.6.2 -
libarchive 2.6.2" on Mac OS X 10.6 behaves differently.  So, either this
is a bug, or at least a documentation/usability problem.

Thanks,
Karsten

[test-tar.sh (application/x-sh, attachment)]

Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Wed, 30 Mar 2011 13:40:03 GMT) Full text and rfc822 format available.

Notification sent to Karsten Loesing <karsten.loesing <at> gmx.net>:
bug acknowledged by developer. (Wed, 30 Mar 2011 13:40:04 GMT) Full text and rfc822 format available.

Message #10 received at 8380-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: 8380-done <at> debbugs.gnu.org
Subject: Re: bug#8380: "tar u" ignores files if archive modification time
	>=	folder modification time
Date: Wed, 30 Mar 2011 14:39:08 +0100
tags 8380 + notabug

I suggest you resend this to bug-tar <at> gnu.org

cheers,
Pádraig.




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8380; Package coreutils. (Wed, 30 Mar 2011 13:42:02 GMT) Full text and rfc822 format available.

Message #13 received at 8380 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Karsten Loesing <karsten.loesing <at> gmx.net>
Cc: 8380 <at> debbugs.gnu.org
Subject: Re: bug#8380: "tar u" ignores files if archive modification time
	>=	folder modification time
Date: Wed, 30 Mar 2011 07:41:24 -0600
[Message part 1 (text/plain, inline)]
On 03/30/2011 06:13 AM, Karsten Loesing wrote:
> Hello list,
> 
> today I found that "tar u" doesn't update an archive unless the folder's
> modification time is newer than the archive's modification time.

Thanks for the report; however, this would better be reported to the
bug-tar list, since tar is not part of GNU coreutils.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Wed, 30 Mar 2011 13:45:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 28 Apr 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 53 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.