Sergey Poznyakoff
5608be67f7
Renamed --strip-path to --strip-components
...
Changed improper use of _() to ngettext().
2004-05-13 08:22:28 +00:00
Sergey Poznyakoff
48c24ac711
(decode_options): Fixed typo in the comment.
2004-05-11 14:24:23 +00:00
Sergey Poznyakoff
3e8f210904
(open_archive): Removed assignment to read_full_records_option.
2004-05-11 14:23:25 +00:00
Sergey Poznyakoff
ee56bd0d0b
(sys_child_open_for_uncompress): Do not
...
set read_full_records_option: the compressed archive is
likely not to contain integer number of records. Should
the user wish to use reblocking, he may always give tar
-B option. This is a minor improvement over the change
dated 2004-03-22.
2004-05-11 14:17:28 +00:00
Sergey Poznyakoff
ecb338ad8e
(safer_name_suffix): (safer_name_suffix): Use "%s"
...
as the format argument, rather than a possibly-translated variable
string. Patch provided by Jim Meyering <jim@meyering.net >
2004-05-11 14:12:39 +00:00
Sergey Poznyakoff
be8899e6aa
Fixed prerequisite headers for sys/buf.h (needed on FreeBSD)
2004-05-10 13:47:52 +00:00
Sergey Poznyakoff
33715a50a3
New option --rmt-command.
...
(decode_options): Handle --rmt-command. Initialize
rmt_command_option to DEFAULT_RMT_COMMAND.
2004-05-10 11:42:23 +00:00
Sergey Poznyakoff
3be53a3c2f
Use rmt_command_option instead of hardcoded "/etc/rmt".
2004-05-10 11:41:43 +00:00
Sergey Poznyakoff
4c004cff39
(read_and): Print block number before
...
issuing 'Skipping to next header' diagnostics, if
requested by block_number_option.
2004-05-10 11:41:23 +00:00
Sergey Poznyakoff
1c623b11f6
(rmt_command_option): New variable.
2004-05-10 11:40:55 +00:00
Sergey Poznyakoff
898dc536c6
(localedir.h rule): Generate correct DEFAULT_RMT_COMMAND variable.
2004-05-10 11:39:51 +00:00
Sergey Poznyakoff
6c1654791d
(name_gather): Bugfix: Honor single -C with --same-order
2004-05-07 14:46:37 +00:00
Sergey Poznyakoff
4e2d5f2ee8
--utc implies -vv
2004-05-05 11:56:04 +00:00
Sergey Poznyakoff
e662d0f367
Make sure ICONV_CONST is defined. AM_ICONV does not define it if it fails to find iconv.h.
2004-04-28 07:44:19 +00:00
Sergey Poznyakoff
4b6f666105
Include stpcpy.h
2004-04-26 13:43:20 +00:00
Sergey Poznyakoff
af244aeef3
Produce an error, not warning, if the filename is too long.
2004-04-26 09:19:07 +00:00
Sergey Poznyakoff
f5461e304c
Bugfix by Jrgen Weigert
2004-04-20 11:06:35 +00:00
Paul Eggert
2bda83b48d
Merge recent gnulib changes, and remove some lint.
2004-04-05 02:29:18 +00:00
Sergey Poznyakoff
2a384c4a84
Protect inclusion of <sys/time.h>
...
by ifdef.
Declare time() if HAVE_DECL_TIME is 0
2004-04-04 13:31:26 +00:00
Sergey Poznyakoff
1bcc35dda0
Updated
2004-04-04 09:50:42 +00:00
Sergey Poznyakoff
a5bafe7962
(usage): Prototype moved to common.h
2004-04-04 09:47:08 +00:00
Sergey Poznyakoff
096bf74fcf
include <fnmatch.h>
...
(size_decoder): Assign to both st->archive_file_size and
st->stat.st_size.
(st->stat.st_size): Assign to st->stat.st_size
(sparse_numbytes_decoder): Removed unused variable
2004-04-04 09:43:09 +00:00
Sergey Poznyakoff
a55ec0a319
(utf8_convert): Changed prototype
...
(get_input_charset): Removed unused variable
2004-04-04 09:42:27 +00:00
Sergey Poznyakoff
61f44c9361
(usage): Prototype moved to common.h
2004-04-04 09:41:16 +00:00
Sergey Poznyakoff
55a96565b5
Include <sys/time.h> and <utime.h> when available
2004-04-04 09:33:41 +00:00
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
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
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
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
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
5282ef9709
(utf8_convert): Indentation fix.
2004-03-02 09:35:13 +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
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
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
d8b790047f
(decode_header): Call xheader_decode before the assignment to current_stat_info.archive_file_size.
2004-02-24 15:27:54 +00:00
Sergey Poznyakoff
b8754a37c7
Use keywords from the global headers.
...
Correctly handle UTF-8 conversions.
(xheader_list_destroy): New function.
(xheader_set_single_keyword,xheader_set_keyword_equal): Added
missing gettext markers
(decode_record): Rewritten using caller-provided handler and
data closure.
2004-02-22 20:54:44 +00:00
Sergey Poznyakoff
fb766eefb4
Decode encountered global headers.
2004-02-22 20:54:04 +00:00
Sergey Poznyakoff
b1f33c8362
(write_header_name) In pax format, use "path" keyword if the file name is not ASCII
2004-02-22 20:53:27 +00:00
Sergey Poznyakoff
7a8bded5dd
Added utf8.c
2004-02-22 20:52:56 +00:00