Commit Graph

1136 Commits

Author SHA1 Message Date
Sergey Poznyakoff
15a607fc11 (struct tar_sparse_optab.sparse_member_p)
(struct tar_sparse_optab.fixup_header): New member
(tar_sparse_member_p): New function.
(tar_sparse_init): Return true if decode_header is not provided
(tar_sparse_fixup_header)
(sparse_member_p,sparse_fixup_header)
(sparse_skip_file)
(oldgnu_sparse_member_p,oldgnu_fixup_header,star_sparse_member_p)
(star_fixup_header, pax_sparse_member_p): New function
(pax_decode_header): Remove
2004-04-04 09:33:25 +00:00
Sergey Poznyakoff
1329cfe9f8 include "common.h" 2004-04-04 09:32:33 +00:00
Sergey Poznyakoff
3ff03c0c5e (decode_header): Use sparse_fixup_header to correct
the st_size value.
(print_header): Do not rely on GNUTYPE_SPARSE type.
Use st->stat.st_size to print real file size.
(skip_member): Assign stat_info.file_name to save_name. This fixes
bug reported by Mads Martin Joergensen <mmj@suse.de>
Use sparse_skip_file() to skip sparse members.
2004-04-04 09:31:44 +00:00
Sergey Poznyakoff
3030a247b1 (extract_archive): Use sparse_member_p instead of GNUTYPE_SPARSE. 2004-04-04 09:26:11 +00:00
Sergey Poznyakoff
22c2e2ab8a Removed unused variables 2004-04-04 09:25:48 +00:00
Sergey Poznyakoff
be48ff0699 (diff_archive): Use is_sparse member instead of GNUTYPE_SPARSE. 2004-04-04 09:25:30 +00:00
Sergey Poznyakoff
a1d15e7c89 Added missing prototypes 2004-04-04 09:25:01 +00:00
Sergey Poznyakoff
ad2c53d626 Added new tests 2004-04-04 09:24:44 +00:00
Sergey Poznyakoff
8c0cb259bf Updated 2004-03-26 19:43:51 +00:00
Sergey Poznyakoff
472f860074 Add longv7.sh 2004-03-26 19:40:27 +00:00
Sergey Poznyakoff
d8981440bb (write_long_name): Do not allow more than
NAME_FIELD_SIZE-1 characters in a file name for V7 format
archives.
2004-03-26 19:39:40 +00:00
Sergey Poznyakoff
7f2e3cf63a Updated 2004-03-22 12:01:46 +00:00
Sergey Poznyakoff
f7dbd14d57 Updated to match the recent changes 2004-03-22 12:00:12 +00:00
Sergey Poznyakoff
106a24176e (open_archive): Clear read_full_records_option
if reading from a pipe.
(short_read): Display warning about the deduced record size
if version > 1
2004-03-22 11:59:35 +00:00
Sergey Poznyakoff
c83fcab116 Updated 2004-03-22 09:18:36 +00:00
Sergey Poznyakoff
4cb8697f60 Use genfile instead of dd 2004-03-22 09:17:48 +00:00
Sergey Poznyakoff
6bd7b64c78 (to_decimal): New function.
(xheader_format_name): Use to_decimal() instead of snprintf.
2004-03-22 09:17:18 +00:00
Sergey Poznyakoff
e5882c8220 (start_header): Check for GNU_FORMAT if incremental_option is set. 2004-03-22 09:16:49 +00:00
Sergey Poznyakoff
72e3da5dc7 Added gl_FUNC_STRTOULL 2004-03-22 09:15:56 +00:00
Sergey Poznyakoff
7b0b6c4e7a Updated 2004-03-12 10:39:27 +00:00
Sergey Poznyakoff
683390b02d (read_and): Stop processing the archive after
encountering a single zero record. Many old archives contain
arbitrary garbage after it.
The warning is issued anyway.
2004-03-12 10:38:46 +00:00
Sergey Poznyakoff
e189bd8eca Updated 2004-03-02 09:36:20 +00:00
Sergey Poznyakoff
5282ef9709 (utf8_convert): Indentation fix. 2004-03-02 09:35:13 +00:00
Sergey Poznyakoff
b38e4b4520 Added Leland Lucius 2004-03-02 09:34:44 +00:00
Sergey Poznyakoff
9f14fd52de (rmt_lseek__,rmt_ioctl__): Bugfix. The
conversion buffer was not null terminated. Fix provided
by Leland Lucius <llucius@tiny.net>
2004-03-02 09:34:06 +00:00
Sergey Poznyakoff
2345d02c63 Updated 2004-02-29 10:21:17 +00:00
Sergey Poznyakoff
6f219c485e Updated 2004-02-29 10:18:05 +00:00
Sergey Poznyakoff
a06ed48867 Added multi-fail.sh 2004-02-29 10:17:18 +00:00
Sergey Poznyakoff
d6929326e7 New test. 2004-02-29 10:16:33 +00:00
Sergey Poznyakoff
7fb546943e (sys_child_open_for_uncompress): Minor stylistic fix. 2004-02-29 10:16:02 +00:00
Sergey Poznyakoff
37400fa94e (flush_read): Bugfix: the condition at line 714 included
|| (status > 0 && !read_full_records_option)

which is grossly wrong, since even if new_volume() below succeeds,
the subsequent call to rmtread will overwrite the chunk of data
already read in the buffer and thus spoil everything.
2004-02-29 10:15:45 +00:00
Sergey Poznyakoff
8c1b242931 Updated 2004-02-29 00:15:05 +00:00
Sergey Poznyakoff
176557a004 New file 2004-02-29 00:09:31 +00:00
Sergey Poznyakoff
427f8d6185 Accomodate for the new testsuite logic 2004-02-29 00:07:00 +00:00
Sergey Poznyakoff
d584c1ed0f Rewritten 2004-02-29 00:06:36 +00:00
Sergey Poznyakoff
a8d1b579d7 Added new tests 2004-02-29 00:06:16 +00:00
Sergey Poznyakoff
5a9174376b New options: --utc and keep-newer-files 2004-02-29 00:06:03 +00:00
Sergey Poznyakoff
cedd9d6e81 (tartime): Print UTC if --utc was given. 2004-02-29 00:05:31 +00:00
Sergey Poznyakoff
29584d69fd Handle --keep-newer-files option 2004-02-29 00:05:12 +00:00
Sergey Poznyakoff
236deef28e (utc_option): new global
(enum old_files.KEEP_NEWER_FILES): New element
2004-02-29 00:04:50 +00:00
Sergey Poznyakoff
ca84e28ee5 Removed spurious AC_CHECK_LIB(iconv) 2004-02-29 00:04:21 +00:00
Sergey Poznyakoff
81bf1687f8 Updated 2004-02-29 00:04:03 +00:00
Paul Eggert
7afd75ed24 Append period to dircategory entry. 2004-02-26 18:02:50 +00:00
Sergey Poznyakoff
3dbc6a6645 Updated 2004-02-24 15:28:27 +00:00
Sergey Poznyakoff
d8b790047f (decode_header): Call xheader_decode before the assignment to current_stat_info.archive_file_size. 2004-02-24 15:27:54 +00:00
Paul Eggert
fb9a7d180f Invoke AM_ICONV, to define ICONV_CONST if needed. 2004-02-23 22:31:20 +00:00
Sergey Poznyakoff
6a887bbbe5 Updated alpha_1_13_93 2004-02-23 10:07:21 +00:00
Sergey Poznyakoff
9e0d059205 Use prereq() instead of passing arguments to 'before'. 2004-02-23 10:05:42 +00:00
Sergey Poznyakoff
97b9e3d31c Move testing of the prerequisite archive formats
to the separate function 'prereq'. Do not expect any arguments
2004-02-23 10:05:22 +00:00
Sergey Poznyakoff
7add6e4274 Updated 2004-02-23 10:04:49 +00:00