Commit Graph

1118 Commits

Author SHA1 Message Date
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
Sergey Poznyakoff 96148abcfe Added UTF-8 support. Finished global extended header support. 2004-02-22 21:00:07 +00:00
Sergey Poznyakoff a00631babf Give credit to Andreas Schuldei. 2004-02-22 20:55:12 +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
Sergey Poznyakoff 2de1477b3d Conversions to and from utf-8. 2004-02-22 20:52:34 +00:00
Sergey Poznyakoff 634927b7d2 Detect libiconv 2004-02-22 20:51:10 +00:00
Sergey Poznyakoff 7eeb467132 Minor fix 2004-02-22 20:50:33 +00:00
Sergey Poznyakoff 6847d128e9 Updated 2004-02-21 09:41:19 +00:00
Sergey Poznyakoff 44da0983c0 Sorry, the version number is .93 2004-02-21 09:40:45 +00:00
Sergey Poznyakoff dfbfc2446f Updated 2004-02-21 09:38:29 +00:00
Sergey Poznyakoff c145d8a6e3 Added listed01.sh 2004-02-21 09:36:15 +00:00
Sergey Poznyakoff 985199c260 Check listed incremental backups on individual files. 2004-02-21 09:35:44 +00:00
Sergey Poznyakoff e8af2fec8a Minor stylistic fixes. 2004-02-21 09:35:10 +00:00
Sergey Poznyakoff ee6aa2bea8 Raised patchlevel to 92a 2004-02-21 09:34:39 +00:00
Sergey Poznyakoff 2ad098dfff Updated 2004-02-21 09:34:22 +00:00
Sergey Poznyakoff b960c38c4b (dump_file0): The conditional at line
1296 prevented incremental backups on individual files
from working, as reported by Andreas Schuldei
<andreas@schuldei.org>.

This is due to the condition

  (0 < top_level || !incremental_option)

Removing it makes incremental backups work for individual
files as well as for directories. On the other hand, it does
not affect other functionality, as shown by the reasoning below:

To begin with, the two parts of this condition are mutually
superfluous, because

  1) when top_level < 0, incremental_option == 1
  so the condition yields false
  2) when top_level >= 0, incremental_option == 0
  so the condition yields true.

In other words, it is completely equivalent to

      (!incremental_option)

Now, let's consider the effect of its removal. There are two cases:

1) when incremental_option==1
This means incremental backup in progress. In this case dump_file
is invoked only for directories or for files marked with 'Y' by
get_directory_contents. The latter are those that did not meet the
condition in incremen.c:242, which is exactly the same condition
as this at create.c:1296. So, for these files the check
(!incremental_option) is useless, since the rest of the
conditional will yield false anyway. On the other hand, if
dump_file is invoked on a directory, the conditional will yield
false due to !S_ISDIR assertion, so these will be processed as usual.

Thus, for this case the extra condition (!incremental_option) is
irrelevant, and its removal won't alter the behavior of tar,
*except* that it will enable incremental backups on individual
files, which is the wanted effect.

2) when incremental_option==0
In this case the condition yields true and its removal does not
affect the functionality.
2004-02-21 09:33:58 +00:00