* src/tar.c (NS_PRECISION_FORMAT_MASK): New macro.

(tar_timespec_cmp): New function. Wrapper over
timespec_cmp using the timespec precision provided by the
current archive format.
* src/common.h (tar_timespec_cmp): New declaration.
* src/compare.c (diff_file): Use tar_timespec_cmp.
* src/extract.c (file_newer_p): Likewise.
* src/update.c (update_archive): Likewise.
* tests/truncate.at: Reverted changes
* tests/update.at: Reverted changes
This commit is contained in:
Paul Eggert
2005-11-08 07:20:02 +00:00
parent 06379466c1
commit 57c2124d68
8 changed files with 44 additions and 16 deletions

View File

@@ -31,7 +31,6 @@ AT_KEYWORDS([truncated files])
AT_TAR_CHECK([
genfile --file foo --length 50000k
genfile --file baz
touch -t 197001030000 baz # avoid subsecond resolution
genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
echo separator
sleep 1