* 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
+17 -3
View File
@@ -1,8 +1,22 @@
2005-11-07 Sergey Poznyakoff <gray@gnu.org.ua>
and Paul Eggert <eggert@cs.ucla.edu>
* 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
2005-11-07 Sergey Poznyakoff <gray@gnu.org.ua>
Support for incremental formats in pax archives.
Fixed POSIX compatibility of `sparse' extended header keywords.
* src/common.h (dumpdir_size,get_gnu_dumpdir)
(xheader_string_begin,xheader_string_add)
(xheader_string_end): New functions.
@@ -39,14 +53,14 @@
(xheader_finish): Do not rely om strlen to compute the length of
the collected string: it can contain embedded nulls
(xheader_string_begin,xheader_string_add,xheader_string_end): New
functions.
functions.
(sparse_map_decoder,dumpdir_coder,dumpdir_decoder): New
functions. Handle GNU.sparse.map and GNU.dumpdir variables.
(xhdr_tab): Add new variables.
* tests/incr01.at: Test gnu, oldgnu, and posix formats
* tests/incremental.at: Likewise
2005-11-06 Paul Eggert <eggert@cs.ucla.edu>
* src/xheader.c (strtoimax, strtoumax): Remove decls; now done