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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pádraig Brady <P <at> draigBrady.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#8380: closed ("tar u" ignores files if archive modification
 time >= folder modification time)
Date: Wed, 30 Mar 2011 13:40:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 30 Mar 2011 14:39:08 +0100
with message-id <4D93327C.6090106 <at> draigBrady.com>
and subject line Re: bug#8380: "tar u" ignores files if archive modification time >=	folder modification time
has caused the GNU bug report #8380,
regarding "tar u" ignores files if archive modification time >= folder modification time
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
8380: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8380
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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)]
[Message part 5 (message/rfc822, inline)]
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.


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.