1 2005-06-21 Paul Eggert <eggert@cs.ucla.edu>
3 Further improvements inspired by Jim Meyering's fixes.
5 * NEWS: Better support for full-resolution time stamps.
6 The -v option now prints time stamps only to 1-minute resolution.
7 * gnulib.modules: Add utimens.
8 * lib/.cvsignore: Add imaxtostr.c, inttostr.c, inttostr.h,
9 offtostr.c, umaxtostr.c, utimens.c, utimens.h. Remove paxconvert.c.
10 * lib/Makefile.tmpl (libtar_a_SOURCES): Remove paxconvert.c.
11 * lib/paxconvert.c: Remove; superseded by umaxtostr.c.
12 * po/POTFILES.in: Remove lib/paxconvert.c. Add lib/xalloc-die.c,
14 * src/buffer.c (set_start_time, compute_duration, start_time):
15 Use gettime rather than rolling our own code.
16 * src/common.h (OLDGNU_NAME_FIELD_SIZE, MAXOCTAL11, MAXOCTAL7): Remove.
17 (newer_ctime_option): Remove.
18 (timespec_lt): New function.
19 (OLDER_STAT_TIME): Use it.
20 (string_to_chars): First arg is char const *, not char *.
21 (tartime): Time arg is now struct timespec. New bool arg.
23 (code_ns_fraction): New decl.
24 (sys_stat_nanoseconds): Remove decl.
25 (get_stat_atime, get_stat_ctime, get_stat_mtime): New functions.
26 (set_stat_atime, set_stat_ctime, set_stat_mtime): New functions.
27 * src/compare.c: Include utimens.h rather than rolling our own.
28 (diff_dir, diff_file, diff_link, diff_symlink, diff_special):
30 (diff_dumpdir, diff_multivol): Prototype.
31 (diff_file): Support higher-resolution time stamps.
32 * src/create.c: Include utimens.h rather than rolling our own.
33 (MAX_OCTAL_VAL): New macro.
34 (tar_copy_str, string_to_chars): Don't bother to zero-fill;
35 the destination is already zeroed.
36 (string_to_chars): First arg is char const *.
37 (start_private_header): Use MINOR_TO_CHARS, not MAJOR_TO_CHARS,
38 for minor device number.
39 (write_header_name, dump_hard_link, dump_file0):
40 Simplify test for old GNU format.
41 (start_header): Put in placeholders for uid, etc., even when
42 using extended headers, for benefit of older "tar" implementations.
43 Don't assume uintmax_t is wider than 32 bits.
44 Output extended header for mtime if needed.
45 (dump_regular_finish, dump_file0):
46 Support extended time stamp resolution.
47 * src/extract.c: Include utimens.h rather than rolling our own.
48 (check_time): Support extended time stamp resolution.
49 * src/list.c: Include <inttostr.h>.
50 (tartime): Use umaxtostr rather than stringify_uintmax_t_backwards.
51 * src/xheader.c: Include <inttostr.h>.
52 Do not include <xstrtol.h>.
53 (strtoimax) [!HAVE_DECL_STRTOIMAX && !defined strtoimax]: New decl.
54 (strtoumax) [!HAVE_DECL_STRTOUMAX && !defined strtoumax]: New decl.
55 (BILLION, LOG10_BILLION): New constants.
56 (to_decimal): Remove; superseded by inttostr. All callers changed
58 (xheader_format_name): Don't assume pids and uintmax_t values
59 fit in 63 bytes (!) when printed.
60 (decode_record): Don't bother to check for ERANGE; an out of range
61 value must be treater than len_max anyway.
62 If the length is out of range, output it in the diagnostic.
63 (format_uintmax): Remove; all callers changed to use umaxtostr.
64 (xheader_print): Don't assume sizes can be printed in 99 bytes (!).
65 (out_of_range_header): New function.
66 (decode_time): Use it.
67 (code_time): Accept struct timespec, not time_t and unsigned long.
68 All callers changed. Size sbuf properly, and remove unnecessary check.
69 Don't assume time stamps can fit in 199 bytes.
70 Handle negative time stamps. Handle fractional time stamps
71 more consistently. Don't output unnecessary trailing zeros.
72 (decode_time): Yield struct timespec, not time_t and unsigned long.
74 Handle negative time stamps. Truncate towards minus infinity
75 consistently. Improve overflow checks, and output a better
76 diagnostic on overflow.
77 (code_num): Don't assume uintmax_t can be printed in 99 bytes (!).
78 (decode_num): New function, for better diagnostics.
79 (atime_coder, atime_decoder, gid_decoder, ctime_coder):
80 (ctime_decoder, mtime_coder, mtime_decoder, size_decoder):
81 (uid_decoder, sparse_size_decoder, sparse_numblocks_decoder):
82 (sparse_offset_decoder, sparse_numbytes_decoder):
83 Use decode_num, etc., instead of xstrtoumax, etc.
85 2005-06-21 Jim Meyering <jim@meyering.net>
87 Carefully crafted invalid headers can cause buffer overrun.
88 Invalid header fields go undiagnosed.
89 Some valid time strings are ignored.
91 * src/xheader.c (sparse_numblocks_decoder): Remove unchecked use
92 of `calloc'. Use xcalloc instead.
93 (decode_time, gid_decoder, size_decoder, uid_decoder):
94 (sparse_size_decoder, sparse_offset_decoder, sparse_numblocks_decoder):
95 Ensure that the result of calling xstrtoumax is no larger than
96 the maximum value for the target type. Upon any failure, exit with
98 (sparse_numblocks_decoder): Avoid buffer overrun/heap corruption:
99 use x2nrealloc, rather than `n *= 2' and xrealloc(p, n,....
100 (decode_time): Rewrite to accept time strings like
101 1119018481.000000000. Before, such strings were always ignored.
103 2005-06-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
105 * src/create.c (dump_file0): Check for is_avoided_name()
106 first. Fixes bug reported by Martin Lohmeier
107 <martin@mein-horde.de>
108 * tests/update.at: New file
109 * tests/Makefile.am (TESTSUITE_AT): Add update.at
110 * tests/testsuite.at: Likewise
112 2005-06-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
114 * configure.ac (AC_STRUCT_ST_BLKSIZE)
115 (AC_STRUCT_ST_BLOCKS): Removed. Handled by system.m4.
117 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
119 * src/names.c (excluded_name): excluded_filename ->
120 excluded_file_name, because the name was changed in gnulib.
122 2005-05-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
124 * src/tar.c (read_name_from_file,update_argv): Automatically
125 detect nul-terminated list files.
128 2005-05-27 Sergey Poznyakoff <gray@Mirddin.farlep.net>
130 * scripts/backup.sh.in: Bugfixes.
132 2005-05-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
134 * scripts/backup.in: Minor fixes
135 * scripts/backup.sh.in (mt_begin,mt_rewind)
136 (mt_offline,mt_status): Use $MT to invoke mt
137 (init_common): Set --rsh-command option for mt if TAPE_FILE is a
139 * doc/tar.texi: Document new backup scripts behavior
141 2005-05-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
143 * lib/.cvsignore: Updated
144 * lib/Makefile.tmpl: Add new paxutils files
145 * po/POTFILES.in: Likewise
146 * src/buffer.c: Update invocations of safer_name_suffix()
147 * src/create.c: Likewise
148 * src/extract.c: Likewise
149 * src/xheader.c: Likewise
150 * src/common.h: Include paxlib.h instead of paxerror.h
151 (safer_name_suffix,removed_prefixes_p): Removed. The functions are
152 imported from paxutils
153 * src/names.c (hash_string_hasher,hash_string_compare)
154 (hash_string_insert,hash_string_lookup,removed_prefixes_p)
155 (safer_name_suffix): Moved to paxutils
157 2005-05-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
159 * bootstrap (copy_files): Accept optional third argument: a prefix
160 to be appended to destination file names.
161 Import paxutils/paxlib files.
162 * configure.ac: Remove checking for LIB_SETSOCKOPT, it is handled
164 * lib/Makefile.tmpl (libtar_a_SOURCES): Add paxerror.c paxexit.c
166 * po/POTFILES.in: Likewise.
167 * src/common.h: Remove defines and declarations imported from
169 * src/misc.c: Likewise
170 * src/list.c (stringify_uintmax_t_backwards): Moved to paxutils
172 2005-05-17 Paul Eggert <eggert@cs.ucla.edu>
174 * src/misc.c (remove_any_file): Fix typo in previous change.
176 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
178 Port to Solaris 10's treatment of unlinking directories.
179 * gnulib-modules: Add unlinkdir.
180 * lib/.cvsignore: Add unlinkdir.h, unlinkdir.c.
181 * src/common.h (we_are_root): Remove extern decl; it's now static.
182 * src/extract.c (we_are_root): Now static.
183 * src/misc.c: Include <unlinkdir.h>.
184 (remove_any_file): Use cannot_unlink_dir () rather than we_are_root.
186 * ChangeLog, ChangeLog.1, Makefile.am, NEWS, PORTS, README,
187 README-alpha, TODO, bootstrap, configure.ac, doc/Makefile.am,
188 doc/convtexi.pl, doc/fdl.texi, doc/gendocs_template,
189 lib/Makefile.tmpl, lib/prepargs.c, lib/waitpid.c, po/POTFILES.in,
190 scripts/Makefile.am, scripts/backup-specs, scripts/backup.in,
191 scripts/backup.sh.in, scripts/restore.in, src/Makefile.am,
192 src/arith.h, src/buffer.c, src/common.h, src/compare.c,
193 src/create.c, src/delete.c, src/extract.c, src/incremen.c,
194 src/list.c, src/mangle.c, src/misc.c, src/names.c, src/sparse.c,
195 src/system.c, src/tar.c, src/tar.h, src/update.c, src/utf8.c,
196 src/xheader.c, tests/Makefile.am, tests/append.at,
197 tests/append01.at, tests/comprec.at, tests/delete01.at,
198 tests/delete02.at, tests/delete03.at, tests/delete04.at,
199 tests/delete05.at, tests/extrac01.at, tests/extrac02.at,
200 tests/extrac03.at, tests/extrac04.at, tests/extrac05.at,
201 tests/gzip.at, tests/ignfail.at, tests/incremental.at,
202 tests/link01.at, tests/listed01.at, tests/listed02.at,
203 tests/long01.at, tests/longv7.at, tests/multiv01.at,
204 tests/multiv02.at, tests/multiv03.at, tests/multiv04.at,
205 tests/old.at, tests/options.at, tests/options02.at, tests/pipe.at,
206 tests/recurse.at, tests/same-order01.at, tests/same-order02.at,
207 tests/shortrec.at, tests/sparse01.at, tests/sparse02.at,
208 tests/testsuite.at, tests/truncate.at, tests/version.at,
209 tests/volume.at, tests/star/gtarfail.at, tests/star/gtarfail2.at,
210 tests/star/multi-fail.at, tests/star/pax-big-10g.at,
211 tests/star/quicktest.sh, tests/star/ustar-big-2g.at,
212 tests/star/ustar-big-8g.at:
213 Update FSF postal mail address.
215 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
219 * bootstrap: Install files from paxutils/doc
220 * doc/Makefile.am (tar_TEXINFOS): Add genfile.texi
221 * doc/tar.texi (Genfile): New appendix
222 * src/compare.c (diff_file): diff_handle was not initialized
223 * src/create.c (dump_regular_file): Correctly pad archive members
224 that shrunk during archiving. Repored by Frank Heckenbach.
225 * src/extract.c (file_newer_p): Return false if file does not
227 (prepare_to_extract): Correct warning wording.
228 * tests/truncate.at: New test case
229 * tests/Makefile.am: Add truncate.at
230 * tests/testsuite.at: Likewise.
232 * doc/.cvsignore: Updated
233 * lib/.cvsignore: Updated
234 * tests/.cvsignore: Updated
236 2005-05-02 Paul Eggert <eggert@cs.ucla.edu>
238 * tests/multivol04.at: Tell awk to read from /dev/null.
240 Adjust to recent gnulib changes.
241 * lib/.cvsignore: Add dup-safer.c, fd-safer.c, unistd-safer.h.
242 * src/common.h (initial_umask): New var.
243 * src/create.c (start_ueader): Use it, and adjust to new modechange
245 (hash_link): unsigned -> size_t parameters and result.
246 * src/incremen.c (hash_directory): Likewise.
247 * src/names.c (hash_string_hasher): Likewise.
248 * src/tar.c (parse_opt): Set it, and adjust to new modechange API.
250 2005-04-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
252 * tests/Makefile.am: Add shortrec.at.
254 2005-04-18 Paul Eggert <eggert@cs.ucla.edu>
256 * src/buffer.c (reading_from_pipe): Remove. All uses removed.
257 (short_read): Don't warn about short reads; they're normal.
258 * tests/shortrec.at: New file.
259 * tests/testsuite.at: Include it.
261 * bootstrap (gnulib_modules): Don't create a file modlist.tmp, as
262 it is sometimes left behind as a garbage file (maybe due to the
265 2005-04-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
267 * src/list.c: Handle Solaris 'X' type flag
268 * src/tar.h (SOLARIS_XHDTYPE): New define
270 2005-04-06 Sergey Poznyakoff <gray@mirddin.farlep.net>
272 * src/tar.c: Minor fixes to text messages. Proposed by Benno
274 * src/extract.c: Likewise
275 (extract_file): Assign orig_file_name
276 to save_name uniformly over the program. This fixes matching
277 directory names at the start of an archive volume.
278 * src/buffer.c (flush_write): Warn when the name of the archive
279 straddling volume boundary is longer than 100 characters. Earlier
280 behavior was to issue a fatal error.
281 (struct zip_magic): Reverted part of changes from 2005-04-04.
282 They make the maintenance too costly. Removing `unsigned'
283 qualifier from `magic' member should be enough.
284 * src/compare.c (diff_init): Read directory file if in listed
285 incremental. This prevents spurious 'Contents differ' diagnostics.
286 (diff_archive): Minor fixes to text messages
287 (diff_file,diff_dumpdir,diff_multivol): Assign orig_file_name
288 to save_name uniformly over the program. This fixes matching
289 directory names at the start of an archive volume.
290 * src/create.c: Assign orig_file_name
291 to save_name uniformly over the program. This fixes matching
292 directory names at the start of an archive volume.
293 * src/list.c: Likewise
295 * tests/multiv03.at: Modified to match the new behavior
296 * tests/multiv04.at: New file. Test splittind directory members between
298 * tests/Makefile.am: Add multiv04.at
299 * tests/testsuite.at: Likewise.
301 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
303 * configure.ac (AC_CONFIG_AUX_DIR): Rename from config to build-aux,
304 for reasons discussed in the thread beginning at
305 <http://lists.gnu.org/archive/html/bug-gnulib/2005-03/msg00119.html>.
306 * .cvsignore: Remove config; add build-aux.
308 * src/buffer.c (struct zip_magic): Use char arrays, not pointers.
309 The unsigned char * pointer ran afoul of pedantic C compilers, and
310 we didn't need pointers anyway. Put the size field before the
311 data to avoid unnecessary padding. All uses changed.
312 (magic) Make it const, since it doesn't change. All uses changed.
314 2005-04-02 Paul Eggert <eggert@cs.ucla.edu>
316 * src/xheader.c (decode_record): Don't dump core when given
317 a corrupted extended header. Problem reported by Jim Meyering.
318 Also, check for other ways that the header might be invalid,
319 e.g., missing newline at end. Do not allow keys with nulls.
320 Allow blanks before and after length, as POSIX requires.
321 Do not allow leading "-" in length. Check for length overflow.
322 (xheader_decode, xheader_decode_global): Let decode_record
323 check for exhaustion of record.
324 (xheader_read): Null-terminate the extended record;
325 decode_record relies on this.
327 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
329 * bootstrap (TP_URL): Change from
330 <http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
331 <http://www.iro.umontreal.ca/translation/maint/tar/> to avoid
332 some redirection glitches.
333 Use "trap - 0" rather than "trap 0" to fix a POSIX-conformance bug.
334 * doc/.cvsignore: Change "tar.info" to "tar.info*". Sort.
335 * lib/.cvsignore: Add intprops.h (new gnulib file).
337 2005-03-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
339 * src/list.c (print_header): Print UID/GID in case of
340 empty user/group name. This could occur when dumping
341 files belonging to non-existing users and when listing
343 Reported by Igor Lautar.
345 * src/create.c: Correctly parse empty uname/gname
346 * src/sparse.c (sparse_scan_file): Bugfix. offset had
349 * scripts/backup.in: Use `head -n 1'. Provide missing
350 argument to ${MT_STATUS}. Proposed by Jan Merka.
351 * scripts/backup.sh.in: Likewise. Fixed typo in
352 MT_OFFLINE assignment.
353 * scripts/restore.in (restore_fs): Use root_fs
355 2005-02-15 Sergey Poznyakoff <gray@Mirddin.farlep.net>
357 * src/create.c: Replace strdup with xstrdup
358 * src/names.c: Likewise
359 * src/tar.c: Likewise
361 * tests/append01.at: Added reference to bug-tar archive
362 * tests/listed02.at: Use -print with find.
364 2005-02-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
366 * THANKS: Added Tim Adye. Fixed UTF.
367 * src/list.c (read_header): Removed assignment to
368 oldgnu_header.isextended. It was breaking append mode.
370 * tests/append01.at: New test.
371 * tests/Makefile.am: Added append01.at
372 * tests/testsuite.at: Likewise
374 2005-02-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
376 * gnulib.modules: New file. List of required gnulib
378 * bootstrap: Merge list of required modules from
379 paxutils with that from tar proper.
380 * src/tar.c: Various fixes in help and diagnostic messages.
382 2005-02-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
384 * src/common.h (EXTRACT_OVER_PIPE): New macro
385 * src/compare.c: Code clean up.
386 * src/extract.c (extract_archive): Do not check for
387 EXTRACT_OVER_PIPE, decode_options() does this.
388 * src/misc.c (exec_error,fork_error,dup2_error)
389 (pipe_error): Removed unneeded functions.
390 * src/system.c (sys_exec_command): Use xclose, xpipe,
391 xfork, xdup2 and exec_fatal.
392 * src/tar.c (options): Improved sorting. Document --backup=off.
393 (decode_options): Clear backup_option if necessary.
395 2005-02-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
397 Initial implementation of --to-command option proposed
400 * bootstrap: Get setenv module from gnulib
401 * src/buffer.c: Do not use 8-bit chars in comments
402 * src/common.h (to_command_option)
403 (ignore_command_error_option): New globals
404 (sys_exec_command,sys_wait_command): New commands
405 * src/extract.c (extract_file): Handle to_command_option
406 Fix error recovery: decrease `size' by `written', not
407 by `count', otherwise tar misses the next header
408 Do not diagnose write error if to_command_option
409 is set, since the command may have exited prematurely.
410 It would be better to check for sigpipe, though.
411 (prepare_to_extract): Handle to_command_option
412 * src/misc.c (exec_error, fork_error, dup_error)
413 (pipe_error): New functions
414 * src/system.c (sys_exec_command)
415 (sys_wait_command): New functions
416 * src/tar.c: Handle new options --to-command,
417 --ignore-command-error
418 * THANKS: Added Hansjoerg Lipp
420 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
422 * src/list.c (from_header): New arg OCTAL_ONLY, normally false.
423 All uses changed. Fix typo that sometimes suppressed all "Archive
424 contains obsolescent base-64 headers" warnings, not just the first
426 (tar_checksum): Accept only octal checksums, since they aren't
427 supposed to overflow into weird formats.
429 Adjust to gnulib changes.
430 * lib/.cvsignore: Add chdir-long.c, chdir-long.h, memrchr.c,
431 memrchr.h, openat.c, openat.h. Remove pathmax.h (added by
432 mistake, perhaps?), sysexit.h (my typo), xstrdup.c (gnulib removed
433 this file). Sort entries.
435 2005-02-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
437 * src/extract.c: Further rewrite.
438 * src/buffer.c: Removed unused variables.
439 * src/list.c: Likewise
440 * src/tar.c (update_argv): Changed type to void
442 * src/common.h (OLDGNU_NAME_FIELD_SIZE): New constant
443 * src/create.c (start_private_header,write_header_name)
444 (dump_hard_link): Restore compatibility with 1.13.25
445 * src/extract.c (extract_archive): Rewritten
446 * src/list.c: Add translators' comments
447 * src/tar.c (options) Minor spelling fix
448 * tests/star/quicktest.sh: Determine path to the tar executable.
450 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
452 * po/POTFILES.in: Added tests/genfile.c
453 * src/buffer.c (short_read): Use ngettext()
454 (new_volume): use quote().
455 * src/create.c: Use quote()
456 * src/extract.c: Likewise
457 * src/xheader.c: Likewise
458 * src/misc.c: Add comments to translators
460 * tests/same-order01.at: sort ls output
461 * tests/sparse01.at (RE_CHECK): Added missing space
463 * tests/sparse02.at: Test extracting sparse files over a pipe.
464 * tests/Makefile.am: Added sparse02.at
465 * tests/testsuite.at: Likewise
466 * tests/listed02.at: Skip the test on filesystems that do not
467 update ctime of a file when renaming it. To be reverted when
468 the new incremental mode is ready.
469 * tests/sparse01.at: Extract and compare sparse file
471 2005-02-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
473 * src/sparse.c: Extract sparse files even if the output
476 2005-02-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
478 * bootstrap: Add a comment to lib/Makefile.am saying that this
479 is an autogenerated file.
480 Exit with code 1 if any of autotools fails.
481 * lib/Makefile.tmpl: Insert Emacs magic to the first line.
482 * tests/Makefile.am: Add append.at
484 * m4/.cvsignore: Ignore all *.m4 files
486 2005-01-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
488 Rewritten handling of -T (--files-from) option. Now it
489 inserts the file names immediately into argv array which allows
491 1) any valid tar options (including another -T) to be used in the file
492 2) any number of -T options to be given in command line
494 * configure.ac: Raised version number to 1.15.2
495 * src/common.h: Include obstack.h
496 (files_from_option): Removed
497 (unquote_option): New variable
498 (stat_fatal): New function
499 (name_close): Removed function.
500 * src/incremen.c: Remove inclusion of obstack.h
501 * src/xheader.c: Likewise.
502 * src/misc.c (stat_fatal): New function
503 * src/names.c (name_file): Removed variable.
504 (read_name_from_file): Removed function. All callers changed.
505 (name_close): Removed function. All callers changed.
506 * src/tar.c: New options --unquote (--no-unquote) and
508 (add_file_id,read_name_from_file,update_argv): New functions
509 (parse_opt): Rewritten handling of -T option. Handle hidden
510 --HANG option for debugging purposes.
511 (decode_options): Init unquote_option to true. Init argv_stk.
512 Remove unneeded references to files_from_option
514 * doc/tar.texi: Document new options.
515 Moved rendition macros and option value definitions into
517 * doc/rendition.texi: New file
518 * doc/value.texi: New file
519 * doc/Makefile.am: Updated
521 2005-01-13 Paul Eggert <eggert@cs.ucla.edu>
523 * tests/testsuite.at (RE_CHECK): Use "join - file", not
524 "join file -", to work around a bug in Solaris 8 join.
525 Problem reported by Tomohiro Suzuki.
527 2005-01-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
529 * src/list.c (read_header): Fixed calculation of the
530 size for GNU long name/link. Tar was reading one block
531 more if name_size was divisible by 512. Thanks Josef
533 * tests/long01.at: New file. Test listing of GNU long names
535 * tests/pipe.at: Sort tar output.
536 * tests/Makefile.am: Added long01.at
537 * tests/testsuite.at: Likewise.
538 * THANKS: Added Josef Bauer
539 * lib/.cvsignore: Updated
540 * m4/.cvsignore: Updated
543 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
545 * directory: Updated for 1.15.1
546 * doc/Makefile.am: Use gendocs.sh to generate web documentation
547 * doc/gendocs_template: Template file for gendocs.sh
548 * doc/tar.texi: Updated docs for --[no-]same-permissions
549 * src/tar.c: Reworded docstrings for --[no-]same-permissions
551 2005-01-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
553 * bootstrap: Create m4/paxutils.m4
554 * configure.ac: Call tar_PAXUTILS
555 * tests/options02.at: Test that tar correctly handles non-option
556 arguments interspersed with options.
557 * tests/Makefile.am: Add options02.at
558 * tests/testsuite.at: Likewise
559 * tests/listed02.at: Do not create useless directory
561 2005-01-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
563 * src/tar.c (parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks
564 Mike Frysinger <vapier@gentoo.org> for reporting.
566 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
568 * lib/Makefile.tmpl (localedir.h): Omit needless quotes and a
569 needless sed command. Problem reported by Paul Jarc.
571 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
573 Accommodate latest gnulib.
574 * doc/.cvsignore: Add getdate.texi.
575 * bootstrap: Do not treat alloca-opt specially; this is no
576 longer needed (and breaks builds) with latest gnulib.
578 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
580 * src/tar.c (main): Reverted recent changes (#ifdef).
582 2004-12-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
584 * configure.ac: Raise version number to 1.15.1
586 * NEWS: Entry for 1.15.1
587 * src/buffer.c: Bugfix. Changes introduced 2004-11-26
588 broke extraction from stdin.
589 * src/list.c (from_header, tar_checksum): Changed declaration.
591 * src/common.h: Likewise
592 * src/tar.c (main): Protect invocation of setlocale by
595 * tests/comprec.at: New test
596 * tests/pipe.at: New test
597 * tests/Makefile.am (comprec.at,pipe.at): New tests
598 * tests/testsuite.at: Likewise
599 * tests/gzip.at: Use AT_GZIP_PREREQ
600 * tests/star/pax-big-10g.at: Likewise
601 * tests/star/ustar-big-2g.at: Likewise
602 * tests/star/ustar-big-8g.at: Likewise
604 * tests/extrac04.at: Discard stderr from sort, on some
605 systems it spits out lots of irrelevant info.
606 * tests/listed02.at: Likewise
608 * doc/index.html.in: Rewritten in xhtml to follow recent
612 2004-12-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
614 Released version 1.15. Sources up to this point are
617 * configure.ac: Raised version number to 1.15
620 * bootstrap (update_po): Give -r to wget. Always remove index.html
621 Ignore alloca-opt module (it duplicates alloca)
623 * tests/Makefile.am: Distribute star/quicktest.sh
624 * tests/star/README: Document quicktest.sh
625 * tests/star/qucktest.sh: Removed.
626 * tests/star/quicktest.sh: New file.
628 2004-12-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
631 * doc/tar.texi: Document auto-detection of compressed archive
633 * src/tar.c (decode_options): Ignore --seek if used with --delete.
634 Delete.c is based on the assumption that the archive is being
635 actually read, not lseeked.
637 * tests/delete05.at: New file
638 * tests/extrac02.at: Fixed typo in AT_SETUP
639 * tests/Makefile.am: Added delete05.at
640 * tests/testsuite.at: Likewise.
642 2004-12-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
644 * src/delete.c (delete_archive_members): Bugfix: when
645 attempting to delete an nonexistent member, the last
646 blocking_factor blocks were zeroed.
648 2004-12-14 Paul Eggert <eggert@cs.ucla.edu>
650 * TODO: Mention sub-second resolution, lutimes, lchmod.
652 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
654 Adjust to recent gnulib changes.
655 * doc/getdate.texi: Remove, since bootstrap gets it from gnulib now.
656 * .cvsignore: Add rmt, rmt/*, rmt/*/*.
657 * lib/.cvsignore: Add allocsa.c, allocsa.h, allocsa.valgrind,
658 charset.alias, config.charset, getcwd.c, getcwd.h, localcharset.c,
659 localcharset.h, ref-add.sed, ref-add.sin, ref-del.sed,
660 ref-del.sin, setenv.c, setenv.h, unsetenv.c. Remove pathmax.h,
662 * m4/.cvsignore: Add allocsa.m4, eealloc.m4, getcwd-path-max.m4,
663 localcharset.m4, realloc.m4, setenv.m4. Remove malloc.m4,
664 pathmax.m4, realloc.m4.
666 2004-11-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
668 * configure.ac: Raised version number to 1.14.91
669 * scripts/tarcat: New file
670 * scripts/Makefile.am: Added tarcat
671 * src/buffer.c (hit_eof): Changed type to boolean
672 (read_full_records,reading_from_pipe): New variables
673 (check_compressed_archive,open_compressed_archive): New functions
674 (open_archive): Autodetect compressed archives and act accordingly.
675 Set reading_from_pipe. This fixes controversial set of changes
676 introduced 2004-05-11,2004-03-22.
677 * src/list.c (tar_checksum): New function
678 (read_header): Use tar_checksum().
679 * src/common.h (tar_checksum): New function
681 * tests/star/README: Updated
685 2004-11-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
687 * src/tar.c (decode_options): Fixed -o semantics. Thanks
688 Jean Delvare <khali@linux-fr.org>
690 2004-10-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
692 * bootstrap: Add localcharset
693 * lib/Makefile.tmpl: Initialize SUFFIXES and CLEANFILES since the
694 makefile snippet from localcharset uses '+=' on them.
695 * src/Makefile.am (LDADD): Add LIBICONV
696 * src/list.c (decode_header): Set uname/gname to NULL if their
697 header counterparts are empty
698 * src/tar.c (options): Use OPTION_NO_TRANS
699 * src/utf8.c: Use locale_charset() from gnulib
701 * tests/star/README: Updated
706 2004-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
708 * THANKS: Added Bryan Ford
709 * doc/Makefile.am (.text): Fixed rule
710 * po/POTFILES.in: Added argp-help.c
712 2004-10-04 Bryan Ford <baford@mit.edu>
714 * src/tar.c: New option --exclude-caches, to exclude
715 cache directories automatically on archive creation.
716 Cache directories are directories containing a
717 standardized tag file, as specified at:
718 http://www.brynosaurus.com/cachedir/spec.html
719 * src/common.h: New variable exclude_caches_option.
720 * src/create.c: New function check_cache_directory(),
721 called from dump_dir0() if exclude_caches_option is set,
722 to check for a cache directory tag and exclude the directory
723 if such a tag is found.
724 * doc/tar.texi: Updated accordingly.
726 2004-09-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
728 * doc/tar.texi: Minor fix
729 * src/tar.c (options): Minor fix
731 2004-09-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
734 * lib/Makefile.tmpl: Added 'rtapelib.o: localedir.h' dependency
735 * src/common.h: Comment WANT_DIRECTORY_REMOVE_OPTION.
736 * src/extract.c: Normalized use of remove_any_file().
737 * src/misc.c: Likewise.
738 * src/tar.c (parse_opt): Emit warning if -l option is used.
739 (show_default_settings): REMOTE_SHELL may be undefined
741 2004-09-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
743 Test suite rewritten in autotest.
745 * configure.ac: Updated for autotest
746 * src/tar.c (argp_program_version): Modified.
747 * tests/Makefile.am: Rewritten for autotest.
749 * tests/.cvsignore: Updated
750 * tests/append.at: New file
751 * tests/atlocal.in: New file
752 * tests/delete01.at: New file
753 * tests/delete02.at: New file
754 * tests/delete03.at: New file
755 * tests/delete04.at: New file
756 * tests/extrac01.at: New file
757 * tests/extrac02.at: New file
758 * tests/extrac03.at: New file
759 * tests/extrac04.at: New file
760 * tests/extrac05.at: New file
761 * tests/gzip.at: New file
762 * tests/ignfail.at: New file
763 * tests/incremental.at: New file
764 * tests/link01.at: New file
765 * tests/listed01.at: New file
766 * tests/listed02.at: New file
767 * tests/longv7.at: New file
768 * tests/multiv01.at: New file
769 * tests/multiv02.at: New file
770 * tests/multiv03.at: New file
771 * tests/old.at: New file
772 * tests/options.at: New file
773 * tests/recurse.at: New file
774 * tests/same-order01.at: New file
775 * tests/same-order02.at: New file
776 * tests/sparse01.at: New file
777 * tests/testsuite.at: New file
778 * tests/version.at: New file
779 * tests/volume.at: New file
780 * tests/star/gtarfail.at: New file
781 * tests/star/gtarfail2.at: New file
782 * tests/star/multi-fail.at: New file
783 * tests/star/pax-big-10g.at: New file
784 * tests/star/ustar-big-2g.at: New file
785 * tests/star/ustar-big-8g.at: New file
787 * tests/preset.in: Removed
788 * tests/before: Removed
789 * tests/after: Removed
790 * tests/version.sh: Removed.
791 * tests/append.sh: Removed.
792 * tests/delete01.sh: Removed.
793 * tests/delete02.sh: Removed.
794 * tests/delete03.sh: Removed.
795 * tests/delete04.sh: Removed.
796 * tests/extrac01.sh: Removed.
797 * tests/extrac02.sh: Removed.
798 * tests/extrac03.sh: Removed.
799 * tests/extrac04.sh: Removed.
800 * tests/extrac05.sh: Removed.
801 * tests/gzip.sh: Removed.
802 * tests/incremen.sh: Removed.
803 * tests/ignfail.sh: Removed.
804 * tests/link01.sh: Removed.
805 * tests/listed01.sh: Removed.
806 * tests/listed02.sh: Removed.
807 * tests/longv7.sh: Removed.
808 * tests/multiv01.sh: Removed.
809 * tests/multiv02.sh: Removed.
810 * tests/multiv03.sh: Removed.
811 * tests/old.sh: Removed.
812 * tests/options.sh: Removed.
813 * tests/same-order01.sh: Removed.
814 * tests/same-order02.sh: Removed.
815 * tests/volume.sh: Removed.
816 * tests/recurse.sh: Removed.
817 * tests/sparse01.sh: Removed.
818 * tests/star/gtarfail.sh: Removed.
819 * tests/star/gtarfail2.sh: Removed.
820 * tests/star/multi-fail.sh: Removed.
821 * tests/star/ustar-big-2g.sh: Removed.
822 * tests/star/ustar-big-8g.sh: Removed.
823 * tests/star/pax-big-10g.sh: Removed.
825 2004-09-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
827 * bootstrap: Install genfile.c from paxutils
828 * tests/genfile.c: Removed. Integrated into
830 * tests/mksparse.c: Removed. Integrated into
832 * tests/Makefile.am: Removed mksparse
833 * tests/sparse01.sh: Use genfile instead of mksparse
835 2004-09-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
837 Started merging with cpio into paxutils. Sources before
838 this point are tagged alpha-1_14_90
840 * Makefile.am: Updated for use with paxutils
841 * README-alpha: Likewise
842 * bootstrap: Likewise
843 * configure.ac: Likewise
844 * lib/Makefile.tmpl: Likewise
845 * po/POTFILES.in: Likewise
846 * src/Makefile.am: Likewise
847 * src/buffer.c: Likewise
848 * src/common.h: Likewise
849 * src/compare.c: Likewise
850 * src/create.c: Likewise
851 * src/delete.c: Likewise
852 * src/extract.c: Likewise
853 * src/incremen.c: Likewise
854 * src/list.c: Likewise
855 * src/mangle.c: Likewise
856 * src/misc.c: Likewise
857 * src/names.c: Likewise
858 * src/sparse.c: Likewise
859 * src/system.c: Likewise
860 * src/tar.c: Likewise
861 * src/update.c: Likewise
862 * src/utf8.c: Likewise
863 * src/xheader.c: Likewise
865 * src/system.h: Removed
868 * src/rtapelib.c: Removed
870 2004-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
872 * tests/listed02.sh: Do not depend on any particular ordering
875 2004-09-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
877 * doc/tar.texi: Document the use of -C option in
878 file lists. Document --seek option.
879 * configure.ac: New option --with-rmt. New configuration variable
880 DEFAULT_RMT_DIR. Removed DEFAULT_RMT_COMMAND.
881 * src/Makefile.am: Install rmt into rmtdir
882 * src/tar.c (usage): Minor fix.
886 2004-09-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
888 * configure.ac: Raised version number to 1.14.90
889 * src/common.h (is_individual_file): New prototype
890 * src/create.c (dump_file0): Fix bug introduced
892 * src/names.c (register_individual_file)
893 (is_individual_file): New functions.
894 * tests/listed01.sh: Use genfile instead of dd.
895 * tests/listed02.sh: New file.
896 * tests/Makefile.am: Added listed02.sh
900 2004-08-31 Sergey Poznyakoff <gray@Mirddin.farlep.net>
902 * src/sparse.c (sparse_add_map): Fixed improper initializations
903 of sparse_map_size. We assume that whatever number it contains
904 describes adequately the current size of sparse_map. The only
905 number we need to reset is sparse_map_avail.
906 * src/compare.c (verify_volume): Call set_next_block_after
907 if read_header returns HEADER_FAILURE
908 Destroy and reinitialize content of current_stat_info and
909 extended_header after each iteration (bug reported by
910 John L. Males <jlmales@yahoo.com>).
911 Issue a warning if the created archive contains some members
912 whose file names were stripped off their leading prefixes.
913 This is a temporary fix of the issue reported by Bdale Garbee
914 <bdale@gag.com> (Refs: Debian bug 230064, Message-Id
915 <87n07kyzhi.fsf@rover.gag.com>, Sun, 15 Feb 2004 11:22:17 -0700)
917 * src/names.c (removed_prefixes_p): New function.
919 * src/buffer.c: When computing write rate do not take
920 into account the time needed to verify the archive(s).
921 The bug reported by John L. Males <jlmales@yahoo.com>
922 (set_start_time,compute_duration): New functions.
923 (print_total_written): Use the result of compute_duration().
924 (close_archive): Call compute_duration.
925 * src/common.h (set_start_time, removed_prefixes_p): New prototypes.
926 * src/list.c (decode_header): Fixed initialization
927 of stat_info->is_sparse
928 * src/tar.c (main): Call set_start_time().
930 * src/misc.c (unquote_string): Unquote '\a' and '\v'.
931 Reported by Helmut Waitzmann <helmut.waitzmann@web.de>.
936 2004-08-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
938 * src/tar.c: Fix copy-n-paste errors in the license
940 2004-08-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
942 * scripts/backup.in: Renamed LIBPATH to LIBDIR.
943 Use ROOT_FS with -C option. Do not send mail
944 if ADMINISTRATOR is set to NONE.
945 * scripts/backup.sh.in (test_root): Append / to
946 ROOT_FS if it does not already end in it.
947 * scripts/restore.in: Renamed LIBPATH to LIBDIR.
948 New option -a (--all). Do not start restore unless
949 -a or patterns are given.
950 (restore_fs,restore_files): Fixed use of --listed option.
951 * doc/tar.texi: Updated
954 2004-08-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
956 * src/tar.c (find_argp_option): Fixed typo
958 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
960 Merge argp, getopt, xalloc changes from gnulib.
961 * bootstrap (gnulib_modules): Add xalloc-die.
962 Remove code to test for patches; we don't have patches now.
963 Set LC_ALL=C so that file names sort consistently.
964 Prefer the gnulib copies of gettext.m4, glibc21.m4,
965 lib-ld.m4, lib-prefix.m4, po.m4 too.
967 * patches/getopt.diff: Remove; gnulib now works unpatched.
968 * configure.ac (_getopt_long_only_r): Remove check.
969 gl_ARGP now does this for us.
970 * lib/.cvsignore: Add fnmatch.h, getopt_.h, sysexit.h,
972 * src/extract.c: Adjust to changes to gnulib xalloc module.
973 (extr_init): Remove assignment to xalloc_fail_func; no longer needed.
974 (xalloc_die): New function.
976 2004-08-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
980 * src/buffer.c (flush_write): Limit filenames
981 of the members that straddle multivolume archive
982 boundary to 100 characters.
983 (flush_read): Use strncmp when comparing multivolume member
985 * tests/multiv03.sh: New file
986 * tests/Makefile.am: Added multiv03.sh
988 2004-08-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
990 * src/list.c (read_and): Call decode_header before
991 calling skip_member()
992 (skip_member): Use is_sparse field to determine if the
993 member is a sparse file.
995 * tests/Makefile.am: Added extrac05.sh
996 * tests/extrac05.sh: New file
997 * tests/append.sh: Rearranged leading comments. Added explicit
998 references to report messages wherever available.
999 * tests/delete01.sh: Likewise
1000 * tests/delete02.sh: Likewise
1001 * tests/delete03.sh: Likewise
1002 * tests/delete04.sh: Likewise
1003 * tests/extrac01.sh: Likewise
1004 * tests/extrac02.sh: Likewise
1005 * tests/extrac03.sh: Likewise
1006 * tests/extrac04.sh: Likewise
1007 * tests/gzip.sh: Likewise
1008 * tests/ignfail.sh: Likewise
1009 * tests/incremen.sh: Likewise
1010 * tests/link01.sh: Likewise
1011 * tests/listed01.sh: Likewise
1012 * tests/longv7.sh: Likewise
1013 * tests/multiv01.sh: Likewise
1014 * tests/multiv02.sh: Likewise
1015 * tests/old.sh: Likewise
1016 * tests/options.sh: Likewise
1017 * tests/recurse.sh: Likewise
1018 * tests/same-order01.sh: Likewise
1019 * tests/same-order02.sh: Likewise
1020 * tests/sparse01.sh: Likewise
1021 * tests/version.sh: Likewise
1022 * tests/volume.sh: Likewise
1024 2004-08-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1026 * bootstrap: Extended --update-po option to take an
1027 optional argument specifying the po file to update.
1028 * src/create.c: Improved compatibility with 1.13.25
1029 * tests/link01.sh: New file.
1030 * tests/Makefile.am: Added link01.sh
1032 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
1036 * patches/argp.diff: Remove; no longer needed.
1038 * lib/.cvsignore: Add stat-macros.h.
1039 Remove addext.c, malloc.c, realloc.c.
1041 * src/extract.c: Include <getcwd.h>.
1042 (extract_archive): Rewrite with new macro IS_ABSOLUTE_FILE_NAME.
1043 * src/extract.c (make_directories):
1044 FILESYSTEM_PREFIX_LEN -> FILE_SYSTEM_PREFIX_LEN.
1045 * src/misc.c (must_be_dot_or_slash): Likewise.
1046 * src/names.c (excluded_name, safer_name_suffix, stripped_prefix_len):
1048 * src/tar.c (parse_opt): Likewise.
1049 * src/incremen.c (purge_directory): Fix format buffer typos in warning
1051 * src/tar.c (options): Add missing initializers to pacify gcc.
1052 (decode_options): Remove unused var.
1054 2004-08-02 Paul Eggert <eggert@cs.ucla.edu>
1056 * bootstrap (gnulib_modules): Add getpagesize.
1057 * configure.ac (valloc): Remove check; valloc no longer used.
1058 * lib/.cvsignore: Add getpagesize.h.
1059 * m4/.cvsignore: Add getpagesize.m4.
1060 * src/buffer.c (record_buffer): New var.
1061 (open_archive): Don't use valloc; on older or buggy hosts, you can't
1062 free the result. Use page_aligned_alloc instead.
1063 * src/compare.c (diff_init): Likewise.
1064 * src/buffer.c (open_archive): Record the pointer to be freed
1066 (close_archive): Free record_buffer.
1067 * src/common.h (page_aligned_alloc): New decl.
1068 * src/misc.c (quote_n, quote): Remove these redundant functions.
1069 (ptr_align): New function, from coreutils/src/system.h.
1070 (page_aligned_alloc): New function.
1071 * src/system.h (valloc): Remove.
1073 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
1075 * src/extract.c (extract_archive): Do not report an error
1076 when hard-linking X to X when X exists. Problem reported by
1078 * lib/.cvsignore: Add fchown-stub.c.
1080 2004-06-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1083 * src/common.h (root_device): New global.
1084 (gnu_restore): Renamed to purge_directory().
1085 * src/extract.c (extr_init): Save the device number
1087 (extract_archive): Renamed gnu_restore() to purge_directory().
1088 * src/incremen.c (gnu_restore): Renamed to purge_directory().
1089 Do not attempt to purge the directory if it is on a different
1090 device and one_file_system_option is set.
1092 2004-06-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1094 * doc/tar.texi: The actual default for exclude patterns
1095 is --no-anchored. Fixed.
1096 * src/tar.c (options): Likewise.
1097 Thanks "Felix Natter" <felix.natter@ldc.de> for noticing.
1099 2004-06-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1101 * doc/tar.texi: Fixed several inconsistencies.
1102 * src/tar.c: Fixed docstring for --checkpoint option.
1104 2004-05-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1106 * src/buffer.c (seek_archive): New function
1107 * src/common.h (seek_archive): New function
1108 (seekable_archive): New global.
1109 * src/list.c (skip_file): Use seek_archive() if
1111 * src/tar.c (struct fmttab): Accept 'pax' as alias
1113 (options): New option -n (--seek).
1114 * src/update.c: Determine type of the archive before
1119 2004-05-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1121 * bootstrap: New option --update-po
1122 * src/tar.c: New option -H (short alias to --format)
1123 * doc/tar.texi: Document -H option
1124 * src/names.c (safer_name_suffix): Fixed bug introduced
1127 2004-05-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1129 * bootstrap: Apply patches from patch subdirectory
1131 * patches/argp.diff: New file
1132 * patches/getopt.diff: New file
1133 * configure.ac: Check for _getopt_long_only_r and
1134 force using included version of getopt if the function
1136 * src/tar.c: Use argp for command line parsing.
1137 * src/system.h: Minor formatting fix
1138 * m4/.cvsignore: Updated
1139 * lib/.cvsignore: Updated
1140 * doc/tar.texi: Minor fix.
1141 * src/extract.c: Fix improper use of 'path' term
1142 * src/incremen.c: Likewise
1143 * src/list.c: Likewise
1144 * src/misc.c: Likewise
1145 * src/names.c: Likewise
1146 * src/rmt.h: Likewise
1147 * src/rtapelib.c: Likewise
1148 * src/update.c: Likewise
1149 * src/xheader.c: Likewise
1150 * tests/star/README: Minor fix
1152 2004-05-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1154 * configure.ac: Raised version number to 1.14.1
1155 * src/tar.c: Renamed --strip-path to --strip-components
1156 Changed improper use of _() to ngettext().
1157 * src/extract.c: Renamed strip_path_option to strip_components_option
1158 * src/common.h: Likewise.
1160 * doc/tar.texi: Updated
1162 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1164 * src/system.c (sys_child_open_for_uncompress): Do not
1165 set read_full_records_option: the compressed archive is
1166 likely not to contain integer number of records. Should
1167 the user wish to use reblocking, he may always give tar
1168 -B option. This is a minor improvement over the change
1170 * src/buffer.c (open_archive): Removed assignment to
1171 read_full_records_option.
1173 * src/names.c (safer_name_suffix): (safer_name_suffix): Use "%s"
1174 as the format argument, rather than a possibly-translated variable
1175 string. Patch provided by Jim Meyering <jim@meyering.net>
1176 * src/tar.c (decode_options): Fixed typo in the comment.
1177 * tests/star/README: Minor correction
1179 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1181 * directory: New file. GNU directory entry for tar.
1182 * doc/Makefile.am: Rewritten. Added rules for generating
1183 documentation for the project's website.
1184 * doc/.cvsignore: Updated
1185 * doc/index.html.in: New file.
1187 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1189 * configure.ac: Raised version number to 1.14
1191 * tests/after: Added copyleft statement
1192 * tests/before: Added copyleft statement
1193 * tests/preset.in: Added copyleft statement
1195 Tar 1.14 is released. Sources up to this point are tagged
1198 2004-05-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1200 * configure.ac: Fixed prerequisite headers for sys/buf.h
1202 * src/system.h: Likewise.
1203 * tests/after (compare): Fixed argument quoting under eval
1204 * tests/before: Quote TAR_ARCHIVE_FORMATS
1206 2004-05-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1211 * configure.ac: Call gl_AC_TYPE_INTMAX_T. Document
1212 DEFAULT_.* variables. Use DEFAULT_RMT_COMMAND to set
1213 the pathname of the rmt utility.
1214 New option --enable-backup-scripts.
1215 * doc/tar.texi: Updated
1216 * scripts/Makefile.am: Install the scripts only if requested
1218 * scripts/backup.in: Fixed --version output.
1219 Fixed initialization of the listing files and printing
1220 the time of the last previous level dump.
1221 * scripts/restore.in: Fixed --version output.
1222 * src/Makefile.am (localedir.h rule): Generate correct
1223 DEFAULT_RMT_COMMAND variable.
1224 * src/common.h (rmt_command_option): New variable.
1225 * src/list.c (read_and): Print block number before
1226 issuing 'Skipping to next header' diagnostics, if
1227 requested by block_number_option.
1228 * src/rtapelib.c: Use rmt_command_option instead of
1229 hardcoded "/etc/rmt".
1230 * src/tar.c: New option --rmt-command.
1231 (decode_options): Handle --rmt-command. Initialize
1232 rmt_command_option to DEFAULT_RMT_COMMAND.
1234 2004-05-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1236 * doc/tar.texi: Further update.
1238 2004-05-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1240 * configure.ac: Minor fix
1241 * scripts/Makefile.am: Updated
1242 * scripts/backup-specs: Updated
1243 * scripts/backup.in: Minor fixes
1244 * scripts/backup.sh: Removed
1245 * scripts/backup.sh.in: New file. Source for backup.sh
1246 * scripts/restore.in: New file
1247 * scripts/.cvsignore: Updated
1248 * scripts/WARNING: Removed
1249 * doc/tar.texi: Updated
1252 2004-05-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1254 * src/names.c (name_gather): Bugfix: Honor single -C with
1256 * tests/same-order01.sh: New file
1257 * tests/same-order02.sh: New file
1258 * tests/Makefile.am: Updated
1260 * tests/append.sh: Added copyleft header
1261 * tests/delete01.sh: Likewise
1262 * tests/delete02.sh: Likewise
1263 * tests/delete04.sh: Likewise
1264 * tests/extrac01.sh: Likewise
1265 * tests/extrac02.sh: Likewise
1266 * tests/extrac03.sh: Likewise
1267 * tests/extrac04.sh: Likewise
1268 * tests/gzip.sh: Likewise
1269 * tests/ignfail.sh: Likewise
1270 * tests/incremen.sh: Likewise
1271 * tests/multiv01.sh: Likewise
1272 * tests/old.sh: Likewise
1273 * tests/options.sh: Likewise
1274 * tests/recurse.sh: Likewise
1275 * tests/version.sh: Likewise
1276 * tests/volume.sh: Likewise
1277 * tests/star/gtarfail.sh: Likewise
1278 * tests/star/gtarfail2.sh: Likewise
1279 * tests/star/multi-fail.sh: Likewise
1280 * tests/star/pax-big-10g.sh: Likewise
1281 * tests/star/qucktest.sh: Likewise
1282 * tests/star/ustar-big-2g.sh: Likewise
1283 * tests/star/ustar-big-8g.sh: Likewise
1285 * doc/.cvsignore: Updated
1287 2004-05-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1289 * configure.ac: Check whether date accepts +format argument
1290 (for backup scripts).
1291 * scripts/level-0: Removed
1292 * scripts/level-1: Removed
1293 * scripts/weekly.new: Removed
1294 * scripts/dump-remind: Removed
1295 * scripts/backup.in: New file
1296 * scripts/backup.sh: New file
1297 * scripts/dump-remind.in: New file
1298 * scripts/backup-specs: Updated
1299 * scripts/Makefile.am: Updated for new directory contents.
1300 * scripts/.cvsignore: Updated
1302 2004-05-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1305 * doc/tar.texi: Updated
1306 * src/tar.c: --utc implies -vv
1308 2004-04-28 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1310 * src/utf8.c: Make sure ICONV_CONST is defined. AM_ICONV
1311 does not define it if it fails to find iconv.h.
1313 2004-04-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1315 * bootstrap: Use gnulib-tool to generate lib/Makefile.am
1316 and parts of configure.ac
1317 * configure.ac: Invoke tar_GNULIB to configure gnulib stuff.
1318 * lib/Makefile.am: Removed
1319 * lib/Makefile.tmpl: New file.
1320 * lib/.cvsignore: Updated
1321 * m4/.cvsignore: Updated
1322 * src/xheader.c: Include stpcpy.h
1324 * src/create.c: Produce an error, not warning, if the
1325 filename is too long.
1326 * tests/longv7.sh: Synchronized with the recent changes.
1328 2004-04-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1330 * configure.ac: Fixed test for iconv_t
1331 * src/rmt.h: Bugfix by Jürgen Weigert
1332 * THANKS: Add Jürgen Weigert
1333 * tests/star/README: Fixed typo
1335 2004-04-04 Paul Eggert <eggert@twinsun.com>
1337 Merge getdate documentation changes from coreutils.
1339 * doc/getdate.texi: Update from coreutils CVS.
1340 * doc/tar.texi: Fix getdate menu to match getdate.texi's.
1342 Merge recent gnulib changes, and remove some lint.
1344 Improve support for nanosecond-resolution time stamps.
1345 * bootstrap: Add gettime, timespec modules.
1346 * configure.ac (gl_GETTIME, gl_TIMESPEC): Add.
1347 * lib/.cvsignore (getopt_int.h, gettime.c, gettimeofday.c,
1349 * lib/Makefile.am (libtar_a_SOURCES): Add gettime.c, timespec.h.
1350 * m4/.cvsignore: Add clock_time.m4, gettime.m4, gettimeofday.m4,
1351 st_mtim.m4, timespec.m4. Remove malloc.m4, realloc.m4.
1352 * src/common.h (newer_mtime_option): Now a struct timespec, not
1353 time_t. All uses changed.
1354 (NEWER_OPTION_INITIALIZED, OLDER_STAT_MTIME): New macros.
1355 * src/create.c (dump_file0): Use OLDER_STAT_TIME to compare times.
1356 * src/incremen.c (scan_path): Likewise.
1357 * src/list.c (read_and): Likewise.
1358 * src/list.c (read_and): Use NEWER_OPTION_INITIALIZED to decide
1359 whether newer_mtime_option is initialized.
1360 * src/tar.c (decode_options): Likewise.
1361 * src/tar.c (decode_options): Adjust to new signature for get_date.
1363 * src/buffer.c (short_read, flush_read): Use size_t, not ssize_t, for
1364 result of safe_read, full_write, and similar functions.
1365 Detect safe_read error by comparing to SAFE_READ_ERROR;
1366 detect full_write error by comparing to 0.
1368 * src/common.h (write_error_details, sys_write_archive_buffer):
1370 * src/misc.c (write_error_details): Likewise.
1371 * src/rmt.c (main): Likewise.
1372 * src/rmt.h (rmt_read__, rmt_write__): Likewise.
1373 * src/rtapelib.c (rmt_read__, rmt_write__, rmt_ioctl__): Likewise.
1374 * src/sparse.c (sparse_scan_file, sparse_dump_region,
1375 check_sparse_region, check_data_region): Likewise.
1376 * src/system.c (sys_write_archive_buffer, sys_drain_input_pipe,
1377 sys_child_open_for_compress, sys_child_open_for_uncompress): Likewise.
1378 * src/update.c (append_file): Likewise.
1380 * src/buffer.c (clear_read_error_count): Use explicit (void)
1381 to indicate a function with no arguments.
1382 * src/create.c (check_links): Likewise.
1383 * src/system.c (sys_get_archive_stat, sys_save_archive_dev_ino,
1384 sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell,
1385 sys_reset_uid_gid, sys_get_archive_stat, sys_save_archive_dev_ino,
1386 sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell):
1388 * src/utf8.c (get_input_charset): Likewise.
1389 * src/xheader.c (xheader_ghdr_name, xheader_write_global,
1390 xheader_decode_global, extended_header_init): Likewise.
1391 * tests/mksparse.c (usage): Likewise.
1393 * src/buffer.c (new_volume): Rename local variables to avoid
1395 * src/common.h (file_dumpable_p, sys_stat_nanoseconds,
1396 sparse_file_p, sparse_member_p, sparse_fixup_header,
1397 sparse_dump_file, sparce_extract_file, sparse_skip_file,
1398 sparse_diff_file): Likewise.
1399 * src/compare.c (diff_archive): Likewise.
1400 * src/create.c (file_dumpable_p, dump_regular_file, dump_dir0,
1401 dump_dir, dump_hard_link, file_count_links, dump_file0, dump_file):
1403 * src/extract.c (repair_delayed_set_stat): Likewise.
1404 * src/misc.c (maybe_backup_file, add_hierarchy_to_namelist):
1406 * src/sparse.c (struct tar_sparse_optab, tar_sparse_dump_region,
1407 tar_sparse_extract_region, sparse_dump_region, sparse_extract_region,
1408 sparse_dump_file, sparse_file_p, sparse_member_p,
1409 sparse_fixup_header, sparse_extract_file, sparse_skip_file,
1410 check_data_region, sparse_diff_file): Likewise.
1411 * src/system.c (sys_stat_nanoseconds): Likewise.
1412 * src/xheader.c (xheader_format_name): Likewise.
1414 * src/common.h (enum old_files): Remove comma before }; not portable.
1416 * src/common.h (read_fatal_details): Add __attribute__ ((noreturn)).
1417 * src/rmt.c (usage): Likewise.
1418 * src/xheader.c (xheader_set_single_keyword): Likewise.
1419 * tests/genfile.c (usage): Likewise.
1420 * tests/mksparse.c (die, usage): Likewise. Also add printf attribute
1423 * src/common.h (gname_to_gid, uname_to_uid): Add const to avoid
1425 * src/names.c (uname_to_uid, gname_to_gid): Likewise.
1426 * src/utf8.c (struct langtab.lang, struct langtab.terr, struct
1427 langtab.charset, charset_lookup): Likewise.
1429 * src/common.h (name_init): Remove unused args. All callers changed.
1430 * src/names.c (name_init): Likewise.
1432 * src/common.h (usage, xheader_write, xheader_write_global,
1433 sys_reset_uid_gid): New decls.
1435 * src/compare.c (report_difference, process_noop): Add
1436 __attribute__ ((unused)) for unused attributes.
1437 * src/sparse.c (oldgnu_sparse_member_p, star_sparse_member_p):
1439 * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
1440 gid_coder, gname_coder, linkpath_coder, ctime_coder, mtime_coder,
1441 path_coder, size_coder, uid_coder, uname_coder,
1442 sparse_numblocks_coder): Likewise.
1444 * src/create.c (dump_regular_finish, dump_dir0, dump_dir,
1445 dump_file0): Now static.
1446 * src/utf8.c (charset_lookup): Likewise.
1447 * src/xheader.c (xheader_protected_pattern_p,
1448 xheader_protected_keyword_p, xheader_set_single_keyword,
1449 xheader_keyword_deleted_p, xheader_keyword_override_p,
1450 xheader_list_append, xheader_list_destroy, xheader_set_keyword_equal):
1452 * tests/genfile.c (usage): Likewise.
1453 * tests/mksparse.c (die, mkhole, mksparse, usage, xlat_suffix):
1456 * src/create.c (hash_link): Rewrite to avoid cast.
1458 * src/extract.c (file_newer_p): Use parameter, not global var.
1459 * src/misc.c (write_error_details): Likewise.
1461 * src/extract.c (prepare_to_extract): Remove directory arg; not
1462 used. All callers changed.
1464 * src/misc.c (close_fatal): Remove; not used.
1465 * src/system.c (sys_utimes): Likewise.
1467 * src/rmt.c (get_string): Avoid buffer overrun (off by 1 error).
1469 * src/rmt.c (main): Update copyright date to 2004.
1470 * src/tar.c (decode_options): Likewise.
1472 * src/rtapelib.c (get_status_string): Don't lose errno when
1473 skipping the error messages.
1474 (get_status): Report an error if atol returns a negative number.
1476 * src/utf8.c (struct langtab, langtab, charset_lookup,
1477 get_input_charset) [!defined HAVE_LIBCONV]: Omit unused
1479 (iconv_open, iconv, iconv_close) [!defined HAVE_LIBCONV]:
1480 Use macros, not definitions, to avoid type clashes with system
1482 (charset_lookup): Local var is now auto, not static.
1483 (utf8_convert): Use ICONV_CONST instead of const, to avoid
1486 * src/utf8.c (langtab): Initialize all elements of struct, to
1488 * src/xheader.c (xhdr_tab): Likewise.
1490 * src/xheader.c: Include fnmatch.h, since we use fnmatch.
1492 * tests/mksparse.c (mkhole): Fix typo: bool was assigned to off_t.
1494 2004-04-04 Sergey Poznyakoff <gray@Noldor.runasimi.org>
1497 * configure.ac: Raised version number to 1.13.94
1498 * src/system.h: Protect inclusion of <sys/time.h>
1500 Declare time() if HAVE_DECL_TIME is 0
1501 * tests/.cvsignore: Added mksparse
1503 * tests/sparse01.sh: New file
1504 * tests/multiv02.sh: New file
1505 * tests/Makefile.am: Add sparse01.sh and multiv02.sh
1506 * tests/longv7.sh: Added missing call to 'after'
1508 * src/common.h: Added missing prototypes
1509 * src/compare.c (diff_archive): Use is_sparse member
1510 instead of GNUTYPE_SPARSE.
1511 * src/create.c: Removed unused variables
1512 * src/extract.c (extract_archive): Use sparse_member_p instead
1514 Removed unused variables
1515 * src/list.c (decode_header): Use sparse_fixup_header to correct
1517 (print_header): Do not rely on GNUTYPE_SPARSE type.
1518 Use st->stat.st_size to print real file size.
1519 (skip_member): Assign stat_info.file_name to save_name. This fixes
1520 bug reported by Mads Martin Joergensen <mmj@suse.de>
1521 Use sparse_skip_file() to skip sparse members.
1522 * src/rtapelib.c: include "common.h"
1523 * src/sparse.c (struct tar_sparse_optab.sparse_member_p)
1524 (struct tar_sparse_optab.fixup_header): New member
1525 (tar_sparse_member_p): New function.
1526 (tar_sparse_init): Return true if decode_header is not provided
1527 (tar_sparse_fixup_header)
1528 (sparse_member_p,sparse_fixup_header)
1530 (oldgnu_sparse_member_p,oldgnu_fixup_header,star_sparse_member_p)
1531 (star_fixup_header, pax_sparse_member_p): New function
1532 (pax_decode_header): Remove
1533 * src/system.h: Include <sys/time.h> and <utime.h> when available
1534 * src/tar.c (usage): Prototype moved to common.h
1535 * src/tar.h (struct tar_stat_info.is_sparse): New member
1536 * src/utf8.c (utf8_convert): Changed prototype
1537 (get_input_charset): Removed unused variable
1538 * src/xheader.c: include <fnmatch.h>
1539 (size_decoder): Assign to both st->archive_file_size and
1541 (st->stat.st_size): Assign to st->stat.st_size
1542 (sparse_numbytes_decoder): Removed unused variable
1543 * src/.cvsignore: Added .gdbinit
1544 * THANKS: Added Mads Martin Joergensen
1546 2004-03-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1548 * src/create.c (write_long_name): Do not allow more than
1549 NAME_FIELD_SIZE-1 characters in a file name for V7 format
1551 * tests/longv7.sh: New file.
1552 * tests/Makefile.am: Add longv7.sh
1554 2004-03-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1556 * src/buffer.c (open_archive): Clear read_full_records_option
1557 if reading from a pipe.
1558 (short_read): Display warning about the deduced record size
1560 * tests/star/pax-big-10g.sh: Updated to match the above changes.
1561 * tests/star/ustar-big-2g.sh: Likewise.
1562 * tests/star/ustar-big-8g.sh: Likewise.
1564 * configure.ac: Added gl_FUNC_STRTOULL
1565 * src/create.c (start_header): Check for GNU_FORMAT
1566 if incremental_option is set.
1567 * src/xheader.c (to_decimal): New function.
1568 (xheader_format_name): Use to_decimal() instead of snprintf.
1569 * tests/listed01.sh: Use genfile instead of dd
1570 * tests/multiv01.sh: Likewise.
1572 2004-03-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1574 * src/list.c (read_and): Stop processing the archive after
1575 encountering a single zero record. Many old archives contain
1576 arbitrary garbage after it.
1577 The warning is issued anyway.
1579 2004-03-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1581 * src/rtapelib.c (rmt_lseek__,rmt_ioctl__): Bugfix. The
1582 conversion buffer was not null terminated. Fix provided
1583 by Leland Lucius <llucius@tiny.net>
1584 * THANKS: Added Leland Lucius
1585 * src/utf8.c (utf8_convert): Indentation fix.
1587 2004-02-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1589 * src/buffer.c (flush_read): Bugfix: the
1590 condition at line 714 included
1592 || (status > 0 && !read_full_records_option)
1594 which is grossly wrong, since even if new_volume() below succeeds,
1595 the subsequent call to rmtread will overwrite the chunk of data
1596 already read in the buffer and thus spoil everything.
1597 * src/system.c (sys_child_open_for_uncompress): Minor stylistic
1599 * tests/star/multi-fail.sh: New test.
1600 * tests/Makefile.am: Added multi-fail.sh
1601 * tests/star/README: Updated
1603 2004-02-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1606 * configure.ac: Removed spurious AC_CHECK_LIB(iconv)
1607 * src/common.h (utc_option): new global
1608 (enum old_files.KEEP_NEWER_FILES): New element
1609 * src/extract.c: Handle --keep-newer-files option
1610 * src/list.c (tartime): Print UTC if --utc was given.
1611 * src/tar.c: New options: --utc and keep-newer-files
1613 * tests/Makefile.am: Added new tests
1614 * tests/after: Rewritten
1615 * tests/before: Rewritten
1616 * tests/preset.in: Rewritten
1617 * tests/delete03.sh: Accommodate for the new testsuite logic
1618 * tests/gzip.sh: Likewise
1619 * tests/incremen.sh: Likewise
1620 * tests/listed01.sh: Likewise
1621 * tests/multiv01.sh: Likewise
1622 * tests/old.sh: Likewise
1623 * tests/options.sh: Likewise
1624 * tests/version.sh: Likewise
1625 * tests/volume.sh: Likewise
1627 * tests/star: New directory
1628 * tests/star/README: New file
1629 * tests/star/gtarfail.sh: New file
1630 * tests/star/gtarfail2.sh: New file
1631 * tests/star/pax-big-10g.sh: New file
1632 * tests/star/qucktest.sh: New file
1633 * tests/star/ustar-big-2g.sh: New file
1634 * tests/star/ustar-big-8g.sh: New file
1636 2004-02-26 Paul Eggert <eggert@twinsun.com>
1638 * doc/tar.texi (dircategory Individual utilities): Append period,
1639 as suggested by Karl Berry.
1641 2004-02-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1643 * src/list.c (decode_header): Call xheader_decode before
1644 the assignment to current_stat_info.archive_file_size.
1646 2004-02-23 Paul Eggert <eggert@twinsun.com>
1648 * configure.ac: Invoke AM_ICONV, to define ICONV_CONST if needed.
1650 2004-02-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1655 * tests/before: Move testing of the prerequisite archive formats
1656 to the separate function 'prereq'. Do not expect any arguments
1657 * tests/delete03.sh: Use prereq() instead of passing arguments
1659 * tests/incremen.sh: Likewise.
1660 * tests/listed01.sh: Likewise.
1661 * tests/multiv01.sh: Likewise.
1663 2004-02-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1665 Added UTF-8 support. Finished global extended header
1669 * configure.ac: Detect libiconv
1670 * src/utf8.c: New file. Conversions to and from utf-8.
1671 * src/Makefile.am: Added utf8.c
1672 * src/create.c (write_header_name) In pax format, use
1673 "path" keyword if the file name is not ASCII
1674 (start_header): Likewise for uname and gname.
1675 * src/list.c: Decode encountered global headers.
1676 * src/xheader.c: Use keywords from the global
1678 Correctly handle UTF-8 conversions.
1679 (xheader_list_destroy): New function.
1680 (xheader_set_single_keyword,xheader_set_keyword_equal): Added
1681 missing gettext markers
1682 (decode_record): Rewritten using caller-provided handler and
1684 * tests/listed01.sh: Give credit to Andreas Schuldei.
1686 2004-02-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1688 * src/create.c (dump_file0): The conditional at line
1689 1296 prevented incremental backups on individual files
1690 from working, as reported by Andreas Schuldei
1691 <andreas@schuldei.org>.
1693 This is due to the condition
1695 (0 < top_level || !incremental_option)
1697 Removing it makes incremental backups work for individual
1698 files as well as for directories. On the other hand, it does
1699 not affect other functionality, as shown by the reasoning below:
1701 To begin with, the two parts of this condition are mutually
1702 superfluous, because
1704 1) when top_level < 0, incremental_option == 1
1705 so the condition yields false
1706 2) when top_level >= 0, incremental_option == 0
1707 so the condition yields true.
1709 In other words, it is completely equivalent to
1711 (!incremental_option)
1713 Now, let's consider the effect of its removal. There are two cases:
1715 1) when incremental_option==1
1716 This means incremental backup in progress. In this case dump_file
1717 is invoked only for directories or for files marked with 'Y' by
1718 get_directory_contents. The latter are those that did not meet the
1719 condition in incremen.c:242, which is exactly the same condition
1720 as this at create.c:1296. So, for these files the check
1721 (!incremental_option) is useless, since the rest of the
1722 conditional will yield false anyway. On the other hand, if
1723 dump_file is invoked on a directory, the conditional will yield
1724 false due to !S_ISDIR assertion, so these will be processed as usual.
1726 Thus, for this case the extra condition (!incremental_option) is
1727 irrelevant, and its removal won't alter the behavior of tar,
1728 *except* that it will enable incremental backups on individual
1729 files, which is the wanted effect.
1731 2) when incremental_option==0
1732 In this case the condition yields true and its removal does not
1733 affect the functionality.
1736 * configure.ac: Raised patchlevel to 93
1737 * src/incremen.c: Minor stylistic fixes.
1738 * tests/listed01.sh: New test. Check listed incremental
1739 backups on individual files.
1740 * tests/Makefile.am: Added listed01.sh
1742 2004-02-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1744 * src/common.h (simple_finish_header,start_private_header): New
1746 (xheader_ghdr_name): Changed declaration
1747 * src/create.c (start_private_header): Removed static qualifier.
1748 (write_extended): Removed superfluous last argument. Use
1750 (simple_finish_header): New function.
1751 (finish_header): Use simple_finish_header() to break recursive
1752 dependency between this function and write_extended().
1753 * src/tar.c (assert_format): Do not bail out if several
1754 --format arguments are given. This is a common case when
1755 TAR_OPTIONS are used.
1756 (decode_options): New option --show-defaults displays the
1757 compiled-in defaults.
1758 Use POSIX format if no --format option was given and
1759 --pax-option was specified.
1760 Do not allow to use --pax-option unless the archive format is
1761 set to POSIX (or reading subcommand is requested).
1763 * src/update.c (update_archive): Write global extended header if
1765 * src/xheader.c (xheader_format_name): Bugfix.
1766 (xheader_xhdr_name): Changed the default extended header name
1767 to '%d/PaxHeaders.%p/%f', as POSIX requires.
1768 (xheader_ghdr_name): Removed unused argument.
1769 (xheader_write,xheader_write_global): New function.
1770 (xheader_decode): Modified to honor overrides whatever
1771 the current archive format is.
1773 * src/delete.c (delete_archive_members): Call xheader_decode
1775 * src/list.c (decode_header): Likewise.
1776 * src/incremen.c (sort_obstack): Fixed typo in the comment
1778 * doc/tar.texi: Document new default for extended
1781 * tests/before: Accept an optional list of allowed archive
1782 formats. Exit with the status 77 if the current archive
1783 format does not match any of them.
1784 * tests/delete03.sh: Require gnu, oldgnu or posix format
1785 * tests/incremen.sh: Require gnu or oldgnu format
1786 * tests/multiv01.sh: Likewise
1788 2004-02-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1790 * doc/tar.texi (Option Summary): Documented --pax-option
1791 * src/tar.c: Likewise.
1793 * src/create.c (to_chars): Added a comment.
1794 * src/tar.h: Comment to GNU_FORMAT
1796 2004-02-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1799 * configure.ac: Added stpcpy
1800 * bootstrap: Likewise
1801 * lib/Makefile.am: Likewise
1802 * src/common.h (xheader_xhdr_name,xheader_ghdr_name): New
1804 * src/create.c (write_extended): Call xheader_xhdr_name
1805 instead of using hardcoded "././@PaxHeader" name.
1806 * src/tar.c: New option --pax-option (equivalent to -o option
1808 * src/xheader.c: Implement pax -o option. Fixed misleading
1809 heading comment (introduced 2003-09-02).
1810 * src/incremen.c: Minor fixes
1811 * m4/.cvsignore: Updated
1813 2004-02-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1815 * src/incremen.c: Removed accumulator stuff in favor of obstack.
1816 (get_directory_contents): Split into two functions
1817 * src/update.c: Minor changes
1818 * doc/tar.texi: Fixed typo
1820 2004-02-15 Paul Eggert <eggert@twinsun.com>
1822 Fix Debian bug 230872, originally reported by Jeff King in
1823 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=230872>.
1825 * doc/tar.texi (posix compliance): Remove. The whole section
1826 was a misunderstanding of what POSIXLY_CORRECT is supposed to
1827 mean. The GNU Coding Standards says that POSIXLY_CORRECT
1828 is for disabling extensions that are incompatible with POSIX:
1829 it is not for disabling compatible extensions. All references
1830 to this section removed.
1831 (posix): This format is created only if the posix format is
1832 specified; it is no longer created if gnu format is specified
1833 and POSIXLY_CORRECT is set.
1834 * src/tar.c (decode_options): Ignore POSIXLY_CORRECT.
1835 POSIX does not specify the behavior of tar, so we should
1836 not worry about POSIXLY_CORRECT here.
1838 2004-01-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1840 * Makefile.am: Removed m4
1841 * configure.ac: Require automake-1.8/autoconf-2.59. Removed
1843 * README-alpha: Updated
1844 * bootstrap: Updated TP URL, improved help output. Default
1845 to :ext:anoncvs and set CVS_RSH, unless already set.
1846 * m4/Makefile.am: Removed
1848 2004-01-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1850 * bootstrap: Bugfix by Marco Gerards <metgerards@student.han.nl>:
1851 Use $option instead of $1 so all options will be parsed.
1853 2004-01-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1855 Started rewriting buffer.c ...
1857 * bootstrap: New option --no-po
1858 * src/buffer.c (new_volume,check_label_pattern): Changed return type.
1859 (time_to_start_writing): Changed data type
1860 (file_to_switch_to): Removed. Variable never assigned to.
1861 (open_archive) Moved option compatibility checks to tar.c
1862 Other minor changes.
1863 * src/common.h (maybe_backup_file): Changed return type
1864 * src/misc.c: Likewise.
1865 * src/create.c: Updated invocations of safer_name_suffix
1866 * src/extract.c: Likewise
1867 * src/delete.c: Updated assignment to write_archive_to_stdout
1868 * src/tar.c (decode_options): More option compatibility checks
1869 (moved from buffer.c)
1870 * src/update.c (time_to_start_writing): Changed data type.
1871 * tests/recurse.sh: New test case.
1872 * tests/mksparse.c: New file.
1873 * tests/Makefile.am: Added recurse.sh and mksparse.c
1875 2004-01-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1877 * src/sparse.c (sparse_diff_file): Bugfix. Thanks
1878 Martin Simmons for the patch.
1879 * src/create.c (dump_dir0): Bugfix. Thanks Piotr Czerwinski
1880 <pius@pld-linux.org> for the patch.
1882 2003-12-26 Paul Eggert <eggert@twinsun.com>
1884 Synchronize with Gettext 0.13.1, Automake 1.8, Autoconf 2.59,
1885 and translation website.
1887 * bootstrap: Don't bother skipping codeset.m4, glibc21.m4,
1888 intdiv0.m4, inttypes_h.m4, inttypes.m4, inttypes-pri.m4,
1889 isc-posix.m4, and lcmessage.m4 from gnulib. This list of files is
1890 a bit obsolete anyway, now that gettext 0.13.1 is out. Also, the
1891 files are replaced by autoreconf. Also, there seems to be a bug
1892 in gettext/autoconf/automake if we try to omit these files after
1893 autoreconf has replaced them, even though the gettext manual says
1894 they're optional. So give up and just include them for now, even
1895 though they make 'configure' longer and slower.
1897 Change translation URL from
1898 <http://www.iro.umontreal.ca/contrib/po/maint/tar/> to
1899 <http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
1900 accommodate translator website revamp.
1902 Fail if autoreconf fails.
1904 * m4/.cvsignore: Add intmax.m4, longdouble.m4, printf-posix.m4,
1905 signed.m4, size_max.m4, wchar_t.m4, wint_t.m4, xsize.m4, to
1906 ignore files now supplied by gettext 0.13.1.
1908 2003-12-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1910 Synchronized with the backup repository on Mirddin
1912 2003-12-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1914 * configure.ac: Check for varios members of struct stat
1915 that may represent file modification times with a subsecond
1917 Check for utimes (for future use)
1918 * src/buffer.c (short_read): Issue a warning on short reads.
1919 * src/common.h (sys_stat_nanoseconds): New function
1920 * src/create.c (dump_file0): Use sys_stat_nanoseconds().
1921 * src/list.c (read_and): Treat only two successive zero
1922 filled blocks as an EOF indicator. Issue a warning if
1923 a single one is encountered.
1924 * src/system.c (sys_stat_nanoseconds): New function
1925 * src/tar.h (tar_stat_info.atime_nsec,mtime_nsec,ctime_nsec): New
1927 * src/xheader.c (code_time,decode_time): Support for subsecond
1929 (atime_coder,atime_decoder,ctime_coder,ctime_decoder)
1930 (mtime_coder,mtime_decoder): Update invocations of code_time and
1932 (gid_decoder,size_decoder,uid_decoder,sparse_size_decoder)
1933 (sparse_numblocks_decoder,sparse_offset_decoder)
1934 (sparse_numbytes_decoder): Updated
1936 2003-12-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1938 * src/names.c (safer_name_suffix): Reverted change made
1939 2003-11-14. Reason: Discussion with Paul Eggert and
1940 Jean-Louis Martineau. See also ChangeLog entry from
1942 * tests/delete03.sh: Likewise.
1943 * tests/extrac04.sh: Likewise.
1944 * tests/multiv01.sh: Likewise.
1946 2003-12-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1948 * src/incremen.c (write_directory_file): Use sys_truncate
1949 * src/list.c (print_header): Use archive_file_size member
1950 when printing real file size.
1951 * src/sparse.c (sparse_scan_file): Correctly handle files with
1953 (sparse_dump_region,sparse_extract_region): Allow for zero size
1956 2003-12-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1958 * configure.ac: Raised version number to 1.13.92
1959 * src/list.c (decode_header): Discern between pax and ustar
1961 Initialize current_stat_info.archive_file_size.
1963 NOTE: Modifications from this date on are temporarily
1964 stored on local CVS on mirddin. This repository will
1965 be synchronized with Savannah as soon as the latter
1966 becomes operational again.
1968 2003-12-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1971 * src/sparse.c: Initial implementation of GNU/pax sparse
1973 * src/common.h (xheader_store): Changed prototype.
1974 * src/create.c: Update calls to xheader_store
1975 * src/extract.c (extract_archive): Check reported size vs.
1976 archive file size to determine if we have to do with a
1978 * src/tar.c (usage): Cleaned up the sample argument to --newer
1980 (decode_options): Allow --sparse for POSIX_FORMAT archives.
1981 * src/xheader.c (struct xhdr_tab.coder; all coder function): Added
1983 Implemented GNU.sparse.* keywords.
1985 2003-11-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1987 * configure.ac: Check for setlocale. Thanks Bruno Haible for
1990 2003-11-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1992 * src/create.c (write_gnu_long_link): Use oldgnu
1993 magic with @LongLink blocks.
1995 2003-11-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1997 * src/tar.h: Support for star sparse format.
1998 * src/sparse.c: Likewise.
2000 2003-11-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2002 * src/sparse.c (sparse_diff_file): New function
2003 * src/common.h (sys_compare_uid,sys_compare_gid): New functions
2004 (sys_compare_uid_gid): Removed.
2005 (sys_compare_links,report_difference): Changed prototype
2006 (sparse_diff_file): New function
2007 * src/system.c (sys_compare_uid,sys_compare_gid): New functions
2008 (sys_compare_uid_gid): Removed.
2009 (sys_compare_links): Changed declaration
2010 * src/compare.c (diff_archive): Use sparse_diff_file.
2012 2003-11-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2014 Rewritten sparse file handling.
2016 * src/sparse.c: New file. Provides a universal framework
2017 for various methods for sparse files handling.
2018 * src/Makefile.am: Added sparse.c
2019 * src/common.h (struct sp_array,sparsearray,sp_array_size)
2020 (init_sparsearray,fill_in_sparse_array): Removed
2021 (enum dump_status): New data type
2022 (pad_archive,close_diag,open_diag,read_diag_details)
2023 (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
2025 (sparse_file_p,sparse_dump_file,sparse_extract_file): New
2027 (print_header): Changed prototype declaration.
2028 * src/tar.h (struct sp_array): Declaration from common.h
2029 (struct tar_stat_info): New members archive_file_size,
2030 sparse_map_avail,sparse_map.
2031 * src/create.c: Major rewrite.
2032 * src/extract.c: Use new sparse file interface.
2033 * src/compare.c (diff_sparse_files): Temporary placeholder.
2035 * src/buffer.c: Minor changes
2036 * src/tar.c: Likewise.
2037 * src/list.c: Likewise.
2038 * src/misc.c (close_diag,open_diag,read_diag_details)
2039 (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
2040 diagnostics functions.
2041 * src/incremen.c: Use new diagnostics functions.
2042 * src/names.c: Likewise.
2044 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2046 * configure.ac: Fixed check for setsockopt
2048 * src/create.c: Do not zero-terminate name field if
2049 the name is exactly 100 characters long.
2050 (write_ustar_long_name): Fixed cheking for unsplittable
2053 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2055 * src/create.c (start_header): Removed debugging hook
2056 (dump_file): Fixed handling of linkname field.
2057 * src/names.c (safer_name_suffix): If the input
2058 file name ends with a slash, output one should do so
2060 * doc/tar.texi: Documented --format=ustar
2062 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2064 * src/tar.h (archive_format): USTAR_FORMAT: New type.
2065 * src/create.c: Added POSIX.1-1988 support.
2066 * src/names.c (safer_name_suffix): Skip leading ./
2067 * src/tar.c: New option --format=ustar forces
2068 POSIX.1-1988 archive format.
2069 * tests/delete03.sh: Updated.
2070 * tests/extrac04.sh: Updated.
2071 * tests/multiv01.sh: Updated.
2073 2003-11-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2075 * src/list.c (read_and): Initialize current_stat_info
2076 and extended_header at the start of the loop.
2077 * src/names.c (all_names_found): Check if the argument
2078 contains valid filename. Fixes coredump on `not_a_tar_file'
2079 * src/xheader.c (atime_decoder,gid_decoder,ctime_decoder)
2080 (mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax.
2081 Fixes `pax-big-10g' bug.
2083 2003-11-12 Paul Eggert <eggert@twinsun.com>
2085 Fix some C compatibility bugs reported by Joerg Schilling.
2087 * src/common.h (stripped_prefix_len): Fix misspelling
2088 "stripped_path_len" in declaration.
2089 * src/rmt.c (main): Use "return FOO;" rather than
2090 "exit (FOO);"; we no longer have to worry about
2091 pre-ANSI hosts that mishandled returned values from "main".
2092 * src/tar.c (main): Likewise. This avoids warnings on some
2094 * src/system.c: Include signal.h, for 'kill'.
2095 * src/system.h (DEV_BSIZE): Remove.
2096 (DEFAULT_ST_BLKSIZE): New macro.
2097 (ST_BLKSIZE): Use it, instead of DEV_BSIZE.
2098 * src/tar.c (enum): Remove comma just before }.
2100 2003-11-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2102 * src/list.c (decode_header): Initialize st_atime and
2105 2003-11-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2107 * configure.ac (tar_save_LIBS): Bugfix. Thanks Adrian
2108 Bunk <bunk@fs.tum.de> for reporting.
2109 * doc/tar.texi: Fixed spelling. Thanks Martin Buchholz
2110 <martin@xemacs.org> for spotting.
2112 2003-11-04 Paul Eggert <eggert@twinsun.com>
2114 * src/xheader.c (xhdr_tab): Make it extern, not static, as C89 and
2117 2003-10-26 Paul Eggert <eggert@twinsun.com>
2119 * src/system.c (sys_spawn_shell): Cast trailing null to (char *).
2120 Bug reported by Christian Weisgerber.
2122 2003-10-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2126 * src/tar.c (decode_options): Removed superfluous archive format
2128 * doc/tar.texi: Documented new features.
2130 2003-10-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2133 * THANKS: Added Wojciech Polak
2134 * configure.ac: Added checks for missing functions. Raised
2135 version number to indicate alpha release.
2136 * lib/Makefile.am: Added missing headers
2137 * lib/waitpid.c: Added missing includes.
2138 * src/extract.c: Likewise.
2139 * src/names.c: Removed spurious includes.
2140 * src/xheader.c: Likewise.
2141 * src/system.h [MSDOS]: Fixed spelling of EACCES. Added
2142 macro overriding broken mkdir prototypes.
2144 2003-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2146 * configure.ac: Check for dev_t and ino_t.
2147 * m4/Makefile.am: Added missing files.
2148 * src/system.c: New file.
2149 * src/Makefile.am: Added system.c
2150 * src/common.h: Prototypes for functions from system.c
2151 * src/system.h (SET_BINARY_MODE, ERRNO_IS_EACCESS): New defines
2152 * src/buffer.c: Moved system dependencies to system.c
2153 * src/compare.c: Likewise.
2154 * src/create.c: Likewise.
2155 * src/delete.c: Likewise.
2156 * src/extract.c: Likewise.
2157 * src/rtapelib.c: Likewise.
2159 2003-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2161 Implemented --occurrence option.
2164 * src/tar.c: New option --occurrence.
2165 * src/common.h (occurrence_option): New global
2166 (struct name): Changed `found' member to `uintmax_t
2168 (names_done): Removed
2169 (all_names_found): Changed prototype.
2170 (ISFOUND,WASFOUND): New macros
2171 * src/delete.c (delete_archive_members): Honor --occurrence
2173 * src/list.c (read_and): Likewise.
2174 * src/names.c: Count number of occurrences of each name in the
2176 (name_match): Honor --occurrence option.
2177 (names_done): Removed
2178 (all_names_found,names_notfound): Rewritten.
2180 2003-10-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2182 * src/tar.c: Removed extra precaution regarding
2183 subcommand_option == CAT_SUBCOMMAND
2184 * lib/Makefile.am: Updated
2186 2003-10-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2188 * src/common.h (names_done): New function.
2189 * src/names.c: Likewise.
2190 * src/list.c (read_and): Use all_names_found() as `while'
2192 * src/tar.c: New option --first-copy
2195 2003-09-24 Paul Eggert <eggert@twinsun.com>
2197 * src/rmt.c (main): Don't translate Copyright string; international
2198 law says the word "Copyright" should be in English.
2199 * src/tar.c (decode_options): Likewise.
2201 2003-09-22 Paul Eggert <eggert@twinsun.com>
2203 * doc/tar.texi (extracting untrusted archives): New section.
2205 * src/common.h (stripped_path_len): Renamed from cut_path_elements.
2206 Return size_t, not pointer, so that we don't have to worry about
2207 violating the C standard by converting char const * to char *.
2208 All callers changed.
2209 * src/names.c (stripped_path_len): Likewise. Strip file system
2210 prefix, too. Count adjacent slashes as if they were one slash;
2211 that is the POSIX standard.
2213 2003-09-17 Paul Eggert <eggert@twinsun.com>
2215 * README-alpha: Document maintainer tool assumptions a bit. GNU
2216 'sed' is no longer required. For GNU m4 1.4, suggest the patch in
2217 Debian bug 211447. Fix minor misspellings/whitespace nits.
2219 * configure.ac (AC_AIX, AC_MINIX): Remove; subsumed by
2220 gl_USE_SYSTEM_EXTENSIONS.
2222 * lib/.cvsignore: Add exit.h, time_r.c, time_r.h.
2223 * m4/.cvsignore: Add restrict.m4, time_r.m4.
2225 2003-09-17 Paul Eggert <eggert@twinsun.com>
2227 * bootstrap: Don't use "for option; do";
2228 Solaris 8 /bin/sh doesn't like that.
2230 2003-09-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2232 * README-alpha: Updated
2233 * bootstrap: Updated
2235 2003-09-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2237 * README-alpha: Updated
2238 * bootstrap: Updated
2239 * po/POTFILES.in: Added src/xheader.c
2240 * src/common.h (cut_path_elements): Added proto.
2242 2003-09-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2244 * src/buffer.c: Use ngettext where appropriate.
2245 * src/compare.c: Likewise.
2246 * src/create.c: Likewise.
2247 * src/misc.c: Likewise.
2248 * src/tar.c: Likewise.
2249 * src/update.c: Likewise.
2251 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2253 * .cvsignore: Added *.shar.gz
2256 * src/common.h (strip_path_elements): New variable.
2257 * src/extract.c (extract_archive): Implemented --strip-path
2258 * src/names.c (cut_path_elements): New function.
2259 * src/tar.c: New option --strip-path=NUM.
2260 (decode_options) Assign boolean values to bool variables.
2262 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2264 * src/delete.c: Fixed deletion from the POSIX archives.
2265 * src/list.c (read_header): Minor change.
2266 * src/tar.c (main): Do not check for volume_label_option
2267 if subcommand_option is not CREATE_SUBCOMMAND.
2268 * src/xheader.c (xheader_decode): Store the header as
2269 well (for eventual delete).
2271 * tests/incremen.sh: Explicitly request GNU format. This will
2272 disappear when GNU extended header keywords are working.
2273 * tests/multiv01.sh: Likewise
2274 * tests/volume.sh: Likewise
2276 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2278 * src/create.c: Support for "linkpath" extended keyword.
2279 * src/xheader.c (decode_record): Reversed the return
2282 2003-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2284 * configure.ac: Allow to redefine the default output format.
2285 * src/tar.c: Use DEFAULT_ARCHIVE_FORMAT macro
2286 (archive_format_string): New function.
2287 (usage): Updated help output.
2292 2003-09-02 Paul Eggert <eggert@twinsun.com>
2294 * src/common.h (destroy_stat, xheader_decode, xheader_store,
2295 xheader_read, xheader_finish, xheader_destroy): Add decls;
2298 * src/create.c (write_extended): Remove unused local 'bufsize'.
2300 * src/delete.c (delete_archive_members): Handle case of
2301 HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE.
2302 * src/list.c (read_and): Abort if HEADER_SUCCESS_EXTENDED
2303 occurs, as it's not possible.
2304 * src/update.c (update_archive): Likewise.
2306 Use "const" when possible in new code.
2307 * src/tar.c (struct fmttab.name): Now char const *. All uses changed.
2308 (fmttab): Now const. All uses changed.
2309 * src/xheader.c (struct xhdr_tab.keyword): Now pointer to const.
2310 (struct xhdr_tab.coder, struct xhdr_tab.decoder, locate_handler,
2311 decode_record, xheader_store, xheader_print, code_string, code_time,
2312 code_num, dummy_coder, dummy_decoder, atime_coder, atime_decoder,
2313 gid_coder, gid_decoder, gname_coder, gname_decoder, linkpath_coder,
2314 linkpath_decoder, ctime_coder, ctime_decoder, mtime_coder,
2315 mtime_decoder, path_coder, path_decoder, size_coder, size_decoder,
2316 uid_coder, uid_decoder, uname_coder, uname_decoder):
2317 Use pointers to const when possible.
2318 (xhdr_tab): Now const.
2320 * src/tar.c (fmttab): Avoid GCC warning by not eliding initializers.
2321 (set_archive_format): Report an error if no format name matches,
2322 instead of returning an undefined value.
2324 * src/xheader.c (struct xhdr_tab.decoder, dummy_decoder,
2325 atime_decoder, gid_decoder, gname_decoder, linkpath_decoder,
2326 ctime_decoder, mtime_decoder, path_decoder, size_decoder,
2327 uid_decoder, uname_decoder): Remove unused keyword arg.
2330 * src/tar.c (set_archive_format): Now static.
2331 * src/xheader.c (xhdr_tab, format_uintmax): Now static.
2333 * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
2334 atime_decoder, gid_coder, gid_decoder, gname_coder, gname_decoder,
2335 linkpath_coder, linkpath_decoder, mtime_coder, mtime_decoder,
2336 ctime_coder, ctime_decoder, path_coder, path_decoder, size_coder,
2337 size_decoder, uid_coder, uid_decoder, uname_coder, uname_decoder):
2338 Remove forward decls; no longer needed.
2339 (xhdr_tab): Move to end, so that the forward decls aren't needed.
2340 Add a forward declaration.
2342 Use 'bool' in new code, when appropriate.
2343 * src/xheader.c (decode_record): Return bool, not int.
2344 * src/common.h (read_header): Since it accepts bool, change
2345 all callers to use false and true rather than 0 and 1.
2347 * src/xheader.c (decode_record): Fix misspelling in diagnostic
2348 "extended headed" -> "extended header".
2350 GNU coding style fixes.
2351 * src/xheader.c (decode_record, xheader_decode):
2352 Do not use decls like "char *p, *q;".
2355 (xheader_store): Avoid parentheses around object operand of sizeof.
2357 2003-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2359 * src/create.c (start_header): Store long file names
2360 in "path" keyword of an extended header if in POSIX
2362 (finish_header): print header before calling write_extended().
2363 * src/list.c (list_archive): Always decode the header. This
2364 is necessary so the extended header is processed and the correct
2365 filename is printed no matter what the state of verbose_option.
2366 * src/xheader.c (xhdr_tab): Reserved GNU keywords (commented out
2367 for the time being).
2369 2003-09-01 Paul Eggert <eggert@twinsun.com>
2371 Update from gnulib, and correct fnmatch to fnmatch-gnu.
2372 * bootstrap (gnulib_modules): Change fnmatch to fnmatch-gnu.
2374 * configure.ac (gl_USE_SYSTEM_EXTENSIONS): Use this instead
2376 * lib/.cvsignore: Add alloca.h, stdbool.h. Sort. Append newline.
2377 * lib/Makefile.am (lib_OBJECTS): New macro, for convenience when
2378 copying rules from gnulib module descriptions.
2379 (BUILT_SOURCES, EXTRA_DIST, all-local, alloca.h):
2380 Update from gnulib modules alloca, fnmatch, getline, stdbool.
2381 * m4/.cvsignore: Add utimes-null.m4. Sort.
2383 2003-09-01 Sergey Poznyakoff
2385 Added initial support for creating POSIX headers.
2387 * src/common.h (MAXOCTAL11,MAXOCTAL7): New defines
2388 (string_to_chars): New functions
2389 (struct xheader): Changed structure
2390 (gid_to_gname,gname_to_gid,uid_to_uname,uname_to_uid): Changed
2392 * src/create.c (string_to_chars): New function.
2393 (write_extended): New function
2394 (start_header): Create extended POSIX headers if necessary.
2395 (finish_header): Likewise.
2396 * src/list.c (print_header): Take user/group from
2398 * src/names.c (gid_to_gname,gname_to_gid)
2399 (uid_to_uname,uname_to_uid): Changed prototypes.
2400 * src/tar.c: New option --format.
2401 * src/tar.h (OLDGNU_COMPATIBILITY): Removed
2402 (struct extra_header): Removed unused structure.
2403 (union block.extra_header): Removed unused member.
2404 * src/xheader.c: Implemented coder functions.
2405 * bootstrap: Added obstack.
2406 * lib/.cvsignore: Likewise.
2407 * configure.ac: Added 'gl_OBSTACK'
2408 * m4/Makefile.am: Added new files.
2409 * m4/.cvsignore: Likewise.
2410 * TODO: Minor formatting change
2412 2003-08-31 Sergey Poznyakoff
2414 Added initial support for POSIX extended and STAR headers
2415 (only for listing/extracting).
2417 * src/xheader.c: New file.
2418 * src/Makefile.am: Added xheader.c
2419 * src/tar.h (struct star_header): New datatype
2420 (XHDTYPE,XGLTYPE): New defines
2421 (enum archive_format:STAR_FORMAT): New member
2422 (struct tar_stat_info): New datatype.
2423 (union block.star_header): New member.
2424 * src/common.h (orig_file_name,current_file_name)
2425 (current_trailing_slash,current_link_name): Removed variables.
2426 (current_stat_info): New variable
2427 (current_stat): Removed
2428 (extended_header): New variable
2429 (decode_header): Changed prototype.
2430 * src/list.c (decode_header): Added initial support for POSIX extended
2432 (skip_member): Check oldgnu_header only if current_format is set
2434 * src/buffer.c: Use current_stat_info
2435 * src/compare.c: Likewise.
2436 * src/create.c: Likewise.
2437 * src/delete.c: Likewise.
2438 * src/incremen.c: Likewise.
2439 * src/mangle.c: Likewise.
2440 * src/update.c: Likewise.
2441 * src/extract.c: Likewise.
2442 (make_directories): Improved check for the existence of the directory
2443 * src/tar.c (destroy_stat): New function.
2445 2003-08-29 Paul Eggert <eggert@twinsun.com>
2447 * NEWS, bootstrap: Drop en_GB locale; it was more trouble than it
2448 was worth (e.g., different users in en_GB disagree about -ize
2450 * po/en_GB.po: Remove.
2452 2003-07-28 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2456 * src/tar.c: Removed support for the obsolete command line
2458 * doc/tar.texi: Removed references to the obsolete command
2461 2003-07-27 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2465 * doc/tar.texi: Updated
2466 * src/common.h (check_links_option): New variable
2467 (orig_file_name): New variable
2468 (check_links): New proto.
2469 * src/create.c (struct link.nlink): New member
2470 (link_table): Static for the module.
2471 (dump_file): Update `link' member when adding new links
2473 (check_links): New function.
2474 * src/list.c (print_header): Use orig_file_name.
2475 * src/tar.c: New option --check-links. Changed semantics of
2476 -o to comply to UNIX98 when extracting and to its previous
2477 semantics otherwise.
2478 (main): Call check_links if --check-links. was given.
2480 2003-07-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2482 * src/list.c (print_header): Revised
2483 * NEWS: Started the entry for 1.13.26
2484 * doc/Makefile.am (tar.dvi): Fixed TEXINPUTS value.
2486 2003-07-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2488 * .cvsignore: Added to the repository.
2489 * doc/.cvsignore: Likewise.
2490 * lib/.cvsignore: Likewise.
2491 * m4/.cvsignore: Likewise.
2492 * po/.cvsignore: Likewise.
2493 * scripts/.cvsignore: Likewise.
2494 * src/.cvsignore: Likewise.
2495 * tests/.cvsignore: Likewise.
2497 * lib/Makefile.am: Added exitfail.[hc]
2498 * src/misc.c (chdir_do): Fixed call to restore_cwd
2499 * src/buffer.c (flush_read): Fixed behavior on short
2500 reads right after opening the new archive (multiv01.sh test).
2501 (new_volume): Special handling for "-".
2502 * src/list.c (print_header): Print trailing slash if
2503 current_trailing_slash was set (extrac03.sh,extrac04.sh tests).
2504 * tests/multiv01.sh: Minor changes.
2505 * m4/Makefile.am: Added missing files.
2507 2003-07-05 Paul Eggert <eggert@twinsun.com>
2509 Finish the checkin begin yesterday.
2511 * NEWS: Document the user-visible changes installed in the last
2514 * TODO: New file (actually, resurrected; but with new contents).
2516 * src/list.c (read_and): Give full type for procedure arg.
2517 (read_header): Strip trailing slashes, setting current_trailing_slash.
2518 (tartime): Avoid int overflow when printing year (!).
2519 (print_header): New arg specifying block ordinal. All uses changed.
2520 Print link as 'h' type. Give labels for long links and names.
2522 * src/misc.c (contains_dot_dot): Moved to names.c
2523 (must_be_dot_or_slash): New function.
2524 (safer_rmdir): Use it.
2525 (remove_any_file): Now takes enum as option, not boolean.
2526 Check for (Linux) EISDIR as well as (POSIX) EPERM when attempting
2527 to unlink a directory.
2528 (deref_stat): Accept bool, not int.
2530 * src/names.c (namelist_match): Allow partial matches only if
2532 (hash_string_hasher): Renamed from hash_avoided_name.
2533 (hash_string_compare): Renamed from compare_avoided_anames.
2534 (hash_string_insert, hash_string_lookup): New functions.
2535 (add_avoided_name, is_avoided_name): Use them.
2536 (safer_name_suffix): New function.
2537 (contains_dot_dot): Moved here from misc.c. Now returns bool, not int.
2539 * src/rmt.c: Don't include print-copyr.h.
2540 (prepare_input_buffer): New arg FD.
2541 Do not read more than INT_MAX bytes at once,
2542 since it breaks on some brain damaged Tru64 hosts.
2544 when retrying instead of subtracting 1024; for speed.
2545 (main): Use gettext to translate (C), not print_copyright.
2547 * src/system.h: Include <alloca.h> and <stdbool.h> unconditionally,
2548 now that gnulib handles this.
2549 Include <stddef.h> and <limits.h> unconditionally, now that we assume
2551 Assume that offsetof is defined in stddef.h.
2552 Do not include <sys/param.h>.
2553 (realloc, lseek): Do not declare.
2554 (HAVE_DECL_VALLOC): Renamed from HAVE_VALLOC.
2555 (CHAR_BIT, CHAR_MAX, UCHAR_MAX, LONG_MAX): Remove
2556 declarations, since we now assume C89 or better.
2557 (PARAMS): Remove, as we now assume C89. All uses changed.
2558 (bindtextdomain, textdomain): Include <gettext.h> to define.
2559 Include <unlocked-io.h>.
2560 (valloc): Define if not defined, and if valloc is not declared.
2561 (xstrdup): Remove decl.
2563 * src/tar.c: Do not include <print-copyr.h>.
2564 Include <getdate.h>.
2565 (get_date): Remove decl.
2566 (ATIME_PRESERVE_OPTION, CHECKPOINT_OPTION, FORCE_LOCAL_OPTION,
2567 IGNORE_FAILED_READ_OPTION, INDEX_FILE_OPTION, NO_OVERWRITE_DIR_OPTION,
2568 NUMERIC_OWNER_OPTION, RECURSIVE_UNLINK_OPTION, REMOVE_FILES_OPTION,
2569 SHOW_OMITTED_DIRS_OPTION, TOTALS_OPTION): New constants.
2570 (long_options, decode_options): Use them.
2571 (OVERWRITE_DIR_OPTION): Remove.
2572 (long_options): New options --index-file, --no-overwrite-dir.
2573 Remove --overwrite-dir option.
2574 (usage): Use PACKAGE_BUGREPORT.
2575 (decode_options): Terminate new argv properly.
2576 Use PACKAGE_NAME, PACKAGE_VERSION.
2577 If verbose, report how we grokked any textual date option.
2578 (main): Add support for index-file.
2580 * tests/Makefile.am: Convert to UTF-8.
2581 (AUTOMAKE_OPTIONS): Remove.
2582 (TESTS): Add delete04.sh, multiv01.sh, options.sh.
2583 (INCLUDES): Remove ../intl.
2584 (LDADD): Don't link libtar.a twice.
2586 * tests/genfile.c: Convert to UTF-8.
2587 Don't include <print-copyr.h>.
2588 (DEFAULT_PATTERN): Renamed from DEFAULT.
2589 (ZEROS_PATTERN): Renamed from ZEROS.
2590 (main): Use gettext to translate (C), not print_copyright.
2592 2003-07-04 Paul Eggert <eggert@twinsun.com>
2594 Revamp to meet current standards of autoconf, automake,
2595 gettext, and gnulib, and incorporate new translations.
2597 * config/config.guess, config/config.sub, config/depcomp,
2598 config/install-sh, config/mdate-sh, config/missing,
2599 config/mkinstalldirs, config/texinfo.texi:
2600 Moved here from parent directory, or from doc.
2601 * config.hin: Renamed from config.h.in.
2602 * config/config.rpath: New file.
2604 * intl: Remove this subdirectory.
2606 * lib/fnmatch_.h: Renamed from lib/fnmatch.hin.
2608 * lib/getstr.c, lib/getstr.h, lib/msleep.c, lib/print-copyr.c,
2609 lib/print-copyr.h, lib/readutmp.c, lib/rename.c, lib/stpcpy.c,
2610 lib/strstr.c, lib/strtoimax.c, lib/strtoll.c, lib/strtoull.c,
2611 lib/strtoumax.c, lib/unicodeio.c, lib/unicodeio.h,
2612 lib/xstrtoimax.c, m4/c-bs-a.m4, m4/ccstdc.m4, m4/check-decl.m4,
2613 m4/decl.m4, m4/jm-mktime.m4, m4/prereq.m4, m4/xstrtoimax.m4,
2616 * lib/alloca_.h, lib/fnmatch_loop.c, lib/gettext.h, lib/pathmax.h,
2617 lib/safe-write.c, lib/safe-write.h, lib/stdbool_.h, lib/strcase.h,
2618 lib/stripslash.c, lib/unlocked-io.h, lib/xgetcwd.h, m4/alloca.m4,
2619 m4/backupfile.m4, m4/bison.m4, m4/chown.m4, m4/dirname.m4,
2620 m4/dos.m4, m4/exclude.m4, m4/fileblocks.m4, m4/ftruncate.m4,
2621 m4/getdate.m4, m4/getopt.m4, m4/hash.m4, m4/human.m4,
2622 m4/intdiv0.m4, m4/intmax_t.m4, m4/inttypes-pri.m4,
2623 m4/inttypes_h.m4, m4/isc-posix.m4, m4/lchown.m4, m4/lib-ld.m4,
2624 m4/lib-link.m4, m4/lib-prefix.m4, m4/memset.m4, m4/mktime.m4,
2625 m4/modechange.m4, m4/nls.m4, m4/onceonly.m4, m4/pathmax.m4,
2626 m4/po.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4,
2627 m4/safe-read.m4, m4/safe-write.m4, m4/save-cwd.m4, m4/savedir.m4,
2628 m4/ssize_t.m4, m4/stdbool.m4, m4/stdint_h.m4, m4/strcase.m4,
2629 m4/strtoimax.m4, m4/strtol.m4, m4/strtoll.m4, m4/strtoul.m4,
2630 m4/strtoull.m4, m4/strtoumax.m4, m4/tm_gmtoff.m4, m4/uintmax_t.m4,
2631 m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4, m4/xstrtol.m4,
2632 po/LINGUAS, po/Makevars, po/Rules-quot, po/boldquot.sed,
2633 po/en@boldquot.header, po/en@quot.header, po/en_GB.po,
2634 po/insert-header.sin, po/remove-potcdate.sin, po/stamp-po: New files.
2636 * ABOUT-NLS, INSTALL, lib/addext.c, lib/alloca.c, lib/argmatch.c,
2637 lib/argmatch.h, lib/backupfile.c, lib/backupfile.h, lib/dirname.c,
2638 lib/dirname.h, lib/error.c, lib/exclude.c, lib/exclude.h,
2639 lib/fnmatch.h, lib/full-write.c, lib/full-write.h, lib/getdate.h,
2640 lib/getdate.y, lib/getline.c, lib/getline.h, lib/getopt.c,
2641 lib/getopt.h, lib/getopt1.c, lib/hash.c, lib/hash.h, lib/human.c,
2642 lib/human.h, lib/lchown.c, lib/malloc.c, lib/mktime.c,
2643 lib/modechange.c, lib/modechange.h, lib/quote.c, lib/quote.h,
2644 lib/quotearg.c, lib/quotearg.h, lib/realloc.c, lib/safe-read.c,
2645 lib/safe-read.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
2646 lib/savedir.h, lib/strcasecmp.c, lib/utime.c, lib/xalloc.h,
2647 lib/xgetcwd.c, lib/xmalloc.c, lib/xstrdup.c, lib/xstrtol.c,
2648 lib/xstrtol.h, lib/xstrtoumax.c, m4/codeset.m4, m4/d-ino.m4,
2649 m4/error.m4, m4/fnmatch.m4, m4/getcwd.m4, m4/getline.m4, m4/gettext.m4,
2650 m4/glibc21.m4, m4/iconv.m4, m4/inttypes.m4, m4/lcmessage.m4,
2651 m4/longlong.m4, m4/malloc.m4, m4/mbrtowc.m4, m4/mbstate_t.m4,
2652 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4, m4/ulonglong.m4,
2653 m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4,
2655 Upgrade to latest version from external source. The file "bootstrap"
2656 now grabs these automatically, so we needn't keep track of them
2657 in this change long any longer.
2659 * Makefile.am (AUTOMAKE_OPTIONS): Remove. Now done by configure.ac.
2660 (SUBDIRS): Remove intl.
2661 * PORTS: Update for star, Macintosh.
2662 * README, README-alpha: Suggest Autoconf 2.57, Automake 1.7.5,
2663 Bison 1.875, gettext 0.12.1.
2664 * THANKS: Add Bernhard Rosenkraenzer, Solar Designer.
2665 * configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Convert to modern form.
2666 (AC_CONFIG_AUX_DIR): New.
2667 (AC_CONFIG_HEADERS): Rename config.h.in to config.hin, to be more
2669 (AC_PREREQ): Bump from 2.52 to 2.57.
2670 (AC_GNU_SOURCE): New.
2671 (AC_PROG_GCC_TRADITIONAL, AM_C_PROTOTYPES, AC_C_CONST): Remove;
2672 we no longer support K&R C.
2674 (AC_CHECK_HEADERS): Remove limits.h, poll.h, stdbool.h, stropts.h,
2675 sys/ioccom.h, sys/param.h, sys/time.h, sys/timeb.h, wchar.h, wctype.h.
2676 (AC_MBSTATE_T): Remove.
2677 (HAVE_UTIME_H, HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
2678 HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
2679 HAVE_DECL_STRTOULL, HAVE_MKNOD): Remove our special code.
2680 (AM_STDBOOL_H): Add.
2681 (AC_HEADER_TIME, AC_STRUCT_TIMEZONE,
2682 jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Remove.
2683 (AC_CHECK_TYPE): Remove ssize_t.
2684 (gt_TYPE_SSIZE_T): Add.
2685 (jm_AC_PREREQ_XSTRTOUMAX, jm_PREREQ_ADDEXT, jm_PREREQ_ERROR,
2686 jm_PREREQ_HUMAN, jm_PREREQ_QUOTEARG, jm_PREREQ_XGETCWD,
2687 AC_FUNC_ALLOCA, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STRERROR_R,
2688 AC_FUNC_FNMATCH, AC_FUNC_VPRINTF, AM_FUNC_GETLINE, jm_FUNC_MALLOC,
2689 jm_FUNC_MKTIME, jm_FUNC_REALLOC):
2690 Remove. Switch to gnulib macros like gl_BACKUPFILE instead.
2691 (tar_LDADD): Rename to LIB_CLOCK_GETTIME. All uses changed.
2692 (rmt_LDADD): Rename to LIB_SETSOCKOPT. All uses changed.
2693 (AC_CHECK_FUNCS): Remove fchdir, ftime, getcwd, isascii, nap,
2694 napms, poll, select, strstr, usleep.
2695 (AC_REPLACE_FUNCS): Remove ftruncate, lchown, memset, rename,
2696 rmdir, strcasecmp, strncasecmp, strtol, strtoul.
2697 (AM_GNU_GETTEXT): Use external and need-ngettext options.
2698 (AM_GNU_GETTEXT_VERSION): New.
2699 (AC_OUTPUT): Remove intl/Makefile.
2701 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
2702 ($(srcdir)/tar.info, tar.dvi): Remove obsolete warnings.
2703 * doc/fdl.texi: Update to current GNU version.
2704 * doc/gettext.texi: Update to current coreutils version,
2705 plus a copyright notice.
2706 * doc/tar.texi: Switch to new method for doing copyright notices.
2707 Use @acronym instead of @sc where appropriate.
2708 Remove empty examples. Give a few more examples.
2710 * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove.
2711 (EXTRA_DIST, libtar_a_SOURCES): Switch to gnulib, so that they
2712 are built up in pieces with +=.
2713 (noinst_HEADERS, INCLUDES): Remove.
2714 (BUILT_SOURCES, MAINTAINERCLEANFILES, MOSTLYCLEANFILES): New.
2715 (libtar_a_LIBADD): Use $ rather than @.
2716 (all-local, alloca.h, fnmatch.h, stdbool.h): New rules, from gnulib.
2718 * m4/Makefile.am (EXTRA_DIST): Add alloca.m4, backupfile.m4,
2719 bison.m4, chown.m4, dirname.m4, dos.m4, exclude.m4, fileblocks.m4,
2720 ftruncate.m4, getdate.m4, getopt.m4, hash.m4, human.m4,
2721 intdiv0.m4, intmax_t.m4, inttypes_h.m4, inttypes-pri.m4,
2722 isc-posix.m4, lcown.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
2723 memset.m4, mktime.m4, modechange.m4, nls.m4, onceonly.m4,
2724 pathmax.m4, po.m4, quotearg.m4, quote.m4, rmdir.m4, safe-read.m4,
2725 safe-write.m4, save-cwd.m4, savedir.m4, ssize_t.m4, stdbool.m4,
2726 stdint_h.m4, strcase.m4, strtoimax.m4, strtoll.m4, strtol.m4,
2727 strtoull.m4, strtoul.m4, strtoumax.m4, tm_gmtoff.m4, uintmax_t.m4,
2728 unlocked-io.m4, xalloc.m4, xgetcwd.m4, xstrtol.m4.
2729 Remove c-bs-a.m4, ccstdc.m4, check-decl.m4, decl.m4, jm-mktime.m4,
2730 prereq.m4, xstrtoimax.m4.
2732 * po/POTFILES.in: Remove tests/genfile.c; it doesn't need to
2733 be translated, since it's not a user-visible tool.
2735 * scripts/Makefile.am (AUTOMAKE_OPTIONS): Remove.
2737 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove.
2738 (INCLUDES): Remove ../intl. Put top-srcdir before ., for
2739 consistency with coreutils.
2740 (LDADD): Link LIBINTL after libtar.a, since
2741 it's now external and should stand by itself.
2743 * src/buffer.c (print_total_written): Adjust to new human.h
2745 (child_open_for_compress): Do not increase size to BLOCKSIZE.
2746 (open_archive): Open index file name.
2747 Strip trailing slahes from file names.
2748 (flush_write): Set size to 0 if not saving names.
2749 (flush_write, flush_read): Use safer_name_suffix rather than
2752 * src/common.h: Include <quote.h>.
2753 (absolute_names_option, atime_preserve_option, backup_option,
2754 block_number_option, checkpoint_option, dereference_option,
2755 force_local_option, ignore_failed_read_option, ignore_zeros_option,
2756 incremental_option, interactive_option, multi_volume_option,
2757 numeric_owner_option, one_file_system_option, recursive_unlink_option,
2758 read_full_records_option, remove_files_option, same_order_option,
2759 show_omitted_dirs_option, sparse_option, starting_file_option,
2760 to_stdout_option, totals_option, touch_option, verify_option,
2761 dev_null_output, now_verifying, we_are_root): Now bool, not int.
2762 (current_trailing_slash, index_file_name, recent_long_name_blocks,
2763 recent_long_link_blocks): New vars.
2764 (NO_OVERWRITE_DIR_OLD_FILES): New constant.
2765 (OVERWRITE_OLD_DIRS): Remove.
2766 (enum remove_option): New enum.
2767 (remove_any_file): Use it as option arg, not int.
2768 (is_avoided_name, contains_dot_dot): Return bool, not int.
2769 (safer_name_suffix): New decl.
2771 * src/compare.c (now_verifying): Now bool, not int.
2772 (fill_in_sparse_array): Move to extract.c. Now returns bool;
2773 all callers changed to test for failure.
2774 (diff_sparse_files): Take size from current_stat, not from param.
2775 (diff_archive): Do not count trailing slashes in archives.
2776 (verify_volume): Test for header failure after loop, not before.
2778 * src/create.c (relativize): Remove; replaced by safer_name_suffix.
2779 All callers changed.
2780 (start_header): Clear devmajor and devminor fields, too.
2781 (finish_header): New arg block_ordinal.
2782 (init_sparsearray): Now extern. Set sp_array_size to
2783 SPARSES_IN_OLDGNU_HEADER if it is zero.
2784 (dump_file): Keep link table as a hash.
2785 Do not count "file changed as we read it" as a failure.
2787 * src/delete.c (recent_long_name_blocks, recent_long_link_blocks):
2788 Move extern decl to common.h.
2790 * src/extract.c (we_are_root): Now bool, not int.
2791 (check_time): Warn about implausibly old time stamps.
2792 (set_stat): Use utimbuf, not stat_info.
2793 (prepare_to_extract): New arg DIRECTORY.
2794 (fill_in_sparse_array): Moved here from compare.c.
2795 (extract_sparse_file): Now returns off_t, giving size left.
2796 Truncate file at end.
2797 (extract_archive): Use safer_name_suffix rather than rolling our own.
2798 Use fill_in_sparse_array rather than rolling our own.
2799 Strip trailing slashes more effectively.
2800 Check for unsafe names.
2802 * src/incremen.c (struct directory): nfs and found are now of type
2804 (gnu_restore): Now takes directory name as argument, not offset
2805 of directory name in a global. All uses changed.
2806 (CURRENT_FILE_NAME): Remove.
2809 * tests/delete04.sh, tests/multiv01.sh, tests/options.sh: New
2812 2002-09-30 Paul Eggert <eggert@twinsun.com>
2814 * src/rmt.c (prepare_input_buffer): Renamed form
2815 prepare_record_buffer. All uses changed. Do not assume that
2816 size_t is the same width as int.
2818 2002-03-29 Paul Eggert <eggert@twinsun.com>
2820 * src/incremen.c (get_directory_contents):
2821 If ignore_failed_read_option, only warn about
2822 get_directory_contents failures. Fix suggested by
2825 2002-01-31 Mark W. Eichin <eichin@thok.org>
2827 * src/buffer.c (child_open_for_compress): Don't try to read
2828 past the end of the buffer.
2830 2001-10-11 Jim Meyering <meyering@lucent.com>
2832 * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
2833 and quote_n (1, ... to avoid clobbering a buffer.
2835 2001-09-26 Paul Eggert <eggert@twinsun.com>
2837 * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.25.
2839 * src/buffer.c (flush_read): Don't diagnose partial blocks before
2840 end of file; just ignore them silently.
2842 * src/list.c (read_header): Don't keep around extended name
2843 and link info indefinitely; keep it only for the next file.
2844 This fixes a bug introduced in 1.13.24, and removes the need
2845 for some static variables. Set recent_long_name and
2846 recent_long_link to zero if there were no long links; this
2847 avoids a violation of ANSI C rules for pointers in delete.c.
2848 * THANKS: Add Christian Laubscher.
2850 2001-09-26 Jim Meyering <meyering@lucent.com>
2852 * doc/tar.texi (Remote Tape Server): is know -> is known
2854 2001-09-25 Paul Eggert <eggert@twinsun.com>
2856 * lib/unicodeio.c (EILSEQ): Include <iconv.h> first, since
2857 <iconv.h> may define EILSEQ (e.g. libiconv). Define a
2858 replacement EILSEQ to be ENOENT, not EINVAL, since callers may
2859 want to distinguish EINVAL and EILSEQ.
2861 2001-09-24 Christophe Kalt <Christophe.Kalt@kbcfp.com>
2863 * src/extract.c (maybe_recoverable):
2864 Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES.
2866 2001-09-22 Paul Eggert <eggert@twinsun.com>
2868 * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.24.
2870 * ABOUT-NLS, intl/*: Update to gettext-0.10.40, replacing LGPL
2873 * INSTALL, mkinstalldirs: Update to autoconf 2.52 version.
2874 * PORTS: Add copyright notice, 'star' reference.
2875 * README-alpha: Add copyright notice, autoconf 2.52 patch.
2876 * THANKS: Add Christophe Kalt.
2877 * config.sub: Upgrade to 2001-09-14 version.
2879 * configure.ac (ALL_LINGUAS): Add ko.
2880 * po/ko.po: Resurrected file.
2882 * doc/convtexi.pl: Add coding advice for Emacs.
2884 * doc/getdate.texi: Add copyright notice.
2886 * doc/mdate-sh: Upgrade to automake 1.5 version.
2888 * doc/tar.texi (extracting files): Mention --to-stdout.
2889 (Option Summary, Dealing with Old Files): New option --overwrite-dir.
2890 (Overwrite Old Files): Likewise.
2892 * lib/Makefile.am (noinst_HEADERS):
2893 Remove copysym.h. Add print-copyr.h, unicodeio.h.
2894 (libtar_a_SOURCES): Remove copysym.c, Add print-copyr.c, unicodeio.c.
2896 * lib/copysym.c, lib/copysym.h: Remove.
2897 * lib/print-copyr.c, lib/print-copyr.h, lib/unicodeio.c,
2898 lib/unicodeio.h: New files.
2900 * lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c,
2901 lib/mktime.c, lib/strtoll.c: Switch from LGPL to GPL.
2903 * lib/quotearg.c (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
2904 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
2906 * m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4.
2907 * m4/isc-posix.m4: Remove.
2909 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit.
2911 * po/POTFILES.in: Add copyright notice.
2913 * src/Makefile.am (LDADD): Like libtar.a before @INTLLIBS@ as
2915 * tests/Makefile.am (LDADD): Likewise.
2917 * src/buffer.c (write_archive_buffer, close_archive):
2918 If an archive is a socket, treat it like a FIFO.
2919 (records_read, records_written): New vars.
2920 (write_archive_to_stdout): Now bool, not int.
2921 (open_archive, flush_write, flush_read): Keep records_read and
2922 records_written up to date.
2924 * src/common.h (enum old_files): New value OVERWRITE_OLD_DIRS.
2925 (write_archive_to_stdout): Now bool, not int.
2926 (enum read_header): New value HEADER_SUCCESS_EXTENDED.
2927 (read_header): Now takes bool arg. Existing callers modified
2928 to pass 0, unless otherwise specified.
2930 * src/delete.c (records_read): Remove; now a global.
2931 (acting_as_filter): Now bool, not int.
2932 (recent_long_name, recent_long_link, recent_long_name_blocks,
2933 recent_long_link_blocks, records_read, records_written): New decls.
2934 (records_skipped): New var.
2935 (move_archive): Don't divide by zero if arg is 0.
2936 Use the above vars to compute how far to move.
2937 (write_recent_blocks): New function.
2938 (delete_archive_member): Pass 1 to read_header, so that it doesn't
2939 read more than 1 block. Handle resulting HEADER_SUCCESS_EXTENDED code.
2940 Keep track of how many records have been skipped.
2941 Let the buffer code count records.
2942 When copying a header, copy any extended headers that came before it.
2944 * src/extract.c (extract_archive): When marking a directory to be
2945 updated after symlinks, stat all directories after it in the
2946 delayed-set-stat list too, since they will be checked after
2947 symlinks. Add support for --overwrite-dir.
2949 * src/list.c (recent_long_name, recent_long_link,
2950 recent_long_name_blocks, recent_long_link_blocks): New vars.
2951 (read_and): Pass 0 to read_header.
2952 (read_header): New arg RAW_EXTENDED_HEADERS. Store away extended
2953 headers into new vars. Null-terminate incoming symbolic links.
2955 * src/rmt.c: Include print-copyr.h, not copysym.h.
2956 (main): Use print_copyright, not copyright_symbol.
2957 * src/tar.c (decode_options): Likewise.
2958 (OVERWRITE_DIR_OPTION): New constant.
2959 (long_options, usage, decode_options): Add --overwrite-dir.
2961 * src/tar.h: Put copyright notice into documentation.
2963 * tests/Makefile.am (TESTS): Add delete03.sh.
2964 * tests/delete03.sh: New file.
2966 * tests/genfile.c: Include print-copyr.h, not copysym.h.
2967 (main): Use print_copyright, not copyright_symbol.
2968 Include <argmatch.h>.
2969 (pattern_strings): Remove.
2970 (pattern_args, pattern_types): New constants.
2971 (main): Use XARGMATCH, not argmatch.
2973 2001-09-20 Jim Meyering <meyering@lucent.com>
2975 * lib/xstrtol.c (strtoimax): Guard declaration with
2976 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
2977 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
2978 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
2979 (strtoumax): Likewise, for completeness (it wasn't necessary).
2980 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
2981 Check for declaration of strtoimax.
2982 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
2983 Check for declaration of strtoumax.
2985 2001-09-16 Paul Eggert <eggert@twinsun.com>
2987 * fnmatch.m4 (jm_FUNC_FNMATCH): Fix typo in previous patch: yes -> no.
2989 2001-09-14 Paul Eggert <eggert@twinsun.com>
2991 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.23.
2993 * README-alpha: Describe automake patch.
2995 * configure.ac (LIBOBJS):
2996 Remove automake 1.4 workaround, as we're using 1.5 now.
2997 (USE_INCLUDED_LIBINTL): New AC_DEFINE.
2999 * lib/copysym.c: Include stddef.h, for size_t.
3000 Include langinfo.h if needed.
3001 Use locale_charset only if USE_INCLUDED_LIBINTL;
3002 if not, use nl_langinfo (CODESET) if available.
3004 2001-09-13 Paul Eggert <eggert@twinsun.com>
3006 * config.guess, config.sub: Sync with canonical versions.
3008 * configure.ac (jm_PREREQ_XGETCWD): Add.
3010 * lib/Makefile.am (noinst_HEADERS): Add copysym.h.
3011 (libtar_a_SOURCES): Add copysym.c.
3012 * copysym.c, copysym.h: New files.
3014 * lib/error.c: Sync with fileutils version.
3016 * m4/Makefile.am (EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4.
3017 * m4/getcwd.m4: New file.
3018 * m4/uintmax_t.m4: Remove.
3020 * m4/gettext.m4 (AM_WITH_NLS):
3021 Fix bug with calculating version of Bison 1.29.
3022 Reported by Karl Berry.
3024 * src/Makefile.am (datadir): Remove.
3026 * src/rmt.c: Include copysym.h.
3027 (main): Use copyright_symbol to translate copyright notice,
3029 * src/tar.c: Likewise.
3030 * tests/genfile.c: Likewise.
3032 * src/system.h (MB_LEN_MAX): New symbol.
3034 2001-09-11 Paul Eggert <eggert@twinsun.com>
3036 * src/extract.c (struct delayed_set_stat): New member
3038 (delay_set_stat): Initialize it to 0.
3039 (set_mode): New arg current_stat_info. Use it (if nonnull) to avoid
3040 taking an extra stat ourselves. All callers changed.
3041 (set_stat): Likewise.
3042 (apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
3043 If false, stop when encountering a struct whose 'after_symlinks'
3044 member is true. Otherwise, go through all structures but check
3045 them more carefully. All callers changed.
3046 (extract_archive): When extracting a deferred symlink, if its parent
3047 directory's status needs fixing, then mark the directory as needing
3048 to be fixed after symlinks.
3049 (extract_finish): Fix status of ordinary directories, then apply
3050 delayed symlinks, then fix the status of directories that are
3051 ancestors of delayed symlinks.
3053 * src/rtapelib.c (rexec):
3054 Remove declaration; it ran afoul of prototypes on Crays.
3055 Reported by Wendy Palm of Cray.
3057 2001-09-06 Paul Eggert <eggert@twinsun.com>
3059 * lib/strtoimax.c (HAVE_LONG_LONG):
3060 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
3061 (strtoimax): Use sizeof (long), not
3062 sizeof strtol (ptr, endptr, base),
3063 to work around bug in IBM C compiler.
3065 2001-09-04 Paul Eggert <eggert@twinsun.com>
3067 * lib/xgetcwd.c: Include "xalloc.h".
3068 (xgetcwd): Do not return NULL when memory is exhausted; instead,
3069 report an error and exit.
3071 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
3072 (jm_PREREQ): Use it.
3074 2001-09-03 Paul Eggert <eggert@twinsun.com>
3076 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
3077 (jm_PREREQ_XGETCWD): New macro.
3079 * lib/exclude.c (fnmatch_no_wildcards):
3080 Fix typo that caused us to do case-folding
3081 search even when that was not desired. This occurred only in the
3084 * lib/xgetcwd.c: Include pathmax.h if not HAVE_GETCWD.
3085 Do not include xalloc.h.
3086 (INITIAL_BUFFER_SIZE): New symbol.
3087 Do not use xmalloc / xrealloc, since the caller is responsible for
3088 handling errors. Preserve errno around `free' during failure.
3089 Do not overrun buffer when using getwd.
3091 * lib/xgetcwd.c (xgetcwd):
3092 Use HAVE_GETCWD_NULL, not defined __GLIBC__ && __GLIBC__ >= 2,
3093 to decide whether to use getcwd (NULL, 0).
3095 2001-09-02 Paul Eggert <eggert@twinsun.com>
3097 * lib/xgetcwd.c: Fix typo in local var; from Jim Meyering.
3099 2001-09-01 Jim Meyering <meyering@lucent.com>
3101 * exclude.c: Use `""', not `<>' to #include non-system header files.
3102 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
3103 and strncasecmp as r-values. Unixware didn't have declarations.
3105 2001-08-31 Jim Meyering <meyering@lucent.com>
3107 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
3108 Use an initial, malloc'd, buffer of length 128 rather than
3109 a statically allocated one of length 1024.
3111 2001-08-30 Paul Eggert <eggert@twinsun.com>
3113 * lib/utime.c: Include full-write.h.
3114 * lib/xstrtol.c (strtoimax): New decl.
3116 2001-08-29 Paul Eggert <eggert@twinsun.com>
3118 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.22.
3120 * src/create.c (dump_file): Relativize link names before dumping.
3121 This fixes a bug reported by Jose Pedro Oliveira.
3123 * src/create.c (dump_file): Use offsetof when computing sizes for
3124 struct hack; this avoids wasted space in some cases.
3125 * src/incremen.c (note_directory, find_directory): Likewise.
3126 * src/names.c (name_gather, addname): Likewise.
3128 * src/extract.c (extract_archive): Use strcpy, not memcpy,
3129 for consistency with other code that does similar things.
3130 * src/names.c (name_gather): Likewise.
3132 * src/names.c (read_name_from_file, name_next, name_gather,
3133 add_hierarchy_to_namelist): Avoid quadratic behavior when
3134 reallocating buffers. Check for buffer size overflow.
3135 (addname): Avoid unnecessary clearing of memory.
3137 2001-08-29 "Jan D." <Jan.Djarv@mbox200.swipnet.se>
3139 * src/extract.c (delay_set_stat): Fix off-by-one error in file
3140 name size allocation that caused core dumps.
3142 2001-08-28 Paul Eggert <eggert@twinsun.com>
3144 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.21.
3146 * configure.ac (GNU_SOURCE): Define to 1, not /**/.
3147 (major_t, minor_t, ssize_t): Use new-style AC_CHECK_TYPE.
3148 (daddr_t): Remove; no longer used.
3149 (jm_PREREQ_HUMAN): Add.
3151 * acconfig.h: Remove; no longer needed.
3153 * config.guess, config.sub:
3154 New files, from automake 1.5. Gettext 0.10.39 needs them.
3155 * depcomp, missing, mkinstalldirs: Upgrade to automake 1.5.
3157 * Makefile.am (AUTOMAKE_OPTIONS): Add dist-bzip2.
3158 (SUBDIRS): Put intl before lib, as gettext requires.
3160 * ABOUT-NLS: Upgrade to gettext 0.10.39.
3161 * intl: Upgrade entire directory to gettext 0.10.39.
3162 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4:
3163 New files, from gettext 0.10.39.
3164 * m4/gettext.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4,
3165 Upgrade to gettext 0.10.39,
3166 * po/Makefile.in.in: Likewise, except fix a typo in its copying
3168 * po/cat-id-tbl.c, po/stamp-cat-id:
3169 Remove; no longer used by gettext 0.10.39.
3170 * po/ChangeLog: New file.
3172 * doc/Makefile.am (EXTRA_DIST): Add freemanuals.texi.
3173 $(srcdir)/tar.texi: Likewise.
3174 * doc/freemanuals.texi: New file.
3175 * doc/tar.texi (Free Software Needs Free Documentation): New appendix.
3176 `fileds' -> `fields'
3177 * doc/texinfo.tex: Upgrade to version 2001-07-25.07.
3179 * lib/Makefile.am (EXTRA_DIST): Add strtoll.c, strtoimax.c.
3180 (noinst_HEADERS): Add quote.h.
3181 (libtar_a_SOURCES): Add quote.c, xstrtoimax.c.
3183 * lib/exclude.c: Fix typo in '#include <stdint.h>' directive.
3185 * lib/full-write.c, lib/savedir.c: Comment fix.
3187 * lib/pathmax.h: Remove.
3189 * lib/quote.c, lib/quote.h: New files.
3191 * lib/xgetcwd.c: Don't include pathmax.h.
3192 Include stdlib.h and unistd.h if available.
3194 (xmalloc, xstrdup, free): Remove decls.
3195 (xgetcwd): Don't assume sizes fit in unsigned.
3196 Check for overflow when computing sizes.
3197 Simplify reallocation code.
3199 * lib/xmalloc.c: Quote failure tests.
3201 * lib/strtoumax.c, lib/xstrtoimax.c: New files.
3203 * lib/strtoimax.c: Renamed from strtouxmax.c. Make it more
3204 similar to strtol.c.
3205 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
3206 (verify): New macro.
3207 (strtoumax, uintmax_t, strtoull, strtol): Remove.
3208 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
3209 (strtoimax): Renamed from strtoumax. All uses of unsigned values
3210 changed to signed values. Check sizes at compile-time, not
3211 run-time. Prefer strtol to strtoll if both work.
3214 * lib/xstrtol.h (xstrtoimax): New decl.
3216 * m4/Makefile.am (EXTRA_DIST):
3217 Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4,
3218 longlong.m4, xstrtoimax.m4.
3220 * m4/inttypes.m4 (jm_AC_HEADER_INTTYPES_H):
3221 Remove; now done by autoconf.
3222 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with
3223 Use AC_CHECK_TYPE instead of merely looking for the header.
3225 * m4/uintmax_t.m4: Use shorter comment.
3227 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
3228 Quote first arg of AC_DEFUN.
3229 Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they
3230 is needed to parse the include file.
3231 Simplify logic behind the args to AC_REPLACE.
3233 * src/Makefile.am (OMIT_DEPENDENCIES): Remove.
3235 * src/ansi2knr.1, src/ansi2knr.c: Remove; wasn't being used.
3238 Use "Copyright %d" to simplify the translator's job in the future.
3239 Advise translator about circle-C.
3240 * src/tar.c: (decode_options): Likewise.
3241 * tests/genfile.c (main): Likewise.
3243 2001-08-28 Jim Meyering <meyering@lucent.com>
3245 * lib/argmatch.c: Include "quote.h".
3246 (argmatch_invalid): Quote the context.
3248 * lib/dirname.c (dir_name): Fix typo on PC platforms.
3250 * lib/backupfile.c, lib/basename.c, lib/dirname.c, lib/strtoul.c:
3251 Use single-quote for local .h files.
3253 * lib/error.h (__attribute__): Don't depend on __STRICT_ANSI__.
3255 * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Upgrade to recent
3258 * lib/getdate.y (get_date): Initialize tm_isdst to -1 before
3259 invoking mktime the last time.
3261 * lib/pathmax.h: Use #if rather than #ifdef for HAVE_UNISTD_H.
3263 * lib/rename.c: Major rewrite by Volker Borchert to use system
3264 rename function, but to work around problems with trailing
3267 * lib/strtoll.c: New file, from glibc.
3268 * lib/strtoul.c: Update from glibc.
3270 * lib/strtouxmax.c: Renamed from lib/strtoumax.c.
3271 Add support for signed numbers, too.
3272 (strtoul, strtoull): Do not declare if STRTOUXMAX_UNSIGNED
3274 (strtol, strtoll): Declare as needed, if STRTOUXMAX_UNSIGNED is
3276 (strtoumax, uintmax_t, strtoull, strtoul): New macros.
3277 (main): Use generic names in debugging output.
3278 * lib/strtoimax.c: Plus add the following changes of my own:
3279 (main): Use accurate names in debugging output.
3281 * lib/xgetcwd.c (xgetcwd): Use getcwd if glibc 2 or later.
3284 * m4/c-bs-a.m4, m4/check-decl.m4, m4/d-ino.m4, m4/error.m4,
3285 m4/getline.m4, m4/jm-mktime.m4, m4/malloc.m4, m4/mbrtowc.m4,
3286 m4/mbstate_t.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/utimbuf.m4,
3287 m4/utime.m4, m4/utimes.m4:
3288 Quote the first argument in each use of AC_DEFUN.
3290 * m4/getline.m4: Don't use string.h.
3292 * m4/inttypes.m4, m4/longlong.m4, m4/xstrtoimax.m4: New files.
3294 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): @%:@ -> #.
3296 2001-08-27 Paul Eggert <eggert@twinsun.com>
3298 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.20.
3300 The biggest change is the new --exclude semantics and options.
3301 The basic idea was suggested by Gerhard Poul; thanks!
3303 * NEWS: Describe new --exclude semantics and options, and bug fixes.
3304 * README: ignfail.sh fails on some NFS hosts.
3305 * NEWS, README, lib/xstrtol.h: Add copyright notice.
3307 * Makefile.am (ACLOCAL_AMFLAGS): Add -I m4.
3308 (M4DIR, ACINCLUDE_INPUTS, $(srcdir)/acinclude.m4):
3309 Remove; the automake bug has been fixed.
3310 * acinclude.m4: Remove.
3312 * configure.ac: Renamed from configure.in.
3313 (AC_PREREQ): Bump from 2.13 to 2.52.
3314 (ALL_LINGUAS): Add id, tr. Remove ko, as po/ko.po (dated
3315 1997-05-30) has an encoding error.
3316 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf.
3317 (AC_FUNC_FNMATCH): Use AC_CONFIG_LINKS, not AC_LINK_FILES.
3319 * doc/fdl.texi: Update to current GNU version.
3321 * doc/tar.texi: Put leading '*' in direntry.
3322 Accommodate new gfdl sectioning.
3323 New option --recursion (the default) that is the inverse of
3326 New options --anchored, --ignore-case, --wildcards,
3327 --wildcards-match-slash, and their negations (e.g., --no-anchored).
3328 Along with --recursion and --no-recursion, these control how exclude
3329 patterns are interpreted. The default interpretation of exclude
3330 patterns is now --no-anchored --no-ignore-case --recursion
3331 --wildcards --wildcards-match-slash.
3333 * lib/Makefile.am (OMIT_DEPENDENCIES): Remove.
3335 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
3336 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
3337 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
3338 Include if available.
3339 (<xalloc.h>): Include
3340 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
3341 (verify): New macro. Use it to verify that EXCLUDE macros do not
3342 collide with FNM macros.
3343 (struct patopts): New struct.
3344 (struct exclude): Use it, as exclude patterns now come with options.
3345 (new_exclude): Support above changes.
3346 (new_exclude, add_exclude_file):
3347 Initial size must now be a power of two to simplify overflow checking.
3348 (free_exclude, fnmatch_no_wildcards): New function.
3349 (excluded_filename): No longer requires options arg, as the options
3350 are determined by add_exclude. Now returns bool, not int.
3351 (excluded_filename, add_exclude):
3352 Add support for the fancy new exclusion options.
3353 (add_exclude, add_exclude_file): Now takes int options arg.
3354 Check for arithmetic overflow when computing sizes.
3355 (add_exclude_file): xrealloc might modify errno, so don't
3356 realloc until after errno might be used.
3358 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
3360 (free_exclude): New decl.
3361 (add_exclude, add_exclude_file): Now takes int options arg.
3362 (excluded_filename): No longer requires options arg, as the options
3363 are determined by add_exclude. Now returns bool, not int.
3365 * lib/prepargs.c: Include <string.h>; required for C99 since
3369 BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.
3371 * lib/xstrtol.h (_DECLARE_XSTRTOL): Improve quality of
3372 diagnostic for LONGINT_INVALID_SUFFIX_CHAR.
3374 * m4/Makefile.am (EXTRA_DIST): Add check-decl.m4, mbrtowc.m4.
3375 Remove inttypes_h.m4, largefile.m4, mktime.m4.
3377 * m4/inttypes_h.m4, m4/largefile.m4, m4/mktime.m4: Remove;
3378 subsumed by Autoconf 2.50.
3380 * m4/error.m4: Upgrade to serial 2.
3382 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Upgrade to serial 4, but
3383 remove test for GNU C library. It's not correct, as some
3384 older glibcs are buggy.
3386 * m4/getline.m4, m4/malloc.m4: Upgrade to serial 4.
3388 * m4/prereq.m4: Upgrade to serial 20, but then:
3389 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
3390 (jm_PREREQ_EXCLUDE): New macro.
3391 (jm_PREREQ_HUMAN): Remove jm_AC_HEADER_INTTYPES_H, as it is subsumed
3394 * m4/realloc.m4: Upgrade to serial 4.
3396 * m4/strerror_r.m4: Revert to serial 1002.
3398 * m4/uintmax_t.m4: Upgrade to autoconf 2.5x.
3400 * m4/utimes.m4: Upgrade to latest version (still "serial 3").
3402 * m4/xstrtoumax.m4: Upgrade to serial 3, but then:
3403 (jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as
3404 it is now subsumed by autoconf. Add inttypes.h.
3406 * po/cs.po, po/da.po, po/de.po, po/es.po, po/et.po, po/fr.po,
3407 po/it.po, po/pl.po, po/sl.po, po/sv.po: Sync with translation project.
3409 * src/buffer.c (new_volume): Stop if the script exits with an error.
3411 * src/common.h (excluded_with_slash, excluded_without_slash):
3412 Remove, replacing by:
3413 (excluded): New decl.
3414 (link_error): New decl.
3415 (excluded_name): Now returns bool.
3418 (struct delayed_symlinks, extract_archive, apply_delayed_symlinks):
3419 Support hard links to symbolic links.
3421 (struct delayed_symlink): Remove 'names' member, replacing it with
3422 'sources' and 'target' member. All uses changed.
3424 (struct string_list): New type.
3426 (delayed_set_stat, extract_archive): Use offsetof when computing sizes
3427 for struct hack; this avoids wasted space in some cases.
3429 (extract_archive): Fix test for absolute pathnames and/or "..".
3430 Use link_error to report errors for links.
3431 Remove redundant trailing '/' at "really_dir", for all uses, not
3432 just before invoking mkdir.
3433 If overwriting old files, do not worry so much about existing
3435 Fix mode computation in the case where the directory exists.
3437 (apply_delayed_symlinks): If we can't make a hard link to a symbolic
3438 link, make a copy of the symbolic link.
3440 * src/incremen.c (get_directory_contents):
3441 If ignore_failed_read_option, only warn about
3444 * src/list.c (from_header): Do not issue a diagnostic if TYPE is zero.
3445 However, check for error even for '-' or '+' case.
3447 (print_header): Try parsing uids and gids as unsigned integers first,
3448 and as a uid_t or gid_t only if that fails. This adds support for
3449 listing positive uids and gids that are greater than UID_MAX and
3452 * src/misc.c (link_error): New function.
3454 * src/names.c (collect_and_sort_names):
3455 If ignore_failed_read_option, only warn about
3458 (excluded_name): Now returns bool. Simplify, as the fancy
3459 features are now all in excluded_filename.
3461 * src/rtapelib.c (base_name): Remove decl, as system.h now
3464 * src/system.h: Include stddef.h if available.
3465 (offsetof): Declare if stddef.h doesn't.
3467 Include <dirname.h>.
3468 (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now defined by dirname.h.
3470 * src/tar.c (ANCHORED_OPTION, IGNORE_CASE_OPTION,
3471 NO_ANCHORED_OPTION, NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION,
3472 NO_WILDCARDS_MATCH_SLASH_OPTION, WILDCARDS_OPTION,
3473 WILDCARDS_MATCH_SLASH_OPTION):
3476 (long_options, usage, decode_options): Add support for --anchored,
3477 --ignore-case, --no-anchored, --no-ignore-case, --no-wildcards,
3478 --no-wildcards-match-slash, --recursion, --wildcards,
3479 --wildcards-match-slash.
3481 (decode_options): Implement the new way of interpreting exclude
3484 (usage): --newer-mtime takes a DATE operand. DATE may be a file name.
3486 (OPTION_STRING, decode_options): Add -I, -y. Currently these options
3487 just print error messages suggesting alternatives.
3489 (add_filtered_exclude): Remove.
3491 * tests/Makefile.am (TESTS): Alphabetize, except put version.sh first.
3493 * tests/extrac04.sh (out): Remove
3494 directory/subdirectory/file1, as the new semantics for
3495 --exclude exclude it.
3497 * tests/genfile.c (main): Don't use non-ASCII char in msgid.
3499 2001-08-12 Paul Eggert <eggert@twinsun.com>
3501 * lib/addext.c (<errno.h>): Include.
3502 (errno): Declare if not defined.
3503 (addext): Work correctly on the Hurd, where pathconf returns -1 and
3504 leaves errno alone, because there is no limit. Also, work even if
3505 size_t is narrower than long.
3507 2001-07-08 Paul Eggert <eggert@twinsun.com>
3509 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
3511 2001-05-10 Paul Eggert <eggert@twinsun.com>
3513 * lib/addext.c (ISSLASH, base_name): Remove decls; now in dirname.h.
3514 Include <backupfile.h> and <dirname.h> after size_t is defined.
3515 (addext): Use base_len to trim redundant trailing slashes instead of
3518 * lib/backupfile.c (ISSLASH, base_name):
3519 Remove decls; now in dirname.h.
3520 Include <argmatch.h>, <backupfile.h>, <dirname.h> after size_t
3522 (find_backup_file_name): Rename locals to avoid new functions.
3523 Use base_len instead of rolling it ourselves.
3524 Work even if dirlen is 0.
3525 Use a dir of '.' if given the empty string.
3528 Do not include <stdio.h>, <assert.h>; no longer needed.
3529 (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
3530 Include <string.h>, <dirname.h>.
3531 (base_name): Allow file names ending in slashes, other than names
3532 that are all slashes. In this case, return the basename followed
3535 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
3536 (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
3537 (dir_len): Renamed from dirlen.
3538 All callers changed.
3540 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
3542 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
3544 2001-02-16 Paul Eggert <eggert@twinsun.com>
3546 * lib/quotearg.c (mbrtowc, mbrtowc, mbsinit):
3547 Do not declare or define if HAVE_MBRTOWC,
3548 since the test for HAVE_MBRTOWC now requires proper declarations.
3550 * lib/alloca.c (malloc): Undef before defining.
3552 2001-02-13 Paul Eggert <eggert@twinsun.com>
3554 * src/compare.c (read_and_process): Use off_t for size.
3555 From Maciej W. Rozycki.
3557 2001-01-26 Paul Eggert <eggert@twinsun.com>
3559 * lib/quotearg.c: Include stddef.h. From Jim Meyering.
3561 2001-01-12 Paul Eggert <eggert@twinsun.com>
3563 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.19.
3565 * lib/savedir.h (savedir): Remove size arg.
3567 * doc/tar.texi: Add @setchapternewpage odd.
3568 Remove -I as an alias for -T, for now.
3570 Update copyright. Remove "Published by".
3571 Dates beginning with / or . are taken to be file names.
3573 * src/tar.c (<time.h>): Do not include;
3574 (time): Do not declare.
3575 (usage): Remove -I as an alias for -T.
3576 (OPTION_STRING): Remove -I.
3577 (decode_options): Dates that look like an absolute path name,
3578 or that start with '.', are presumed to be file names whose
3580 Remove 'I' as an aliase for 'T'.
3583 * src/extract.c (<time.h>): Do not include; system.h now does this.
3584 (make_directories): Skip filesystem prefixes.
3585 Don't assume '/' is the only separator.
3586 (extract_sparse_file): Use new full_write semantics.
3587 On write error, return instead of invoking skip_file.
3588 Do not free sparsearray; caller does this now.
3589 (apply_nonancestor_delayed_set_stat): Do not assume '/' is the only
3591 (extract_archive): Don't assume file name lengths fit in int.
3592 Report what got stripped from member name; it might be more than '/'.
3593 Use new full_write semantics.
3594 Do not pass redundant trailing "/" to mkdir, as POSIX does not allow
3596 Do not report mkdir error if old_files_option == KEEP_OLD_FILES.
3598 * src/buffer.c (<time.h>): Do not include; system.h now does this.
3599 (time): Remove decl; likewise.
3600 (child_open_for_uncompress): Use new full_write semantics.
3601 (flush_write): Use ISSLASH instead of testing for '/'.
3602 (flush_read): Likewise.
3604 * src/rmt.h (_remdev): Look for / anywhere in Path.
3606 * src/misc.c (contains_dot_dot): Skip filesystem prefix.
3607 Don't assume '/' is the only separator.
3608 (safer_rmdir): Don't assume '/' is the only separator.
3610 * src/compare.c (diff_archive): Don't assume '/' is the only separator.
3612 * lib/dirname.h (dirlen): New decl.
3614 * src/incremen.c (get_directory_contents):
3615 Remove path_size arg; all callers changed.
3616 Don't assume '/' is the only directory separator.
3617 (gnu_restore): Work even if file name length doesn't fit in int.
3619 * lib/addext.c (ISSLASH): New macro.
3620 (addext): Trim any redundant trailing slashes.
3622 * src/names.c (name_next):
3623 Don't assume '/' is the only directory separator.
3624 (namelist_match): Likewise.
3625 (add_hierarchy_to_namelist): Remove dirsize arg.
3626 Do not assume '/' is the only directory separator.
3627 (new_name): Likewise.
3629 * lib/Makefile.am (noinst_HEADERS): Add dirname.h, full-write.h.
3630 (libtar_a_SOURCES): Add dirname.c.
3632 * src/create.c (relativize):
3633 New function, with much of old start_header's guts.
3634 Handle filesystem prefixes.
3635 (start_header): Use this new function.
3636 (init_sparsearray): Don't bother to zero out the new array;
3638 (deal_with_sparse): Fix array allocation bug.
3639 (create_archive): Don't assume '/' is the only separator.
3640 (dump_file): Likewise.
3641 Don't worry about leading / in symlink targets.
3643 * lib/savedir.c (savedir):
3644 Remove size arg; it wasn't portable. All callers changed.
3646 * lib/utime.c (utime_null): Adjust to new full_write convention.
3648 * configure.in (YACC): Avoid portability problem with Ultrix sh.
3650 * lib/backupfile.c: Include <dirname.h>.
3651 (ISSLASH): New macro.
3652 (find_backup_file_name): Use dirlen to calculate directory lengths.
3653 (max_backup_version): Strip redundant trailing slashes.
3655 * src/common.h: Include <full-write.h>.
3656 (get_directory_contents): No longer has size arg.
3657 (gnu_restore): Arg is size_t, not int.
3659 * src/system.h: Include <time.h>.
3660 (time): Declare if not defined.
3662 * lib/full-write.c: Include full-write.h, not safe-read.h.
3663 full_write returns size_t, with short writes meaning failure.
3664 All callers changed.
3666 * src/rtapelib.c: Include full-write.h.
3668 * src/rmt.c: Include full-write.h.
3669 (main): Update copyright.
3671 * doc/getdate.texi: Mention that only English is supported.
3672 Show how to use "date" so that the output is acceptable to getdate.
3673 Mention Z as an abbreviation for UTC.
3675 * lib/full-write.h: New file.
3677 * src/list.c: system.h now does time.h stuff.
3680 Use HAVE_STDLIB_H, not STDC_HEADERS, to decide whether to include
3682 Do not include string.h, strings.h, or assert.h; no longer needed.
3683 (strrchr, memrchr, malloc): Remove decls; no longer needed.
3685 (base_name): New decl.
3686 (BACKSLASH_IS_PATH_SEPARATOR): Remove.
3687 (dir_name_r): Remove.
3688 (dirlen): New function.
3689 (dir_name): Use dirlen instead of dir_name_r.
3690 (<string.h>, <strings.h>): Include only if test program.
3691 (main): Use "return 0", not "exit (0)".
3693 2000-12-08 Paul Eggert <eggert@twinsun.com>
3695 * lib/dirname.h: New file.
3697 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
3699 * lib/fnmatch.c: Do not comment out all the code if we are using
3700 the GNU C library, because in some cases we are replacing buggy
3701 code in the GNU C library itself.
3703 2000-10-30 Paul Eggert <eggert@twinsun.com>
3705 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
3707 2000-10-29 Paul Eggert <eggert@twinsun.com>
3709 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.18.
3711 * src/tar.c: Include <fnmatch.h>, for FNM_LEADING_DIR.
3713 2000-10-28 Paul Eggert <eggert@twinsun.com>
3715 * doc/tar.texi: --no-recursion now applies to extraction, too.
3716 * src/create.c (dump_file): no_recurse_option -> ! recursion_option
3717 * src/names.c (namelist_match, excluded_name):
3718 Do not match subfiles of a directory
3719 if --no-recursion is specified.
3720 * src/tar.c (NO_RECURSE_OPTION): Remove.
3721 (long_options): Have getopt set the --no-recursion flag.
3722 (decode_options): Initialize recursion_option to FNM_LEADING_DIR.
3723 Remove case for NO_RECURSE_OPTION.
3724 * src/common.h (recursion_option):
3725 Renamed from no_recurse_option, with sense
3726 negated, and with FNM_LEADING_DIR being the nonzero value.
3728 * names.c (namelist_match): New function.
3729 (name_match, name_scan): Use it to eliminate duplicate code.
3730 (names_notfound): Remove special case for Amiga.
3732 2000-10-27 Paul Eggert <eggert@twinsun.com>
3734 * src/misc.c (read_error_details, read_warn_details,
3735 read_fatal_details): Don't assume size_t is unsigned long.
3737 * src/buffer.c (flush_read): If read_full_records_option, try to
3738 fill the input buffer, as --delete -f - needs this.
3740 2000-10-24 Paul Eggert <eggert@twinsun.com>
3742 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Port to autoconf 2.13.
3744 * src/buffer.c (check_label_pattern):
3745 Make sure header name is a string before
3746 passing it to fnmatch.
3747 (init_volume_number): Check for global_volno overflow.
3748 (new_volume): Check for global_volno overflow.
3750 * src/tar.c (decode_options):
3751 Check that volume label is not too long to overflow
3752 name in tar header block.
3754 * Makefile.am (EXTRA_DIST): Remove rebox.el.
3756 * configure.in (HAVE_DECL_STRERROR_R): Remove our handwritten code.
3757 (AC_FUNC_STRERROR_R): Use this instead.
3759 2000-10-23 Paul Eggert <eggert@twinsun.com>
3761 * src/extract.c: Include <time.h>, since we invoke "time".
3763 * lib/prepargs.c (prepend_default_options):
3764 Don't use NULL, for portability.
3766 * m4/fnmatch.m4: Add "working" to message.
3768 * src/names.c: (_GNU_SOURCE): Remove; autoconf now does this.
3770 (getpwuid, getgrgid): Declare only if system headers don't.
3771 (gid_to_gname): Don't invoke setgrent.
3772 (namelist): Now static, not global.
3773 (nametail): New var. All uses of namelast changed to use
3774 nametail, with one extra level of indirection.
3775 (name_gather): Use memcpy instead of strncpy + assignment of NUL.
3776 (name_match): Set nametail too, when setting namelist to null.
3777 (add_hierarchy_to_namelist): Change type of dir arg from char * to
3778 struct name *, so that we don't have to look up the name again
3779 here. Get change_dir from dir rather than as a separate arg. Add
3780 dirsize arg, and pass it along to get_directory_contents. Remove
3781 unnecessary check of directory type.
3782 (new_name): Do not append a slash if PATH already ends in one.
3783 (avoided_names, struct avoided_name): Remove.
3784 (avoided_name_table): New var, replacing avoided_names.
3785 (hash_avoided_name, compare_avoided_names): New function.
3786 (add_avoided_name, is_avoided_name): Use hash table rather than
3789 * src/buffer.c (_GNU_SOURCE): Remove; autoconf now does this.
3790 (child_open_for_compress, child_open_for_uncompress,
3791 close_archive): Propagate any failure of the compression process
3793 (open_archive, flush_write, flush_read, close_archive): Do not
3794 allocate an array of size PATH_MAX, as PATH_MAX might be (size_t)
3795 -1. Instead, allocate an array with the size that's needed.
3796 (open_archive): Don't bother checking S_ISCHR of /dev/null.
3797 (backspace_output): Don't try to backspace past start of archive.
3798 (close_archive): Remove special case for DELETE_SUBCOMMAND.
3800 * acconfig.h (_GNU_SOURCE, DEFAULT_ARCHIVE, DEFAULT_BLOCKING,
3801 DENSITY_LETTER, DEVICE_PREFIX, EMUL_OPEN3, HAVE_GETGRGID,
3802 HAVE_GETPWUID, HAVE_MKNOD, HAVE_RTAPELIB, HAVE_ST_FSTYPE_STRING,
3803 HAVE_UNION_WAIT, HAVE_UTIME_H, HAVE_VALLOC, MTIO_CHECK_FIELD, PACKAGE,
3804 PROTOTYPES, REMOTE_SHELL, STD_INC_PATH, VERSION, WITH_CATALOGS,
3805 WITH_DMALLOC, WITH_REGEX):
3806 Remove; now generated automatically.
3808 * configure.in (_GNU_SOURCE): Define to empty, not 1, for
3809 compatibility for glibc fragments.
3810 (_GNU_SOURCE, HAVE_UTIME_H, MTIO_CHECK_FIELD,
3811 HAVE_ST_FSTYPE_STRING, HAVE_MKNOD, REMOTE_SHELL, DENSITY_LETTER,
3812 DEVICE_PREFIX, DEFAULT_ARCHIVE, DEFAULT_BLOCKING): Add comment so
3813 that we needn't put an entry into acconfig.h.
3814 (ALL_LINGUAS): Add da.
3815 (AC_C_BACKSLASH_A): Remove; jm_PREREQ_QUOTEARG now does this.
3816 (AC_CHECK_HEADERS): Add stdbool.h (for hash.h users), wctype.h
3818 (AC_MBSTATE_T): Add.
3819 (RMT): Append $(EXEEXT).
3820 (HAVE_GETGRGID, HAVE_GETPWUID, pe_AC_TYPE_SIGNED_CHAR): Remove.
3821 (HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
3822 HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
3823 HAVE_DECL_STRTOULL, HAVE_DECL_STRERROR_R): New macros.
3824 (jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, jm_PREREQ_QUOTEARG): Add.
3825 (AC_REPLACE_FUNCS): Remove execlp; no longer needed.
3826 (AC_CHECK_FUNCS): Add clock_gettime; AC_SEARCH_LIBS wasn't enough.
3827 Remove mbrtowc; jm_PREREQ_QUOTEARG now does this.
3828 (EMUL_OPEN3): Remove; no longer needed.
3829 (DENSITY_LETTER, DEVICE_PREFIX): Simplify m4 quoting.
3831 * m4/fnmatch.m4 (AC_FUNC_FNMATCH): Detect d*/*1 vs d/s/1 bug.
3833 * src/common.h: Do not include basename.h.
3834 * src/rtapelib.c (base_name): Do not include basename.h;
3835 declare base_name instead.
3837 * lib/basename.h, lib/execlp.c, lib/getpagesize.h, lib/mkdir.c:
3839 * lib/getstr.c, lib/getstr.h, lib/hash.h, lib/hash.h, lib/prepargs.c,
3840 lib/prepargs.h, lib/savedir.c, lib/savedir.h: New files.
3841 * lib/Makefile.am (EXTRA_DIST, noinst_HEADERS, libtar_a_SOURCES):
3842 Adjust to the above changes.
3844 * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove ../src/ansi2knr.
3846 * src/open3.c: Remove.
3848 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
3849 (tar_SOURCES): Remove open3.c.
3850 (INCLUDES): Remove -I.., as automake does that.
3851 (OMIT_DEPENDENCIES): ../lib/fnmatch.h -> fnmatch.h. Add localedir.h.
3853 The following changes are to put LOCALEDIR into localedir.h instead
3854 of passing it on the command line.
3856 (DISTCLEANFILES): New macro.
3857 (localedir.h): New rule.
3858 (rmt.o tar.o): Now depend on localedir.h.
3860 * tests/delete02.sh, tests/extrac04.sh: New files.
3862 * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
3863 (TESTS): Add extrac04.sh, and restore delete02.sh.
3864 (DEFS): Remove; LOCALEDIR is now done via localedir.h.
3865 (INCLUDES): Remove -I.. as automake does this now.
3867 * src/rtapelib.c (rexec): Don't declare unless using it.
3868 (do_command): Simplify signal-handling code slightly.
3870 * src/delete.c (blocks_needed): Remove. All uses changed to use
3871 blocking_factor - new_blocks.
3872 (acting_as_filter): New var.
3873 (write_record, delete_archive_members): Use acting_as_filter
3874 rather than archive == STDIN_FILENO to detect whether we're acting
3875 as a filter, as open can return STDIN_FILENO in some cases.
3876 (delete_archive_members): Ignore zero blocks if
3877 ignore_zeros_option is nonzero. Fix bug that messed up last
3878 output block: write_eot can't be used here, as it gets confused
3879 when the input is at end of file.
3881 * src/compare.c (diff_archive): Do not impose an arbitrary limit on
3882 symbolic link contents length. Pass directory size to
3883 get_directory_contents.
3885 * m4/decl.m4, m4/error.m4, m4/mbstate_t.m4, m4/prereq.m4,
3886 m4/strerror_r.m4: New files.
3887 * m4/signedchar.m4: Remove this file.
3888 * Makefile.am (ACINCLUDE_INPUTS): Adjust to above changes.
3889 * m4/Makefile.am (EXTRA_DIST): Likewise.
3891 * Makefile.am (DISTCLEANFILES): Add intl/libintl.h.
3893 * po/da.po: New translation file.
3895 * src/mangle.c (extract_mangle):
3896 Fix diagnostic with wrong number of %s'es.
3898 * lib/fnmatch.c (fnmatch):
3899 Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
3900 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
3902 * lib/full-write.c (full_write): Some buggy drivers return 0 when you
3903 fall off a device's end. Detect this.
3905 * src/system.h (IN_CTYPE_DOMAIN): Renamed from CTYPE_DOMAIN. All
3907 (open): Remove macro; we no longer support EMUL_OPEN3. Do not
3908 include <pathmax.h> and directory include files like <dirent.h>;
3909 no longer used. Include <savedir.h> instead.
3910 (closedir, signed_char): remove macro; no longer used.
3911 (bool, false, true): Include <stdbool.h> if you have the include
3912 file, otherwise define.
3915 (is_dot_or_dotdot, closedir_error, closedir_warn, opendir_error,
3916 opendir_warn, readdir_error): Remove; no longer needed.
3917 (safer_rmdir): Strip leading ./ (or .// or ./// or ././ or etc.)
3918 before deciding whether we're trying to remove ".".
3919 (remove_any_file): Try unlink first if we are not root. Use
3920 savedir when recursively removing directories, to avoid exhausting
3922 (savedir_error, savedir_warn, symlink_error): New functions.
3924 * src/list.c: (read_and): Do not invoke
3925 apply_nonancestor_delayed_set_stat; DO_SOMETHING is now
3926 responsible for that. Do not invoke apply_delayed_set_stat; our
3927 caller is now responsible for that.
3928 (read_header): Use signed char instead of signed_char. Prevent
3929 later references to current_header from mistakenly treating it as
3931 (from_header): Quote invalid base-64 strings in diagnostics.
3932 (time_from_header): Do not warn about future timestamps in
3933 archive; check_time now does that.
3934 (print_header): Quote unknown file types.
3935 (skip_member): New function, replacing skip_extended_headers and
3936 now skipping the whole member instead of just the extended
3937 headers. All callers changed. This makes the code handle
3938 extended headers uniformly, and fixes some bugs.
3940 * src/update.c (update_archive): Use skip_member.
3942 * src/extract.c (we_are_root): Now global.
3943 (struct delayed_symlink): New type.
3944 (delayed_symlink_head): New var.
3945 (extr_init, fatal_exit): Invoke extract_finish on fatal errors,
3946 not apply_delayed_set_stat.
3947 (set_mode, set_stat): Pointer args are now const pointers.
3948 (check_time): New function.
3949 (set_stat): Warn if setting a file's timestamp to be the future.
3950 (make_directories): Do not save and restore errno.
3951 (maybe_recoverable): Set errno to ENOENT if we cannot make missing
3952 intermediate directories.
3953 (extract_archive): Invoke apply_nonancestor_delayed_set_stat here,
3954 not in caller. Extract potentially dangerous symbolic links more
3955 carefully, deferring their creation until the end, and using a
3956 regular file placeholder in the meantime. Do not remove trailing
3957 / and /. from file names. Do not bother checking for ".." when
3958 checking whether a directory loops back on itself, as loopbacks
3959 can occur with symlinks too. Also, in that case, do not bother
3960 saving and restoring errno; just set it to EEXIST.
3961 (apply_nonancestor_delayed_set_stat): A prefix is a potential
3962 ancestor if it ends in slash too (as well as ending in a char just
3964 (apply_delayed_set_stat): Remove.
3965 (apply_delayed_symlinks, extract_finish): New functions.
3967 * doc/fdl.texi: New file.
3968 * doc/Makefile.am (EXTRA_DIST): Add fdl.texi.
3969 ($(srcdir)/tar.info): Add fdl.texi. Invoke makeinfo with --no-split.
3970 * doc/tar.texi: Add Free Documentation License. New section
3971 "Overwrite Old Files", and revamp that section to make it easier to
3972 follow. "tar" -> "GNU tar" where appropriate. Migrate getdate
3973 documentation into getdate.texi. Fix several minor typos. Describe
3974 TAR_OPTIONS. Describe incompatibility between incremental backups and
3975 --atime-preserve. Describe incompatibility between --verify and other
3976 options. Mention that tar normally removes symbolic links rather than
3977 following them, when extracting a file of the same name.
3979 * THANKS: Add gpoul. Change skip's address.
3981 * po/POTFILES.in: Add lib/human.c.
3983 * src/common.h (namelist, namelast): Remove decls.
3984 (we_are_root, extract_finish, skip_member, savedir_error,
3985 savedir_warn, symlink_error, gnu_list_name): New decls.
3986 (apply_delayed_set_stat, apply_nonancestor_delayed_set_stat,
3987 skip_extended_headers, is_dot_or_dotdot, closedir_error,
3988 closedir_warn, opendir_error, opendir_warn, readdir_error,
3989 readdir_warn): Remove decls.
3990 (get_directory_contents): New off_t arg.
3991 (addname): Now returns struct name *.
3993 * src/tar.h, tests/genfile.c: Fix comments.
3995 * src/create.c: Include hash.h.
3996 (gnu_list_name): Remove decl.
3997 (struct link): Remove "next" member.
3999 (start_header): Say "leading `FOO'" rather than "`FOO' prefix" for
4000 consistency with other diagnostics.
4001 (deal_with_sparse): Check for I/O error when closing the file.
4002 (create_archive): Do not allocate an array of size PATH_MAX, as
4003 PATH_MAX might be (size_t) -1. Instead, allocate an array with
4004 the size that's needed.
4005 (hash_link, compare_links): New functions.
4006 (dump_file): Do not exhaust open file descriptors when descending
4007 deeply into a directory, by using savedir rather than
4008 opendir/readdir. Do not zero-fill the name buffer unnecessarily.
4009 Hash the set of links already created, instead of using a linked
4010 list. Fix some bugs in outputting sparse files which caused the
4011 sparse tables to be incorrect. When a file unexpectedly shrinks,
4012 output zeros rather than garbage. Do not allocate an array of
4013 size PATH_MAX, as PATH_MAX might be (size_t) -1. Instead,
4014 allocate an array with the size that's needed.
4016 * src/incremen.c: Include hash.h.
4017 (struct directory): Remove "next", "dir_text". Change "name" to
4018 be char[1] with struct hack, not const char *. Add "found".
4019 (directory_list): Remove. Replaced by directory_table.
4020 (directory_table): New var.
4021 (nfs_string): Renamed from nfs.
4022 (hash_directory, compare_directories): New functions.
4023 (note_directory): Now returns struct directory *. First arg is
4024 now const pointer. struct stat arg is now dev_t, ino_t, nfs.
4025 Remove text arg. New "found" arg, basically corresponding to the
4026 old text arg not being null. All callers changed.
4027 (note_directory, find_directory): Use hash table rather than
4029 (get_directory_contents): New arg "device". Use savedir to do the
4030 hard work. Save the nfs-ness of stat_data, since it might change
4031 under us. Use note_directory instead of find_directory to save
4032 some work. When adding an "A" record, do it with
4033 add_to_accumulator instead of cheating with strcat.
4034 (read_directory_file): Use "+" flag before device to indicate
4035 whether it was NFS. Fix typo in checking for strtoul error.
4036 (write_directory_file_entry): New function.
4037 (write_directory_file): Use it, and use the hash routines to
4038 traverse the directory table.
4039 (gnu_restore): Use savedir rather than opendir/readdir.
4041 * src/tar.c: Include localedir.h, prepargs.h.
4042 (long_options): Now static.
4043 (long_options, usage, decode_options): -j is now short for
4044 --bzip2, and -I is now an alias for -T.
4045 (decode_options, main): argv is not const pointer now.
4046 (decode_options): Invoke prepend_default_options to support
4047 TAR_OPTIONS. In diagnostic, mention the string that was the
4048 invalid blocking factor, tape length, group, owner, or record
4049 size. --delete is no longer incompatible with -f -, undoing
4051 (main): Invoke extract_finish at end of extraction.
4053 * src/rmt.c: Include localedir.h.
4054 (main): Update copyright date to 2000.
4056 * doc/getdate.texi: New file, taken from fileutils 4.0.27, with the
4057 following changes: Use @sc where appropriate. Document the ranges of
4058 supported times more precisely. Add Eggert to getdate authors.
4059 Document old Latin 12m/12pm tradition. Remove list of alphabetic time
4060 zone names, as it wasn't correct and people shouldn't be relying on it
4061 anyway. Relative items also account for non-DST adjustments. Fix
4064 * lib/prepargs.c, lib/prepargs.h, tests/extrac04.sh: New file.
4066 * tests/ignfail.sh: opendir -> savedir in diagnostics.
4068 * tests/preset.in: Set LANGUAGE to the empty string, for some
4071 2000-10-20 Paul Eggert <eggert@twinsun.com>
4073 * m4/fnmatch.m4: Mention the GNU C library.
4075 2000-10-19 Paul Eggert <eggert@twinsun.com>
4077 * m4/fnmatch.m4: Add a couple more test cases to catch bugs in
4080 2000-10-17 Paul Eggert <eggert@twinsun.com>
4082 * lib/human.c (<limits.h>): Do not include; human.h does it if needed.
4085 * lib/human.h (<limits.h>): Include if HAVE_LIMITS_H.
4086 (CHAR_BIT): Define if not defined.
4088 2000-09-09 Paul Eggert <eggert@twinsun.com>
4090 * lib/quotearg.c: From fileutils: rename ISASCII to IN_CTYPE_DOMAIN.
4092 2000-08-07 Paul Eggert <eggert@twinsun.com>
4094 * lib/xmalloc.c: Memory exhausted -> memory exhausted
4096 * lib/xalloc.h (xalloc_msg_memory_exhausted):
4097 change to array from char *.
4099 2000-08-06 Paul Eggert <eggert@twinsun.com>
4101 * m4/mbstate_t.m4: Define mbstate_t to be int, not char, for
4102 compatibility with glibc 2.1.3 strftime.c.
4104 2000-07-31 Paul Eggert <eggert@twinsun.com>
4106 * lib/quotearg.c (quotearg_n_options):
4107 Don't make the initial slot vector a constant,
4108 since it might get modified.
4110 * lib/quotearg.c: Add support for more than one preallocated slot.
4112 2000-07-30 Paul Eggert <eggert@twinsun.com>
4114 * lib/quotearg.c (quotearg_n_options):
4115 Preallocate a slot 0 buffer, so that the caller
4116 can always quote one small component of a "memory exhausted" message
4119 2000-07-23 Paul Eggert <eggert@twinsun.com>
4122 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), so that
4123 mbstate_t is always defined.
4125 Do not inspect MB_LEN_MAX, since it's incorrectly defined to be 1 in
4126 some GCC installations, and this configuration error is likely to be
4129 2000-07-22 Paul Eggert <eggert@twinsun.com>
4132 When the system forces us to redefine mbstate_t, shadow its mbsinit
4133 function. From Bruno Haible.
4135 2000-07-14 Paul Eggert <eggert@twinsun.com>
4137 * lib/xmalloc.c: Simplify exhausted message.
4139 * lib/quotearg.h: Update copyright date; from Jim Meyering.
4141 2000-07-13 Paul Eggert <eggert@twinsun.com>
4143 * lib/quotearg.h (enum quoting style):
4144 New constant clocale_quoting_style.
4147 (quoting_style_args, quoting_style_vals, quotearg_buffer_restyled):
4148 Add support for clocale_quoting_style, undoing previous change to
4149 locale_quoting_style.
4151 2000-07-10 Paul Eggert <eggert@twinsun.com>
4154 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX,
4155 since otherwise we don't need it.
4156 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
4157 since we don't do multibytes in that case.
4158 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
4159 invoke multibyte primitives.
4161 * m4/mbstate_t.m4 (AC_MBSTATE_T):
4162 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
4163 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
4164 and mbstate_t, to a single-part test that simply defines mbstate_t.
4166 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
4167 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
4168 to decide whether to define the BeOS workaround macro;
4169 this adjusts to the change to AC_MBSTATE_T.
4171 * m4/strerror_r.m4: New file.
4173 2000-07-05 Paul Eggert <eggert@twinsun.com>
4175 * lib/quotearg.c: Use double-quote to quote.
4177 * lib/quotearg.c (N_): New macro.
4178 (gettext_default): New function.
4179 (quotearg_buffer_restyled): Use gettext_default ("{LEFT QUOTATION MARK}",
4180 "\"") for left quote, and gettext_default ("{RIGHT QUOTATION MARK}", "\"")
4183 * lib/quotearg.c (struct quoting_options):
4184 Simplify quote_these_too dimension.
4185 From Bruno Haible <haible@clisp.cons.org>.
4187 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT):
4188 Test for mbstate_t only if the test
4189 for an object-type mbstate_t fails.
4191 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
4193 2000-07-03 Paul Eggert <eggert@twinsun.com>
4195 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
4196 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
4198 * lib/quotearg.c (mbrtowc):
4199 Assign to *pwc, and return 1 only if result is nonzero.
4200 (iswprint): Define to ISPRINT if we are substituting our own mbrtowc.
4202 2000-07-02 Paul Eggert <eggert@twinsun.com>
4204 * lib/quotearg.c (mbstate_t):
4205 Do not define; it should be defined with AC_CHECK_TYPE.
4207 2000-06-26 Paul Eggert <eggert@twinsun.com>
4209 * m4/mbstate_t.m4: Include stdio.h before wchar.h, to work around
4210 a bug in glibc 2.1.3.
4212 * lib/xmalloc.c: Fix inaccurate comment for xrealloc.
4214 2000-06-19 Paul Eggert <eggert@twinsun.com>
4216 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
4217 inclusion of wctype.h to work around solaris2.6 namespace pollution.
4218 (ISPRINT): Likewise.
4219 Reported by Tom Tromey.
4221 2000-06-15 Paul Eggert <eggert@twinsun.com>
4223 * lib/human.c (adjust_value): New function.
4224 (human_readable_inexact): Apply rounding style even when printing
4227 * lib/human.c: Avoid shadowing warnings.
4230 2000-06-14 Paul Eggert <eggert@twinsun.com>
4232 * lib/human.c (human_readable_inexact): Allow an input block size
4233 that is not a multiple of the output block size, and vice versa.
4235 * lib/getdate.y (get_date): Apply relative times after time zone
4236 indicator, not before.
4238 2000-05-31 Paul Eggert <eggert@twinsun.com>
4240 * m4/largefile.m4: Rewrite so that we don't need to run getconf,
4241 and thus don't need AC_CANONICAL_HOST.
4243 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
4244 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
4245 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
4246 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY. All uses
4247 changed. Instead of inspecting the output of getconf, try to
4248 compile the test program without and with the macro definition.
4249 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check for
4250 getconf. Instead, check for the needed flags by compiling test
4253 * configure.in (AC_CANONICAL_HOST): Remove; the largefile stuff no
4255 * config.guess, config.sub: Remove these files, for similar reasons.
4257 2000-05-03 Paul Eggert <eggert@twinsun.com>
4259 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be
4260 500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3
4261 bug. This avoids a clash when files like regex.c that define
4264 2000-05-02 Paul Eggert <eggert@twinsun.com>
4266 * m4/largefile.m4 (AC_SYS_LARGEFILE):
4267 Define _GNU_SOURCE if this is needed to make
4268 ftello visible (e.g. glibc 2.1.3). Use compile-time test, rather than
4269 inspecting host and OS, to decide whether to define _LARGEFILE_SOURCE.
4271 * lib/quotearg.c (mbrtowc, mbstat_t):
4272 Add definitions if !HAVE_MBSTATE_T_OBJECT.
4273 (<wctype.h>): Include if HAVE_WCTYPE_H.
4274 (iswprint): Define to 1 if we lack it
4276 2000-04-18 Paul Eggert <eggert@twinsun.com>
4278 * m4/mbstate_t.m4: New file.
4280 2000-04-17 Bruno Haible <haible@clisp.cons.org>
4282 * tests/ignfail.sh: Test for uid 0 along with user "root".
4284 2000-04-05 Paul Eggert <eggert@twinsun.com>
4286 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS):
4287 Don't use -n32 on IRIX if the installer said
4290 2000-02-28 Paul Eggert <eggert@twinsun.com>
4292 * lib/quotearg.c (ALERT_CHAR): New macro.
4293 (quotearg_buffer_restyled): Use it.
4295 2000-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4297 * src/list.c (tartime): Fix off-by-one error when copying year if
4300 2000-02-18 Paul Eggert <eggert@twinsun.com>
4302 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
4303 (textint): New typedef.
4304 (parser_control): Changed from struct parser_control to typedef
4305 (for consistency). Member year changed from int to textint. All
4307 (YYSTYPE): Removed; replaced by %union with int and textint
4309 (tID): Removed; not used.
4310 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE,
4311 tMERIDIAN, tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER,
4312 tUNUMBER, tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
4313 (tSNUMBER, tUNUMBER): Now of type <textintval>.
4314 (date, number, to_year): Use width of number in digits, not its
4315 value, to determine whether it's a 2-digit year, or a 2-digit
4317 (yylex): Store number of digits of numeric tokens. Return '?' for
4318 unknown identifiers, rather than (unused) tID.
4320 2000-01-16 Paul Eggert <eggert@twinsun.com>
4322 * lib/quotearg.c (quotearg_buffer_restyled):
4323 Do not quote alert, backslash, formfeed,
4324 and vertical tab unnecessarily in shell quoting style.
4326 2000-01-15 Paul Eggert <eggert@twinsun.com>
4329 Change quoting to be compatible with future autoconf versions.
4331 2000-01-11 Paul Eggert <eggert@twinsun.com>
4333 * lib/exclude.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove unused macros.
4335 2000-01-07 Paul Eggert <eggert@twinsun.com>
4337 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.17.
4339 Fix bug with fnmatch.h dependency, as follows:
4340 * src/Makefile.am (OMIT_DEPENDENCIES): New macro.
4341 * lib/Makefile.am (OMIT_DEPENDENCIES): New macro.
4343 * src/common.h (apply_nonancestor_delayed_set_stat):
4344 Renamed from apply_delayed_set_stat.
4345 (apply_delayed_set_stat, decode_mode, chmod_error_details,
4346 chown_error_details, close_warn, closedir_warn, mkdir_error,
4347 read_error_details, read_fatal_details, read_warn_details,
4348 seek_error_details, seek_warn_details, utime_error,
4349 write_error_details, write_fatal_details): New decls.
4351 Make diagnostic messages more regular.
4352 * src/create.c (dump_file): Quote file names with colons if possible.
4353 * src/compare.c (diff_archive): Likewise.
4354 * src/extract.c (repair_delayed_set_stat, extract_archive): Likewise.
4355 * src/incremen.c (get_directory_contents, gnu_restore): Likewise.
4356 * src/mangle.c (extract_mangle): Likewise.
4357 * src/misc.c (call_arg_error, call_arg_fatal, call_arg_warn):
4359 * src/buffer.c (archive_write_error, flush_archive, close_archive,
4360 new_volume, xclose):
4361 Use error message functions to report errors consistently.
4362 * src/compare.c (diff_sparse_files, diff_archive): Likewise.
4363 * src/create.c (finish_sparse_file, dump_file): Likewise.
4364 * src/extract.c (set_mode, set_stat, extract_sparse_file,
4365 extract_archive): Likewise.
4366 * src/list.c (list_archive): Likewise.
4367 * src/update.c (append_file): Likewise.
4368 * src/compare.c (diff_init, diff_sparse_files):
4369 Use xalloc_die to report memory exhaustion.
4370 * src/incremen.c (gnu_restore): Likewise.
4371 * src/list.c (read_header): Likewise.
4372 * src/mangle.c (extract_mangle): Likewise.
4373 * src/misc.c (maybe_backup_file): Likewise.
4374 * src/tar.c (decode_options): Likewise.
4375 * src/compare.c (read_and_process, fill_in_sparse_array,
4377 Use consistent terminology for unexpected-EOF message.
4378 * src/extract.c (extract_sparse_file, extract_archive): Likewise.
4379 * src/list.c (list_archive, read_header, skip_file,
4380 skip_extended_headers): Likewise.
4381 * src/buffer.c (archive_write_error): Add noreturn attribute to decl.
4382 (xdup2): Regularize messages with rest of tar.
4384 * src/buffer.c (flush_read): Don't read past EOF.
4386 * src/extract.c (extr_init):
4387 If we run out of memory, invoke apply_delayed_set_stat.
4388 (prepare_to_extract): Don't complain if we can't remove ".".
4389 (apply_delayed_set_stat): New function.
4390 (apply_nonancestor_delayed_set_stat):
4391 Renamed from apply_delayed_set_stat. All uses changed.
4392 Don't remove head if it doesn't apply.
4394 * src/create.c (find_new_file_size):
4395 Return size instead of storing through pointer.
4396 All callers changed.
4397 (deal_with_sparse): Don't keep reading after read errors.
4398 (finish_sparse_file): Just abort if there is an internal error.
4399 (dump_file): Fix typo: stat_warn and stat_error were interchanged.
4400 Don't restore access times on directories during incremental dumps
4401 until after dealing with the directory.
4402 If ignoring failed reads, count closedir, read, and unknown
4403 file errors as warnings, not errors.
4404 Fix buffer overrun problem when dumping sparse files.
4406 * src/list.c (read_and):
4407 Invoke apply_nonancestor_delayed_set_stat on file names
4408 after handling them.
4409 (decode_mode): Remove; moved to misc.c.
4411 * src/misc.c (safer_rmdir): New function.
4412 (remove_any_file): Use it to avoid problems with rmdir(".").
4413 (maybe_backup_file): Regularize diagnostics.
4414 (undo_backup_file): Likewise.
4415 (decode_mode): Moved here from list.c.
4416 (chmod_error_details, chown_error_details, close_fatal,
4417 close_warn, closedir_warn, mkdir_error, read_error_details,
4418 read_warn_details, read_fatal_details, seek_error_details,
4419 seek_warn_details, utime_error, write_error_details,
4420 write_fatal_details): New functions.
4422 * src/delete.c (save_record): Remove static variable (now local).
4423 (move_archive): Don't position before start of archive.
4424 (write_record): Abort if count is zero at inopportune time.
4427 * src/tar.c (decode_options): --delete and -f - are now
4428 incompatible, since we didn't have time to fix their bugs.
4430 * tests/Makefile.am (TESTS): Remove delete02.sh.
4431 * tests/ignfail.sh: Adjust to new quoting scheme again.
4433 2000-01-06 Paul Eggert <eggert@twinsun.com>
4435 * lib/getdate.y: Sync tm_diff with the GNU C Library.
4436 (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed.
4437 (tm_diff): Renamed from difftm. All uses changed.
4438 Replace body with that taken from GNU C Library 2.1.3pre1.
4439 (get_date): Prefer tm_gmtoff to tm_diff if available.
4441 1999-12-29 "Melissa O'Neill" <oneill@cs.sfu.ca>
4443 * tests/incremen.sh: Invoke stat on newly created file so that its
4444 ctime is updated on Nextstep.
4446 1999-12-21 Machael Stone <mstone@cs.loyola.edu>
4448 * lib/getdate.y (get_date):
4449 Fix typo when checking for time_t overflow in time zone calculations.
4451 1999-12-13 Paul Eggert <eggert@twinsun.com>
4453 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.16.
4455 * README-alpha: New file.
4456 * README: New sections for gzip and bzip2, Solaris.
4457 Remove mention of BACKLOG.
4459 * configure.in (AC_C_BACKSLASH_A): Add.
4460 (AC_CHECK_HEADERS): Add wchar.h.
4461 (AC_CHECK_FUNCS): Add mbrtowc.
4462 (AC_FUNC_CLOSEDIR_VOID): Add.
4464 * tests/Makefile.am (TESTS): Add delete02.sh.
4465 (POSTPONED_TESTS): Remove.
4466 (EXTRA_DIST): Remove $(POSTPONED_TESTS).
4469 Set LC_ALL rather than LANGUAGE, LANG, and LC_MESSAGES.
4471 * tests/ignfail.sh (err): Adjust to new quoting scheme.
4473 * tests/delete02.sh: Fix typo: need to list archive2, not archive.
4475 * tests/extrac03.sh: Use -P option, so that .. doesn't get diagnosed.
4477 * src/tar.c ("quotearg.h"): New include.
4478 (usage): Now has __attribute__ ((noreturn)).
4479 (confirm): Report errno if we can't open tty.
4480 (confirm, decode_options):
4481 Quote arbitrary strings in diagnostics.
4482 (OVERWRITE_OPTION): New constant.
4483 (long_options, usage, decode_options): New --overwrite option.
4484 (decode_options): --keep-old-files, --overwrite, and --unlink-first
4485 are now mutually exclusive.
4486 Don't assume that gettext preserves errno.
4487 (main): Set default quoting style to escape_quoting_style.
4489 * src/update.c (<quotearg.h>): New include.
4491 Don't assume that gettext preserves errno.
4492 Quote arbitrary strings in diagnostics.
4493 Check for close error.
4495 * src/names.c (<quotearg.h>): New include.
4496 (name_init, name_next, name_close, names_notfound,
4497 collect_and_sort_names): Don't assume that gettext preserves
4498 errno. Quote arbitrary strings in diagnostics.
4499 (excluded_name): Fix typo that caused empty patterns to be
4502 * src/misc.c (<quotearg.h>): New include.
4503 (quote_copy_string): Quote only newline and backslash; the output is no
4504 longer meant for humans, and is locale-independent.
4505 (contains_dot_dot): New function.
4506 (remove_any_file): Don't use lstat; just rmdir the file and then use
4507 unlink if the rmdir fails because the file isn't a directory.
4508 Check for readdir and closedir errors.
4509 (maybe_backup_file): Report "stat" for stat errors.
4510 (maybe_backup_file, chdir_do):
4511 Quote arbitrary strings in diagnostics.
4512 (maybe_backup_file, undo_last_backup):
4513 Don't assume that gettext preserves errno.
4514 (call_arg_error, call_arg_fatal, call_arg_warn,
4515 chdir_fatal, close_error, closedir_error, exec_fatal, mkfifo_error,
4516 mknod_error, open_error, open_fatal, open_warn, opendir_error,
4517 opendir_warn, read_error, read_fatal, readdir_error, readdir_warn,
4518 readlink_error, readlink_warn, seek_error, seek_warn, stat_error,
4519 stat_warn, truncate_error, truncate_warn, unlink_error, waitpid_error,
4520 write_error, write_fatal, xfork, xpipe, quote_n, quote): New functions.
4522 * src/system.h (__attribute__): New macro.
4523 (O_NDELAY, O_NONBLOCK, O_APPEND): Remove.
4524 (S_ISDOOR): New macro.
4525 (closedir): New macro, if CLOSEDIR_VOID.
4527 * src/rmt.c, src/rtapelib.c (decode_oflag):
4528 O_APPEND might not be defined.
4530 * src/list.c: (read_and, list_archive):
4531 Quote arbitrary strings in diagnostics.
4532 (from_header): Use locale_quoting_style to quote diagnostics.
4533 (print_header, print_for_mkdir): Quote with quotearg, not quote_copy_string.
4535 * src/rmt.h (REM_BIAS): Increase from 128 to (1 << 30).
4537 * src/Makefile.am: Use ## for copyright comments.
4539 * src/extract.c (<quotearg.h>): New include.
4540 (enum permstatus): New enum.
4541 (struct delayed_set_stat): file_name is now at end of buffer, to avoid
4542 two mallocs. New members file_name_len, invert_permissions, permstatus.
4543 (extr_init): Remove hack that silently adjusted newdir_umask.
4544 (set_mode, set_stat): New args invert_permissions, permstatus, typeflag.
4545 Use these args to decide whether and how to set modes.
4546 (set_mode, set_stat, prepare_to_extract, extract_sparse_file, extract_archive):
4547 Don't assume that gettext preserves errno.
4548 (set_stat): Remove arg symlink_flag; subsumed by typeflag.
4549 (delay_set_stat, repair_delayed_set_stat): New functions.
4550 (make_directories): Avoid mkdir where last part of path is "..".
4551 Create a struct delayed_set_stat for each directory made.
4552 (prepare_to_extract): Renamed from unlink_destination, and
4553 return 0 immediately if to_stdout_option; all callers changed.
4554 (maybe_recoverable): New parameter interdir_made.
4555 Add support for --overwrite.
4556 (extract_sparse_file, extract_archive):
4557 Quote arbitrary strings in diagnostics.
4558 (extract_archive): By default, warn about ".." in member names, and skip them.
4559 Don't open files with O_NONBLOCK or O_APPEND.
4560 Open with O_TRUNC only if --overwrite; otherwise, use O_EXCL to avoid
4561 overwriting them. Pass only rwxrwxrwx permissions to `open' and `mkdir',
4562 minus the current umask. Keep track of intermediate directories made,
4563 to avoid looping when making x/../x when x doesn't exist; the
4564 earlier code solved this in a different way that didn't fit well
4565 into the new scheme. Don't extract permissions onto existing
4566 directories unless --overwrite is given. Do not add -wx------
4567 permissions to new directories permanently; just do it temporarily.
4568 Remove no-longer-needed hack with MSDOS and directory time stamps.
4569 (apply_delayed_set_stat): New argument specifies which directories to
4570 fix statuses of. Do not wait until the end of extraction to fix
4571 statuses; instead, fix a directory's status once we exit that directory.
4572 This requires less memory and does the right thing in some cases
4573 where the old method didn't.
4574 (fatal_exit): New function.
4576 * src/incremen.c (<quotearg.h>): New include.
4577 (get_directory_contents, gnu_restore):
4578 Check for readdir and closedir errors.
4579 (get_directory_contents, read_directory_file, gnu_restore):
4580 Quote arbitrary strings in diagnostics.
4581 (get_directory_contents, read_directory_file, write_directory_file):
4582 Don't assume that gettext preserves errno.
4584 * src/create.c (<quotearg.h>): New include.
4585 (start_header): Use `member names' to refer to archive member names, not
4586 `archive names'. Warn about `..' in member names.
4587 (finish_sparse_file, dump_file):
4588 Quote arbitrary strings in diagnostics.
4589 (finish_sparse_file, dump_file):
4590 Don't assume that gettext preserves errno.
4591 (dump_file): Don't use `access' to determine whether a directory is readable;
4592 this isn't reliable if tar is setuid. Use `opendir' instead.
4593 Check for readdir and closedir failures.
4594 Don't dump sockets as if they were fifos; just warn and skip.
4596 * src/delete.c (move_archive):
4597 Don't report fatal error merely because sizes don't fit
4598 into struct mtop values; fall back on lseek instead.
4599 Say `Cannot' uniformly, instead of `Could not' sometimes and `Cannot' others.
4600 Say `reposition' instead of `re-position'.
4601 (delete_archive_members):
4602 Set archive to STDOUT_FILENO before outputting trailing buffer.
4604 * src/compare.c (<quotearg.h>): New include.
4605 (diff_init): Use `Cannot' uniformly, instead of `Could not' sometimes
4606 and `Cannot' others.
4607 (report_difference, diff_archive):
4608 Quote arbitrary strings in diagnostics.
4609 (process_rawdata, diff_sparse_files, get_stat_data, diff_archive, seek_warn):
4610 Don't assume that gettext preserves errno.
4611 (diff_archive): Don't open regular files with O_NONBLOCK.
4612 Preserve access times of files if --atime.
4614 * src/common.h (FATAL_ERROR): Use new fatal_exit function to exit.
4615 (FATAL_ERROR, USAGE): Don't return 0.
4616 (enum old files): New enum.
4617 (old_files_option): New variable, replacing keep_old_files_option and
4618 unlink_first_option.
4619 (apply_delayed_set_stat): Now takes char const * param.
4620 (fatal_exit, contains_dot_dot, chdir_fatal, close_error,
4621 closedir_error, exec_fatal, mkfifo_error, mknod_error, open_error,
4622 open_fatal, open_warn, opendir_error, opendir_warn, read_error,
4623 read_fatal, readdir_error, readdir_warn, readlink_error,
4624 readlink_warn, seek_error, seek_warn, stat_error, stat_warn,
4625 truncate_error, truncate_warn, unlink_error, waitpid_error,
4626 write_error, write_fatal, xfork, xpipe, quote, quote_n): New decls.
4629 (xclose, xdup2, child_open_for_compress, child_open_for_uncompress,
4630 archive_write_error, archive_read_error, flush_archive, close_archive,
4631 init_volume_number, new_volume):
4632 Don't assume that gettext preserves errno.
4634 (xdup2): Don't report errno if dup returns an unexpected nonnegative value.
4635 (open_archive): Reject multivolume verify attempts a bit earlier.
4636 Rename local variable `access', in case it's defined by system header.
4638 (open_archive, backspace_output): Use `Cannot' uniformly, instead of
4639 `Could not' sometimes and `Cannot' others.
4641 (open_archive, flush_read, flush_archive, close_archive, new_volume):
4642 Quote arbitrary strings in diagnostics.
4644 (read_error): Set archive to STDOUT_FILENO temporarily when writing
4647 (init_volume_number): Check for input and output errors in volno_file.
4649 (new_volume): Use new fatal_exit function to exit, and new xfork
4652 * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4.
4654 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/c-bs-a.m4.
4656 * doc/tar.texi: Add --overwrite.
4657 --absolute-names rejects ".." in names.
4659 * lib/quotearg.c: Add support for multibyte characters.
4661 (ISPRINT): New macro.
4662 (<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H.
4663 (isprint, mbrtowc, mbsinit, mbstate_t): New macros,
4664 defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
4665 (quotearg_buffer_restyled): New function, with most of the old
4666 quotearg_buffer's contents.
4667 Major rewrite to support multibyte characters.
4668 (quotearg_buffer): Now just calls quotearg_buffer_restyled.
4670 * m4/c-bs-a.m4: New file.
4672 * lib/Makefile.am: Use ## for copyright notice.
4674 * scripts/Makefile.am: Use ## on copyright notice.
4677 ($(srcdir)/tar.info, tar.dvi): We now use texinfo 4.0.
4679 1999-12-05 Paul Eggert <eggert@twinsun.com>
4681 * doc/ChangeLog, lib/ChangeLog, scripts/ChangeLog,
4682 src/ChangeLog, tests/ChangeLog: Remove these files.
4683 * ChangeLog.1: New file, incorporating the above files, plus old
4685 * Makefile.am (EXTRA_DIST): Add ChangeLog.1.
4687 1999-12-05 Dale Worley <worley@ariadne.com>
4689 * src/compare.c (<utime.h>, struct utimbuf): Add.
4690 (diff_archive): Restore access times if --atime.
4691 * doc/tar.texi: Explain that --atime also preserves modification time.
4693 1999-12-04 Gerhard Poul <gpoul@gnu.org>
4695 * ABOUT-NLS: Update to latest version from ftp.gnu.org.
4696 * BACKLOG, TODO: Remove.
4697 * Makefile.am (all-local, BABYL, dist-zoo, id, ID): Remove.
4698 * README: Bring up to date.
4700 1999-12-03 Paul Eggert <eggert@twinsun.com>
4702 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.15.
4704 * src/compare.c (diff_archive):
4705 Do not set errno to EPIPE; we no longer use perror.
4707 * src/create.c (dump_file):
4708 If a parent directory said that a file should be there but it is
4709 absent, diagnose it as being removed in the meantime.
4710 Do not pass meaningless errno to ERROR when reporting that the
4711 file changed as we read it.
4712 Report that a file changed if its ctime changes; this is more
4713 sensitive than mtime+size, and more accurate.
4715 * src/incremen.c (enum children): New type.
4716 (struct directory): Change old char allnew member to new enum children
4719 (get_directory_contents): When doing an incremental dump that does
4720 not cross filesystem boundaries, dump the mount points, even though
4721 they are in a different filesystem. This is for convenience when
4722 restoring, and for consistency with non-incremental dumps.
4723 This requires a 3-way flag for keeping track of which children we want,
4724 so we use enum children rather than boolean.
4726 * src/open3.c (modes): Remove.
4727 (open3): Remove unportable assumptions about flag encodings.
4728 Use `stat' instead of `access' for testing file existence,
4729 to avoid problems with setuid programs.
4731 * src/names.c (name_next): If file names are given both in the
4732 command line (e.g. via -C) and in a file (via -T), do not
4733 ignore the command-line names.
4735 * m4/uintmax_t.m4: Backport to autoconf 2.13.
4737 * doc/tar.texi: Clarify getdate authorship.
4739 1999-11-23 Paul Eggert <eggert@twinsun.com>
4741 * lib/Makefile.am (DISTCLEANFILES): New macro.
4743 * configure.in (tar_fnmatch_hin):
4744 Remove; it runs afoul of a bug in autoconf 2.13.
4745 Instead, always link fnmatch.h to some file, even if it's a throwaway.
4747 1999-11-19 Paul Eggert <eggert@twinsun.com>
4749 * m4/largefile.m4: Update serial.
4751 1999-11-18 Paul Eggert <eggert@twinsun.com>
4753 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a bug in
4754 the QNX shell, which doesn't propagate exit status of failed
4755 commands inside shell assignments.
4757 1999-11-07 Paul Eggert <eggert@twinsun.com>
4759 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.14.
4761 * configure.in (AC_PREREQ): Bump to 2.13.
4762 (ALL_LINGUAS): Add pt_BR, ja.
4763 (AC_FUNC_FNMATCH): Remove lib/funmatch.h before invoking, not after.
4764 (tar_cv_path_RSH): Prefer a non-symlink rsh to a symlink one,
4765 for AIX crossbuilds.
4767 * doc/tar.texi: New node create options for --ignore-failed-read.
4768 Remove unused version control symbols.
4769 Modernize texinfo usage.
4771 * src/tar.c (usage): Add examples.
4773 * m4/fnmatch.m4 (AC_FUNC_FNMATCH):
4774 Include fnmatch.h when testing fnmatch.
4776 * src/common.h (collect_and_sort_names): New decl.
4778 * src/list.c (from_header):
4779 Handle 32-bit two's complement negative time stamps
4780 even if the leading octal digit is 2 or 3.
4782 * src/extract.c (set_stat): Remove duplicate code.
4784 * src/create.c (to_chars): Remove trailing newline from warning.
4785 (dump_file): Ignore doors.
4786 (finish_header): Report block numbers with origin 0, not origin 1.
4788 * src/rmt.c: Include getopt.h.
4789 (long_opts): New constant.
4790 (usage): New function.
4791 (main): Implement --help and --version.
4792 Output usage message if arguments are bad.
4794 1999-10-10 Paul Eggert <eggert@twinsun.com>
4796 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.13.
4798 * README: Remove --with-dmalloc.
4799 Add --disable-largefile.
4800 Remove old NeXT dirent problems, or AIX valloc problems.
4801 Remove old union wait advice, and old %lld advice.
4802 Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'.
4804 * doc/tar.texi: Clarify documentation for portable file names.
4806 * configure.in (AM_WITH_DMALLOC): Remove.
4807 (ALL_LINGUAS): Add ja.
4809 * src/tar.c (decode_options):
4810 Invalid dates are now treated as (time_t) -1.
4811 Redo version message to conform to GNU standards.
4813 * src/create.c (dump_file):
4814 Fix typo: last two args to dump_file were interchanged.
4815 * src/update.c (update_archive): Likewise.
4817 * src/common.h (tartime): New decl.
4819 * src/list.c (tartime): Now extern.
4820 (read_and): Invalid headers cause errors, not warnings.
4822 1999-10-03 Paul Eggert <eggert@twinsun.com>
4824 * lib/getdate.y (__attribute__):
4825 Don't use if GCC claims to be before 2.8; this is
4826 needed for OPENStep 4.2 cc. Also, don't use if strict ANSI.
4828 1999-09-25 Paul Eggert <eggert@twinsun.com>
4830 * lib/fnmatch.c, lib/fnmatch.hin: Merge changes from latest glibc.
4831 * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Likewise.
4833 * tests/incremen.sh: Add yet another sleep.
4835 1999-09-24 Paul Eggert <eggert@twinsun.com>
4837 * NEWS: A read error now causes a nonzero exit status.
4839 * src/create.c (to_chars): Fix base-256 output.
4841 * src/buffer.c (write_error):
4842 Read error is an error, not just a warning.
4844 1999-09-24 Paul Eggert <eggert@twinsun.com>
4846 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.12.
4848 * src/tar.c (<time.h>): Include.
4849 (time): Declare if not defined.
4850 (confirm): Don't read past EOF.
4851 (long_options, usage): Add --no-same-owner, --no-same-permissions.
4852 (main): Use clock_gettime if available.
4854 * tests/Makefile.am (TESTS): Add incremen.sh
4855 (INCLUDES): Add -I../lib, for fnmatch.h.
4857 * src/update.c (update_archive):
4858 Remove call to name_expand; had no effect.
4859 Use chdir_do to change into directory.
4860 Use deref_stat instead of stat.
4861 Use add_avoided_name to mark names to be avoided; the old method of
4862 setting a bit with the name caused all descendants of that name to
4863 be avoided, in some circumstances.
4865 * tests/incremen.sh: Remove unnecessary sleeps.
4867 * src/names.c (name_next): Go back to using plain chdir.
4868 (name_gather): Use chdir_arg to keep track of arguments to chdir.
4869 (addname): Likewise.
4870 (name_match): Use chdir_do to act on chdir args.
4871 (merge_sort): Moved here from incremen.c.
4872 (compare_names, add_hierarchy_to_namelist, collect_and_sort_names):
4874 (name_expand): Remove.
4875 (name_from_list): Skip fake names.
4876 Use chdir_do to act on chdir args.
4877 (struct avoided_name): New struct.
4878 (avoided_names): New var.
4879 (add_avoided_name, is_avoided_name): New functions.
4881 * src/system.h (stat, lstat): Define in terms of statx on
4882 STX_HIDDEN && !_LARGE_FILES /* AIX */ hosts.
4883 (UCHAR_MAX): New macro.
4884 (TYPE_MAXIMUM): Cast to arg type, for types narrow than int.
4886 * m4/largefile.m4: Work around GCC 2.95.1 bug with HP-UX 10.20.
4888 * src/incremen.c (<time.h>): Remove include; no longer used.
4889 (time): Remove decl.
4891 (get_directory_contents): Use deref_stat.
4892 Consider a subdirectory to be all new only if
4893 listed_incremental_option or if it its timestamp is newer than the
4895 (add_hierarchy_to_namelist, merge_sort): Move to names.c.
4896 (read_directory_file): Now extern. Do not set time_now.
4897 (write_directory_file): Renamed from write_dir_file.
4898 Use start_time instead of time_now.
4899 (compare_names, collect_and_sort_names): Move to names.c.
4901 * src/mangle.c (<time.h>): Remove; not used.
4902 (time): Do not declare.
4904 * src/misc.c (chdir_from_initial_wd): Remove.
4905 (deref_stat): New function.
4906 (struct wd): New struct.
4907 (wd, wds, wd_alloc): New variables.
4908 (chdir_arg, chdir_do): New function.
4910 * src/compare.c (get_stat_data): Use deref_stat.
4912 * src/common.h (name_expand): Remove.
4914 * src/list.c (time): Declare if not defined.
4915 (base_64_digits): Moved here from create.c.
4916 (base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char)
4918 (read_and): Don't get time from header unless we need it now;
4919 as getting time can cause duplicate diagnostics if bogus.
4920 Remove "Hmm, " from diagnostic.
4921 Use "Skipping to next header" uniformly.
4922 (from_header): Renamed from from_chars. All uses changed.
4923 Allow different forms for unportable 2's complement numbers.
4924 Don't check for extended forms when parsing checksums.
4925 Parse base-256 output.
4926 (gid_from_header): Renamed from gid_from_chars. All uses changed.
4927 (major_from_header): Renamed from major_from_chars. All uses changed.
4928 (minor_from_header): Renamed from minor_from_chars. All uses changed.
4929 (mode_from_header): Renamed from mode_from_chars. All uses changed.
4930 (off_from_header): Renamed from off_from_chars. All uses changed.
4931 (size_from_header): Renamed from size_from_chars. All uses changed.
4932 (time_from_header): Renamed from time_from_chars. All uses changed.
4933 Warn about future timestamps.
4934 (uid_from_header): Renamed from uid_from_chars. All uses changed.
4935 (uintmax_from_header): Renamed from uintmax_from_chars.
4937 (tartime): New function, incorporating isotime.
4939 (print_header): Use tartime.
4941 * src/create.c (to_chars): Fix typo in decl.
4942 Don't assign through char const *.
4943 Rename name_expand back to collect_and_sort_names.
4945 * src/extract.c (<time.h>): No need to include.
4946 (time): No need to declare.
4947 (now): Remove variable.
4948 (extr_init): Don't initialize `now'.
4949 Increment same_permissions_option and same_owner_option if we_are_root
4950 is nonzero; this supports the new --no-same-owner option.
4951 (set_stat): Use start_time instead of `now'.
4953 * src/create.c (struct link): Remove unused linkcount member.
4954 (base_64_digits): Move to list.c.
4955 (base_8_digits): Remove.
4956 (to_octal): New function, with some of old contents of to_base.
4958 (to_base256): New function.
4959 (to_chars): Use base 256, not base 64, for huge values.
4960 (mode_to_chars): Don't use two's complement in GNU format or POSIX
4962 (dump_file): Interchange last two arguments. If TOP_LEVEL is negative,
4963 it means we have an incremental dump where we don't know whether this
4964 is a top-level call.
4965 Use deref_stat instead of statx / stat / lstat.
4966 Cast result of alloca.
4967 Check for dates if 0 < top_level, not if listed_incremental_option.
4968 Move multiple-link check after directory check.
4969 Do not dump avoided names.
4970 Dump hard links to symbolic names as links, not as separate
4972 start_header cannot return a null pointer, so don't test for it.
4973 Likewise for find_next_block.
4975 * src/buffer.c, src/common.h (<human.h>): Include.
4976 (read_error): Read error is an error, not just a warning.
4977 (print_total_written): Also print human-readable byte count, and
4979 (open_archive, flush_write): Use start_time, not current time.
4980 (flush_read): Report about garbage bytes ignored at end of archive,
4981 but act on non-garbage bytes (instead of ignoring them).
4982 (new_volume): Use WARN for warnings.
4985 ($(srcdir)/tar.info): Add -I$(srcdir) so that subdir builds work.
4987 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/fnmatch.m4.
4989 * m4/Makefile.am (EXTRA_DIST): Add fnmatch.m4.
4991 * lib/Makefile.am (noinst_HEADERS):
4992 Rename fnmatch.h to fnmatch.hin; add human.h.
4993 (libtar_a_SOURCES): Add human.c, xstrtoul.c.
4994 (INCLUDES): Remove -I.. -I$(srcdir) -- automake adds this for us.
4996 * src/Makefile.am (rmt_LDADD, tar_LDADD): New macros.
4998 * lib/fnmatch.c (strchrnul):
4999 Define to __strchrnul if _LIBC, to our own replacement otherwise.
5000 Do not define if !_LIBC and if it already exists.
5001 (internal_fnmatch): Use it.
5003 * configure.in (tar_LDADD): New variable, used only when linking tar.
5004 (rmt_LDADD): Similarly, for rmt.
5005 (AC_FUNC_FNMATCH): Link fnnmatch.hin to fnmatch.h if we're using our
5006 fnmatch.c; otherwise, use the system fnmatch.h.
5008 * doc/tar.texi: Add --no-same-owner, --no-same-permissions.
5009 Modernize sample backup script.
5011 * THANKS: Martin Goik's email address has changed.
5013 * m4/fnmatch.m4: New file.
5015 1999-09-03 Paul Eggert <eggert@twinsun.com>
5017 * lib/lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3.
5020 1999-08-29 Paul Eggert <eggert@twinsun.com>
5022 * lib/getdate.y (get_date):
5023 Rename outermost local `probe' to `quarter'.
5024 Rename latter local `tm' to probe_tm.
5025 From: Jim Meyering <meyering@ascend.com>
5026 Message-ID: <uryn1vafyyc.fsf@ixi.eng.ascend.com>
5028 1999-08-28 Paul Eggert <eggert@twinsun.com>
5030 * lib/getdate.y (PC): New macro; use it when possible.
5031 (number): Handle `Nov 11 1996' example correctly.
5032 See Risks Digest 20.55 (1999-08-27)
5033 http://catless.ncl.ac.uk/Risks/20.55.html#subj18
5035 1999-08-23 Paul Eggert <eggert@twinsun.com>
5037 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.11.
5039 Remove minor cases of lint from many source files: this includes
5040 unnecessary casts, uses of NULL, etc.
5042 * configure.in (AC_PROG_YACC): Remove.
5043 (YACC): Always use bison.
5044 (AC_STRUCT_TIMEZONE): Add.
5045 (AC_REPLACE_FUNCS): Add strcasecmp, strncasecmp.
5047 * doc/tar.texi: --bzip2 is now -I. Remove obsolete time zone info.
5050 * lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c, strncasecmp.c.
5051 ($(srcdir)/getdate.c): Rename y.tab.c to getdate.c only if successful.
5053 * lib/strcasecmp.c, lib/strncasecmp.c: New files.
5055 * src/common.h (merge_sort): Remove decl; no longer exported.
5057 * src/system.h (voidstar): Remove.
5058 (memcpy, memcmp): Cast args.
5059 ("xalloc.h"): Add include.
5060 (xmalloc, xrealloc): Remove decl.
5062 * src/mangle.c (time): Do not declare if defined.
5063 (first_mangle, mangled_num): Remove.
5065 * src/list.c (from_chars): Report out-of-range values more precisely.
5066 (off_from_chars): Do not allow negative offsets.
5067 (uid_from_chars): Allow negative uids.
5069 * src/create.c (linklist): Now static.
5070 (to_chars): Fix wording of message to match from_chars.
5072 * src/misc.c (merge_sort): Move to incremen.c.
5073 * src/incremen.c (merge_sort): Move here from misc.c; now static.
5074 It's too painful to make it both generic and portable.
5075 (read_directory_file): "timestamp" -> "time stamp" in messages.
5077 * src/tar.c (long_options, usage, main): -y is now -I (for --bzip).
5078 (usage): Fix misspelling.
5079 (OPTION_STRING): -y is now -I.
5080 (decode_options): Use -1, not EOF, for getopt_long result.
5081 Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX.
5082 Handle operands after any "--" argument.
5083 (main): Report any output errors.
5085 * src/rmt.c (main): status is ssize_t, not long.
5087 * src/names.c (name_gather): Handle trailing -C option correctly.
5088 (addname): use memcpy, not strncpy, to copy a string of known length.
5089 (name_match): Handle trailing -C option correctly.
5090 Propagate -C option to following files.
5091 (name_match, name_scan): Remove redundant matching code.
5093 * src/buffer.c (open_archive): Use American spelling in diagnostic.
5095 * lib/getdate.y: Major rewrite. Add copyright notice.
5096 (<stdio.h>): Include only if testing.
5098 (ISLOWER): New macro.
5099 (<string.h>): Include if HAVE_STRING_H, not USG.
5101 (yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
5103 (EPOCH_YEAR): Renamed from EPOCH.
5104 (table): Renamed from TABLE.
5105 (meridian): Now an anonymous enum.
5106 (struct parser_control): New type.
5107 (YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
5108 (yyInput, ..., yyRelYear): Migrated into struct parser_control.
5109 (%pure_parser): Added, so that the parser is pure.
5110 (%union): Removed; the type is now just plain int.
5111 All %type directives removed.
5112 (tLOCAL_ZONE): New %token.
5113 (month_day_table): Renamed from MonthDayTable.
5114 (gmtime, localtime, mktime, time): Declare only if not defined.
5115 (meridian_table): New table.
5116 (dst_table): New table.
5117 (units_table): renamed from UnitsTable.
5118 (relative_time_table): Renamed from OtherTable.
5119 (time_zone_table): Renamed from TimezoneTable. Modernized.
5120 (military_table): Renamed from MilitaryTable.
5121 (to_hour): Renamed from ToHour.
5122 (to_year): Renamed from ToYear.
5123 (lookup_zone): New function.
5124 (LookupWord): Renamed from lookup_word. Use lookup_zone for time
5126 (yylex): Now reentrant. All callers changed.
5127 (get_date): Add support for local time zone abbreviations.
5130 1999-08-20 Paul Eggert <eggert@twinsun.com>
5132 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.10.
5134 * src/create.c (to_chars): Generate GNU base-64 representation
5135 if we are generating an old or new GNU format tar file for a
5136 number that can't be represented with the POSIX format.
5138 * configure.in (AC_CHECK_FUNCS): Add fchdir.
5139 (AM_FUNC_GETLINE): Add.
5140 (LIBOBJS): Add getline.o to workaround comment.
5141 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/getline.m4.
5142 * m4/Makefile.am (EXTRA_DIST): Add getline.m4.
5143 * lib/Makefile.am (noinst_HEADERS): Add getline.h, save-cwd.h.
5144 (libtar_a_SOURCES): Add save-cwd.c, xgetcwd.c.
5145 * lib/getline.c, lib/getline.h, lib/save-cwd.c,
5146 lib/save-cwd.h, m4/getline.m4: New files.
5148 * src/misc.c (<save-cwd.h>): Include.
5149 (chdir_from_initial_wd): New function.
5151 * src/names.c (name_next): Use chdir_from_initial_wd, not chdir.
5152 (name_gather): Handle `-C x -C y' correctly.
5153 Do not rely on addname to handle -C.
5154 (addname): New CHANGE_DIR parameter. All callers changed.
5155 Remove ugly calls to getcwd; no longer needed.
5156 (name_match, name_from_list): Use chdir_from_initial_wd, not chdir.
5158 * src/incremen.c (listed_incremental_stream): New var.
5159 (read_directory_file): Remove arbitrary limits on file name length.
5160 Do not attempt to get the working directory; we can bypass this
5161 on fchdir hosts. Open the listed_incremental_option file for both
5162 read and write instead of opening it twice. Check for I/O errors
5163 when doing I/O to this file. Check for invalid data in the file,
5164 and report line numbers of invalid data.
5165 (write_dir_file): Likewise.
5166 (collect_and_sort_names): Use chdir_from_initial_wd, not chdir.
5167 Do not invoke write_dir_file; that's our caller's responsibility.
5169 * src/list.c (max): New macro.
5170 (isotime): Now takes time_t, not time_t *. Report the decimal values
5171 of times that can't be broken down.
5172 (print_header): Don't assume that major and minor device numbers can
5175 * src/common.h (struct name): change_dir is now char const *.
5176 (write_directory_file): Remove unused decl.
5177 (STRINGIFY_BIGINT): Assume b always points to UINTMAX_STRSIZE_BOUND
5178 chars; the old `sizeof (b)' broke when b was a pointer not an array.
5179 (chdir_from_initial_wd): New decl.
5180 (addname): New 2nd arg.
5182 * THANKS: Torsten Lull -> Catrin Urbanneck
5184 1999-08-18 Paul Eggert <eggert@twinsun.com>
5186 * configure.in (HAVE_GETHOSTENT, HAVE_SETSOCKOPT):
5187 Don't depend on ac_cv_func variables.
5188 From Albert Chin-A-Young <china@thewrittenword.com>.
5190 1999-08-18 Paul Eggert <eggert@twinsun.com>
5192 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.9
5194 * m4/signedchar.m4: New file.
5195 * configure.in (pe_AC_TYPE_SIGNED_CHAR): Add.
5196 * src/system.h (signed_char): New macro.
5197 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/signedchar.m4.
5198 * m4/Makefile.am (EXTRA_DIST): Add signedchar.m4.
5200 * src/create.c (write_eot): Write at least two zero blocks.
5202 * src/extract.c (extract_archive): Fix sparse array bug:
5203 we did not find end of array correctly.
5205 * src/compare.c: (fill_in_sparse_array, diff_sparse_files):
5206 Don't assume find_next_block yields nonnull.
5207 * src/extract.c (extract_sparse_file, extract_archive): Likewise.
5208 * src/list.c (skip_extended_headers): Likewise.
5210 * src/list.c (read_and, list_archive): Simplify code.
5211 (read_header): Fix computation of signed checksums on machines where
5213 Do not consider a block to be zero unless all its bytes are zero,
5214 even the checksum bytes. Do not attempt to parse the checksum of
5215 a zero block. Fix memory leak with long names and links.
5216 (from_chars): Accommodate a buggy tar that outputs leading NUL
5217 if the previous field overflows.
5219 * src/misc.c (quote_copy_string): Generate \177 for '\177', not
5220 \?, for portability to non-ASCII hosts.
5222 1999-08-16 Paul Eggert <eggert@twinsun.com>
5224 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.8.
5226 * src/extract.c (make_directories): Do not chown intermediate
5227 directories, even if we are root.
5229 * src/list.c (read_header): Fix bugs when interpreting
5230 POSIX-compliant headers that do not contain null bytes in the
5231 header or link names.
5233 1999-08-14 Paul Eggert <eggert@twinsun.com>
5235 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.7.
5237 * configure.in (AC_CHECK_HEADERS): Remove sys/wait.h.
5238 (AC_HEADER_SYS_WAIT): Add.
5239 (AC_REPLACE_FUNCS): Add waitpid.
5240 (tar_cv_header_union_wait, HAVE_UNION_WAIT): Remove.
5241 * lib/waitpid.c: New file.
5242 * lib/Makefile.am (EXTRA_DIST): Add waitpid.c.
5243 * src/system.h (WCOREDUMP): Remove; no longer used.
5244 (WIFSTOPPED): Likewise.
5245 (WEXITSTATUS, WIFSIGNALED): Default to Solaris 7 versions.
5246 * src/buffer.c (child_open_for_compress): Undo previous change.
5247 (close_archive): Use waitpid, POSIX-style, instead of old BSD style.
5248 (new_volume): Likewise.
5250 * src/buffer.c, src/extract.c, src/incremen.c (time):
5251 Don't declare if defined.
5252 * src/extract.c (extr_init): Remove unneeded cast around 0 arg to time.
5253 * src/incremen.c (read_directory_file):
5254 Invoke `time' the same way everyone else does.
5255 Check validity of --listed-incremental file contents a bit better.
5256 Do not worry about --after-date-option; tar.c now checks this.
5257 * src/list.c (isotime): Report ??? if localtime returns null.
5258 Don't assume years fit into four digits.
5259 Don't append trailing newline.
5260 (print_header): Report ??? if localtime returns null;
5261 Don't assume years fit into four digits.
5263 * src/compare.c (diff_archive): Do not fall back on absolute name
5264 when --absolute-names is not specified.
5266 * src/create.c (start_header):
5267 Include text of ignored filesystem prefix in warning.
5268 (create_archive): Check for excluded names when doing incremental
5269 pass through directory.
5270 (dump_file): Do not dump old files explicitly given on command line
5271 when using --listed-incremental. Do not strip ./ prefix from names.
5273 * src/tar.c: -g now implies after_date_option = 1.
5274 -g and -N are now incompatible options.
5276 * doc/tar.texi: Explain --exclude better. Don't strip leading `./'.
5278 1999-08-11 Jeff Dairiki <dairiki@dairiki.org>
5280 * src/list.c (read_header): Don't parse OLDGNU_FORMAT
5281 incremental headers as POSIX prefixes.
5283 1999-08-11 Paul Eggert <eggert@twinsun.com>
5285 * NEWS, configure.in: Version 1.13.6.
5287 * configure.in (ALL_LINGUAS): Add pt_BR.
5288 * po/pt_BR.po: New file.
5290 * doc/Makefile.am ($(srcdir)/tar.info, $(srcdir)/header.texi):
5291 Renamed from tar.info and header.texi; adjust actions so that
5292 they work in other directories.
5294 * doc/tar.texi: Add -y and --bzip2.
5295 Patterns containing / now exclude only file names whose prefix match.
5297 * lib/exclude.h (excluded_filename): New option parameter.
5298 (add_exclude_file): New ADD_FUNC parameter.
5299 (excluded_pathname): Remove decl.
5300 * lib/exclude.c (_GNU_SOURCE):
5301 Remove; no longer needed since we don't use FNM_ macros.
5302 (excluded_filename): Renamed from excluded_filename_opts.
5303 (excluded_filename, excluded_pathname): Remove.
5304 (add_exclude_file): New ADD_FUNC parameter.
5306 * po/POTFILES.in: Add lib/quotearg.c.
5308 * src/buffer.c (_GNU_SOURCE): Define.
5309 (<fnmatch.h>): Include unconditionally.
5310 (child_open_for_compress): Dup after closing, to avoid possible file
5311 descriptor exhaustion.
5312 (flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
5313 (flush_read): Likewise.
5315 * src/common.h (LG_8, LG_64): New macros.
5316 (excluded_with_slash, excluded_without_slash): New vars.
5318 (base_64_digits): New decl.
5319 (gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars,
5320 off_to_chars, size_to_chars, time_to_chars, uid_to_chars,
5322 GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS,
5323 OFF_TO_CHARS, SIZE_TO_CHARS, TIME_TO_CHARS, UID_TO_CHARS,
5325 Renamed from gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
5326 off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
5327 GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, OFF_TO_OCT,
5328 SIZE_TO_OCT, TIME_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT,
5329 respectively. All definitions and uses changed.
5330 (excluded_name): New decl.
5332 * src/compare.c (diff_archive):
5333 Open files with O_NONBLOCK instead of O_NDELAY.
5335 * src/create.c (base_64_digits): New constant.
5336 (base_8_digits): New macro.
5337 (MAX_VAL_WITH_DIGITS): New macro.
5338 (to_base): First half of old to_oct. Support base 64 too.
5339 (to_chars): Other half of old to_oct, for 64-bit support.
5340 (GID_NOBODY, UID_NOBODY): Don't define if the headers don't.
5341 (gid_substitute, uid_substitute): Look up names dynamically if
5342 GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails.
5343 (mode_to_chars): Renamed from mode_to_oct.
5344 Support negative values in all the _to_chars functions.
5345 (start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
5346 Abort if archive format is DEFAULT_FORMAT when it shouldn't be.
5347 (dump_file): Inspect entire pathname, not just new file name
5348 component, when deciding whether to exclude it.
5350 * src/extract.c (extract_archive):
5351 Open files with O_NONBLOCK instead of O_NDELAY.
5353 * src/incremen.c (get_directory_contents):
5354 Inspect entire pathname, not just new file name
5355 component, when deciding whether to exclude it.
5357 * src/list.c (<fnmatch.h>): Do not include.
5358 (from_chars): Renamed from from_oct. New parameter specifying
5359 the negative of the minimum allowed value. Support negative
5361 (base64_map): New var.
5362 (base64_init): New function.
5363 (print_header): Output numeric uids and gids if numeric_owner_option.
5365 * src/misc.c (quote_copy_string): Use LG_8 instead of constants.
5367 * src/names.c (_GNU_SOURCE): Define.
5368 (<fnmatch.h>): Include unconditionally.
5369 (excluded_name): New function, taking over duties of excluded_pathname.
5372 * src/rmt.c (decode_oflag): New function.
5373 (main): Use it to support symbolic open flags.
5375 * src/rtapelib.c (encode_oflag): New function.
5376 (rmt_open__): Do not allow newlines in the path.
5377 Propagate errno correctly.
5378 Decode symbolic open flags, if present.
5380 * src/system.h (FILESYSTEM_PREFIX_LEN, ISSLASH, O_ACCMODE, O_NONBLOCK):
5383 * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
5384 New -y or --bzip2 option.
5385 (add_filtered_exclude): New function.
5386 (decode_options): Put excluded patterns with / into
5387 excluded_with_slash, and without / into excluded_without_slash.
5388 Compare newer_mtime_option to its new initial value
5389 TYPE_MINIMUM (time_t) when deciding whether more than one
5390 threshold date was specified.
5392 1999-07-20 Paul Eggert <eggert@twinsun.com>
5394 * NEWS, configure.in: Version 1.13.5.
5396 * src/common.h (FATAL_ERROR): Invoke apply_delayed_set_stat
5398 * src/buffer.c (new_volume): Likewise.
5399 * src/incremen.c (read_directory_file): Likewise.
5400 * src/tar.c (decode_options):
5401 ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0,
5404 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.4.
5405 * configure.in (AC_CHECK_FUNCS): Add lstat, readlink, symlink.
5407 * src/system.h (lstat): Define only if !HAVE_LSTAT && !defined lstat.
5408 (S_ISMPB, S_ISMPC, S_ISNWK): Remove unused macros.
5409 (S_ISBLK, S_ISCHR, S_ISCTG, S_ISFIFO, S_ISLNK, S_ISSOCK):
5410 Define to 0 if the corresponding S_IF* macro is not defined.
5411 (mkfifo): Do not define if already defined, or if S_IFIFO
5414 * src/compare.c (diff_archive): Use HAVE_READLINK, not
5415 S_ISLNK, to determine whether to invoke readlink.
5416 * src/create.c (dump_file): Likewise.
5418 * src/extract.c (set_mode):
5419 Do not chmod unless we are root or the -p option was given;
5420 this matches historical practice.
5421 (unlink_destination): New function, which checks for unlink failures.
5422 (maybe_recoverable): Stay quiet if -U.
5423 (extract_archive): Use O_EXCL if unlink_first_option.
5424 Report unlink failures.
5425 Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists.
5426 Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether
5429 * src/incremen.c (get_directory_contents): Depend on
5430 S_ISHIDDEN, not AIX, to determine whether to invoke S_ISHIDDEN.
5432 * src/list.c: Remove S_IS* ifdefs.
5433 * src/misc.c (maybe_backup_file): Likewise.
5435 * src/misc.c (maybe_backup_file):
5436 "Virtual memory exhausted" -> "Memory exhausted",
5437 to conform to the other places this message is issued.
5439 * src/mangle.c (extract_mangle):
5440 Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK.
5442 * src/rtapelib.c (rmt_open__):
5443 Remove typo that caused us to omit the first char
5446 1999-07-16 Paul Eggert <eggert@twinsun.com>
5448 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.13.3.
5450 * doc/tar.texi: A path name is excluded if any of its file name
5451 components matches an excluded pattern, even if the path name was
5452 specified on the command line.
5453 * src/create.c (create_archive): Likewise.
5454 * src/list.c (read_and): Likewise.
5455 * src/update.c (update_archive): Likewise.
5456 * lib/exclude.h (excluded_pathname): New decl.
5457 * lib/exclude.c (_GNU_SOURCE): Define.
5458 (FILESYSTEM_PREFIX_LEN, ISSLASH): New macros.
5459 (excluded_filename_opts): New function.
5460 (excluded_pathname): New function.
5462 * lib/Makefile.am (EXTRA_DIST):
5463 xstrtol.c moved here from libtar_a_SOURCES.
5464 (libtar_a_SOURCES): Move xstrtol.c to EXTRA_DIST.
5465 Remove xstrtoul.c; no longer needed.
5466 * lib/xstrtol.c: Remove.
5468 * src/tar.c (decode_options):
5469 Set newer_time_option to TYPE_MINIMUM, so that
5470 negative timestamps are handled correctly.
5471 Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
5472 uniformity (and so that we don't need to have the other fns).
5473 (main): Remove call to init_total_written; no longer needed.
5475 * configure.in (AC_CHECK_SIZEOF): Remove no-longer-needed
5476 checks for unsigned long and long long.
5477 * src/arith.c: Remove.
5478 * src/Makefile.am (tar_SOURCES): Remove arith.c.
5479 * po/POTFILES.in: Remove src/arith.c.
5480 * src/arith.h: Use double, to simplify configuration gotchas.
5481 (tarlong): Now double.
5482 (TARLONG_FORMAT): New macro.
5483 (BITS_PER_BYTE, BITS_PER_TARLONG, SUPERDIGIT, BITS_PER_SUPERDIGIT,
5484 LONGS_PER_TARLONG, SIZEOF_TARLONG, struct tarlong,
5485 zerop_tarlong_helper, lessp_tarlong_helper, clear_tarlong_helper,
5486 add_to_tarlong_helper, mult_tarlong_helper, print_tarlong_helper,
5487 zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong,
5488 mult_tarlong, print_tarlong): Remove. All callers replaced with
5491 * src/common.h (init_total_written): Remove decl.
5493 * src/buffer.c (total_written):
5494 Remove; replaced with prev_written + bytes_written.
5495 (prev_written): New var.
5496 (init_total_written): Remove.
5497 (print_total_written): Use TARLONG_FORMAT instead of print_tarlong.
5499 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG):
5500 Make sure that we can shift, multiply
5501 and divide unsigned long long values; Ultrix cc can't do it.
5503 * lib/modechange.c (mode_compile): Use uintmax_t, not unsigned long.
5504 Check for any unknown bits, not just unknown bits left of the leftmost
5507 * lib/quotearg.c (quotearg_buffer):
5508 Don't quote spaces if C quoting style.
5509 * src/list.c (from_oct):
5510 Use C quoting style for error; omit trailing NULs.
5512 1999-07-14 Paul Eggert <eggert@twinsun.com>
5514 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.2.
5516 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
5517 <inttypes.h> defines strtoumax as a macro (and not as a function).
5518 HP-UX 10.20 does this.
5520 * src/tar.c (usage): tar-bugs@gnu.org -> bug-tar@gnu.org
5521 * PORTS, README, TODO, doc/tar.texi: Likewise.
5523 1999-07-12 Paul Eggert <eggert@twinsun.com>
5525 * configure.in (AM_INIT_AUTOMAKE): Version 1.13.1.
5526 (LIBOBJS): Add mktime.o to automake 1.4 bug workaround.
5528 * src/list.c (decode_header):
5529 Do not assume that S_IFBLK and S_IFCHR are defined.
5531 * src/create.c (start_header): Do not assume S_IFMT is defined.
5532 (dump_file): Remove unnecessary check for screwy apollo lossage.
5533 Do not assume S_IFBLK and S_IFCHR are defined.
5535 * src/extract.c (extract_archive):
5536 Test whether S_IFCHR and S_IFBLK are nonzero,
5537 not whether they are defined, for consistency with other tests.
5539 * src/buffer.c (is_regular_file):
5540 Don't succeed on files that we can't access due to
5541 permissions problems.
5542 (open_archive): Fix wording on fatal error message.
5543 Don't bother to stat /dev/null if the archive is not a character
5546 * src/compare.c (process_rawdata, diff_sparse_files, diff_archive):
5547 Report an error, not a warning, for I/O errors.
5548 (process_rawdata, process_dumpdir, diff_sparse_files):
5549 Change ungrammatical "Data differs" to "Contents differ".
5550 (get_stat_data): Find hidden files on AIX.
5551 Accept file name as argument; all uses changed.
5552 (get_stat_data, diff_archive): Use system error message for
5553 nonexistent files rather than rolling our own.
5554 (diff_archive): Unknown file types are errors, not warnings.
5555 Normalize spelling of message to "File type differs".
5556 Use get_stat_data to get link status, for consistency.
5557 Do not inspect st_rdev for fifos.
5558 Do not assume st_mode values contain only file types and mode bits.
5559 Check for mode changes and device number changes separately.
5561 * src/update.c (append_file):
5562 Open the file before statting it, to avoid a race.
5563 Complain about file shrinkage only when we reach EOF.
5565 1999-07-08 Paul Eggert <eggert@twinsun.com>
5567 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13 released.
5569 * configure.in (AC_EXEEXT): Add.
5571 * lib/Makefile.am (noinst_HEADERS):
5572 Add basename.h, exclude.h. Remove full-write.h.
5573 (libtar_a_SOURCES): Add exclude.c.
5575 * lib/basename.h, lib/exclude.c, lib/exclude.h, lib/safe-read.h:
5577 * lib/full-write.c: Include safe-read.h instead of full-write.h.
5578 * lib/safe-read.h (safe_read): New decl.
5579 * src/rmt.c: Include safe-read.h.
5580 * src/rtapelib.c: Include basename.h, save-read.h.
5581 (rmt_open__): Use base_name to compute base name.
5584 Include basename.h, exclude.h; don't include full-write.h.
5585 (exclude_option): Remove decl.
5586 (excluded): New decl.
5587 (add_exclude, add_exclude_file, check_exclude): Remove decls.
5589 * src/list.c (read_and):
5590 Use excluded_filename instead of check_exclude.
5591 Check base name of incoming file name, not entire file name, when
5592 deciding whether to exclude it.
5594 * src/create.c (finish_sparse_file):
5595 Use excluded_filename instead of check_exclude.
5596 Don't bother to stat excluded file names.
5597 * src/incremen.c (get_directory_contents): Likewise.
5599 * src/names.c (exclude_pool, exclude_pool_size,
5600 allocated_exclude_pool_size, simple_exclude_array,
5601 simple_excludes, allocated_simple_excludes,
5602 pattern_exclude_array, pattern_excludes,
5603 allocated_pattern_excludes, add_exclude, add_exclude_file,
5605 Remove; now done in ../lib/exclude.c.
5607 * src/tar.c (decode_options): Initialize `excluded'.
5608 Use new add_exclude_file and add_exclude functions.
5610 1999-07-05 Paul Eggert <eggert@twinsun.com>
5612 * m4/gettext.m4: Use changequote rather than [[ ]].
5614 * lib/safe-read.c: Renamed from lib/full-read.c.
5615 (safe_read): Renamed from full_read. All uses changed.
5616 * lib/safe-read.h, lib/full-write.h: New files.
5617 * lib/Makefile.am (noinst_HEADERS): Add full-write.h, safe-read.h.
5618 (libtar_a_SOURCES): Rename full-read.c to safe-read.c.
5619 * lib/full-write.c: Include full-write.h.
5620 * src/common.h: Include full-write.h, safe-read.h.
5621 * src/system.h: (full_read, full_write): Remove decls.
5623 * src/Makefile.am (datadir): New var; needed for Solaris gettext.
5625 * src/system.h (bindtextdomain, textdomain): undef before
5626 defining, to avoid preprocessor warnings with --disable-nls
5627 on hosts whose locale.h includes libintl.h.
5629 * lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol
5630 expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
5631 (strtol, strtoul): New decls (for pre-ANSI hosts), to replace
5634 1999-07-02 Paul Eggert <eggert@twinsun.com>
5636 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/mktime.m4.
5637 * m4/mktime.m4: New file.
5638 * m4/Makefile.am.in, m4/README: Remove these files.
5639 * m4/Makefile.am (EXTRA_DIST): Add mktime.m4;
5640 remove README, Makefile.am.in.
5641 (Makefile.am): Remove rule; it didn't work in BSD/OS 4.0.
5642 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Invoke AC_FUNC_MKTIME,
5645 * src/tar.c: Include signal.h.
5646 (SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not.
5647 (main): Ensure SIGCHLD is not ignored.
5649 (BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION,
5650 MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION,
5651 OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION,
5652 RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION,
5653 VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES,
5654 OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR,
5655 OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH,
5656 OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so
5657 they don't overlap with char codes. Use an enum instead of a lot
5660 * src/system.h (ISASCII): Remove.
5661 (CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID,
5662 S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP,
5663 S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW,
5664 MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX,
5665 LONG_MAX): New macros.
5667 * src/incremen.c (ISDIGIT, ISSPACE): Remove; now in system.h.
5668 (read_directory_file): Cast ISSPACE arg to unsigned char.
5669 * src/misc.c (ISPRINT): Remove; now in system.h.
5670 (remove_any_file): Add brackets to pacify gcc -Wall.
5671 * src/list.c: Don't include <ctype.h>; system.h already does this.
5672 (ISODIGIT, ISSPACE): Remove; now in system.h.
5673 (decode_header): No need to AND mode with 07777; MODE_FROM_OCT
5675 (from_oct): Cast ISSPACE arg to unsigned char.
5677 * src/create.c (mode_to_oct): Translate modes from internal to
5679 * src/list.c (mode_from_oct): Translate modes from external to
5680 internal form. Do not complain about unrecognized mode bits.
5681 * src/common.h (TSUID, TSGID, TSVTX, TUREAD, TUWRITE, TUEXEC,
5682 TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs.
5684 * src/extract.c: (extr_init, make_directories, extract_archive):
5685 Do not assume mode bits have traditional Unix values.
5686 * src/list.c (decode_mode): Likewise.
5687 * src/create.c (start_header, dump_file): Likewise.
5688 * src/buffer.c (child_open_for_compress,
5689 child_open_for_uncompress, open_archive, (close_archive): Likewise.
5690 * src/compare.c (diff_archive): Likewise.
5692 * src/extract.c (set_mode): Use %04 not %0.4 format.
5693 (extract_sparse_file): Do not use data_block uninitialized.
5694 Check for lseek failures.
5696 * src/rtapelib.c (rmt_lseek__):
5697 Convert lseek whence values to portable integers on the wire.
5698 * src/rmt.c (main): Likewise. Check for whence values out of range.
5700 * src/create.c (finish_sparse_file): Use lseek whence macros
5701 instead of integers.
5702 * src/buffer.c (backspace_output): Likewise.
5703 * src/compare.c (diff_archive, verify_volume): Likewise.
5704 * src/delete.c (move_archive): Likewise.
5705 * src/extract.c (extract_sparse_file): Likewise.
5707 * src/create.c (dump_file): Do not invoke finish_sparse_file
5708 on a negative file descriptor.
5710 * src/buffer.c: Add braces to pacify gcc -Wall.
5712 * src/compare.c (diff_sparse_files): Report lseek errors.
5714 * configure.in (ALL_LINGUAS): Add cs, es, ru.
5716 * PORTS, TODO: gnu.ai.mit.edu -> gnu.org
5718 * src/arith.c, src/buffer.c (new_volume): Don't put ^G in
5719 message to be internationalized; \a doesn't work with msgfmt.
5721 * src/tar.c (long_options, main, usage, OPTION_STRING):
5722 Remove -E or --ending-file.
5723 * src/list.c (read_and): Likewise.
5724 * src/common.h (ending_file_option): Likewise.
5725 * src/buffer.c (close_archive): Likewise.
5727 * tests/after: Don't run two commands together in a pipeline,
5728 as some old shells mishandle pipeline exit status.
5730 1999-06-28 Paul Eggert <eggert@twinsun.com>
5732 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64015.
5733 * NEWS: Describe changes since 1.12.
5734 * README: Update bug reporting address; move paxutils ref to NEWS.
5736 Handle EINTR correctly.
5737 * lib/Makefile.am (libtar_a_SOURCES): Add full-read.c, full-write.c.
5738 * lib/full-read.c, lib/full-write.c: New files.
5739 * src/buffer.c (child_open_for_compress, child_open_for_uncompress):
5740 Prefer full_read to read and full_write to write.
5741 * src/compare.c (process_rawdata, diff_sparse_files): Likewise.
5742 * src/create.c (deal_with_sparse, finish_sparse_file, dump_file):
5744 * src/extract.c (extract_sparse_file): Likewise.
5745 * src/rmt.c (get_string, main, report_error_message,
5746 report_numbered_error): Likewise.
5747 * src/rmt.h (rmtread, rmtwrite): Likewise.
5748 * src/rtapelib.c (do_command, get_status_string, rmt_read__,
5749 rmt_write__, rmt_ioctl__): Likewise.
5750 * src/update.c (append_file): Likewise.
5751 * src/system.h (full_read, full_write): New decls.
5753 * po/POTFILES.in: Add lib/argmatch.c, lib/error.c lib/getopt.c,
5754 lib/xmalloc.c, src/arith.c, src/misc.c.
5756 * src/system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5757 New macros. All uses of STDIN and STDOUT changed.
5758 * src/rmt.c (prepare_record_buffer, main): Use STDIN_FILENO
5759 instead of 0 and STDOUT_FILENO instead of 1.
5760 * src/rtapelib.c (_rmt_rexec): Use STDIN_FILENO and STDOUT_FILENO
5761 instead of fileno (stdin) and fileno (stdout) or 0 and 1.
5763 * src/rmt.c (private_strerror): Avoid const. Translate results.
5765 * tests/Makefile.am (TESTS): Remove incremen.sh; it doesn't work
5766 in the presence of NFS clock skew.
5768 1999-06-25 Paul Eggert <eggert@twinsun.com>
5770 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64014.
5772 * src/buffer.c (write_archive_buffer): New function.
5773 (child_open_for_compress, flush_write, flush_read): Use it to write
5775 (open_archive): Report error if fstat of archive fails.
5776 Improve efficiency of check for /dev/null.
5777 Also, fix some corner cases with remote archives and /dev/null checking.
5778 (close_archive): Test for input fifo only if not remote.
5779 Truncate output archive only if it's not remote.
5781 * src/misc.c (remove_any_file):
5782 Don't terminate if you see . or ..; just skip them.
5784 1999-06-18 Paul Eggert <eggert@twinsun.com>
5786 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64013.
5788 Output sizes using a format that's more compatible with
5789 traditional tar (and with GNU Emacs).
5790 * src/common.h (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT,
5791 MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT):
5792 Don't subtract 1 from size.
5793 * src/create.c (to_oct): Prepend leading zeros, not spaces.
5794 Output a trailing NUL unless the value won't fit without it.
5795 (finish_header): No need to append NUL to chksum, now that
5798 1999-06-16 Paul Eggert <eggert@twinsun.com>
5800 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64012.
5802 * src/Makefile.am (LDADD): Link libtar.a after @INTLLIBS@, since
5803 @INTLLIBS@ might invoke rpl_realloc.
5805 * src/tar.c (backup_type): Remove decl; backupfile.h now has it.
5806 (intconv): Remove; use xstrto* fns instead.
5807 ("xstrtol.h"): Include.
5808 (check_decimal): Remove.
5809 (long_options, usage, OPTION_STRING, decode_options):
5810 Remove -y, --bzip2, --unbzip2.
5811 (decode_options): Use xget_version instead of get_version.
5812 Check for overflow with -b and -L and RECORD_SIZE_OPTION.
5813 Replace invocations of check_decimal with xstrtoumax.
5815 * tests/preset.in (echo_n, echo_c): Remove.
5817 * tests/after: Don't rely on $echo_c and $echo_n.
5819 * lib/addext.c, lib/dirname.c, lib/lchown.c, lib/lchown.h,
5820 lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c,
5821 lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c,
5822 lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c,
5823 m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4,
5824 m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4,
5825 m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4,
5826 m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4,
5827 m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4,
5828 m4/xstrtoumax.m4: New files.
5830 * configure.in(fp_PROG_ECHO): Remove; no longer needed.
5831 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
5832 (jm_AC_HEADER_INTTYPES_H): Replaces inline code.
5833 (jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add.
5834 (AC_CHECK_FUNCS): Remove lchown.
5835 (AC_REPLACE_FUNCS): Remove basename, dirname.
5836 Add lchown, strtol, strtoul.
5837 (jm_FUNC_MKTIME): Add.
5838 (LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS
5839 are also built via the ANSI2KNR-filtering rules.
5840 Use a no-op line to work around bug in automake 1.4 with malloc and
5842 (AC_OUTPUT): Add m4/Makefile.
5844 * lib/Makefile.am (EXTRA_DIST):
5845 Add lchown.c, malloc.c, mktime.c, realloc.c,
5846 strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c.
5847 (noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h.
5848 (libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c,
5849 xstrtoul.c, xstrtoumax.c. Remove getversion.c.
5850 ($(srcdir)/getdate.c:): Remove `expect conflicts' line.
5852 * src/system.h (uintmax_t): Don't declare; configure now does this.
5854 * src/common.h (backup_type): New decl.
5855 * src/common.h, src/misc.c, src/tar.c:
5856 Move include of backupfile.h to common.h.
5858 * src/misc.c (maybe_backup_file):
5859 Pass backup_type to find_backup_file_name.
5861 * src/list.c (print_header): Change sizes of uform and gform from 11 to
5862 UINTMAX_STRSIZE_BOUND.
5864 * doc/tar.texi: Remove --bzip2.
5865 Fix @xref typos reported by latest makeinfo.
5867 * Makefile.am (ACLOCAL_AMFLAGS): New macro.
5869 (M4DIR, ACINCLUDE_INPUTS): New macros.
5870 ($(srcdir)/acinclude.m4): New rule.
5872 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
5873 HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs;
5874 now generated automatically by autoconf.
5876 1999-05-15 Paul Eggert <eggert@twinsun.com>
5878 * doc/tar.texi: Remove -y.
5880 1999-04-09 Paul Eggert <eggert@twinsun.com>
5882 * src/system.h (INT_STRLEN_BOUND): Fix off-by-factor-of-10 typo
5883 (we were allocating too much storage).
5884 (uintmax_t): Don't declare; configure now does this.
5886 * ABOUT-NLS: Update to gettext 0.10.35 edition.
5888 1999-03-22 Paul Eggert <eggert@twinsun.com>
5890 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64010
5892 * acinclude.m4 (AC_LFS_FLAGS):
5893 Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default.
5894 (AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS.
5895 (jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros.
5897 * configure.in (jm_FUNC_MALLOC, jm_FUNC_REALLOC):
5898 New macros; needed for latest GNU xmalloc.c.
5900 * Makefile.am (noinst_HEADERS): Add quotearg.h, xalloc.h.
5901 (libtar_a_SOURCES): Add quotearg.c.
5902 * list.c: Include <quotearg.h>.
5903 (from_oct): Add forward decl.
5904 (read_header): Return HEADER_FAILURE if we can't parse the checksum.
5905 (from_oct): Report an error only if TYPE is nonzero.
5906 Quote any funny characters in bad header.
5908 1999-03-20 Paul Eggert <eggert@twinsun.com>
5910 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64009
5912 * acinclude.m4 (AC_LFS_FLAGS): Add support for IRIX 6.2 and later.
5913 (AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers
5915 (AC_LFS): Simplify AIX revision number test.
5917 1999-03-17 Paul Eggert <eggert@twinsun.com>
5919 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64008
5921 * configure.in (AC_VALIDATE_CACHED_SYSTEM_TUPLE):
5922 Remove; it doesn't work that well
5923 with AC_CANONICAL_HOST.
5924 (fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc.
5926 * Makefile.am (EXTRA_DIST): Remove AC-PATCHES, AM-PATCHES, BI-PATCHES.
5928 * Makefile.am (EXTRA_DIST): Remove gmalloc.c.
5930 * acinclude.m4 (fp_WITH_INCLUDED_MALLOC): Remove.
5932 * tar.texi: Fix bug-report addr.
5934 * README: Remove --with-included-malloc.
5935 Upgrade version numbers of build software.
5937 1999-03-07 Paul Eggert <eggert@twinsun.com>
5939 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64007.
5941 * acinclude.m4 (AM_WITH_NLS): Port to Solaris 2.5.1,
5942 where bindtextdomain and gettext require -lintl.
5943 (AC_LFS_FLAGS): Simplify so that it only gets the flags;
5944 `no' means it failed.
5945 (AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros.
5946 (AC_LFS): Use them. Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and
5947 _LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need
5948 to add anything to the command line (it's all in config.h).
5949 Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS.
5951 1999-03-01 Paul Eggert <eggert@twinsun.com>
5953 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64006.
5955 * acinclude.m4 (AC_LFS_FLAGS): Port to AIX 4.2.
5957 * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
5958 mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
5959 uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros
5960 like OFF_MAX, which are not reliable
5961 (e.g. OFF_MAX in AIX 4.2 is incorrect).
5962 * src/system.h (GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX,
5963 SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX): Remove; no longer used.
5965 * src/incremen.c (get_directory_contents):
5966 Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2.
5967 Have statx depend on STX_HIDDEN, not AIX.
5969 * src/create.c (to_oct):
5970 New parameter substitute, giving a substitute value to use
5971 when the original value is out of range. Do not append a space to the
5972 output; modern tars don't. When a value is out of range, specify the
5973 maximum value, not the number of bits.
5974 (GID_NOBODY, UID_NOBODY): New macros.
5975 (gid_to_oct, uid_to_oct): Use them as substitutes.
5976 (finish_header): Do not assume that UINTMAX_TO_OCT appends a space.
5977 (dump_file): Check whether the file changed as we read it.
5979 * src/rmt.c (main): Remove suspicious AIX/386 code.
5981 1999-02-19 Paul Eggert <eggert@twinsun.com>
5983 * intl/localealias.c (read_alias_file): Don't assume that memcpy
5984 returns a type compatible with char *; it doesn't on SunOS
5985 4.1.4 with Sun cc, since <string.h> doesn't declare memcpy.
5987 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64005.
5989 * src/tar.c (long_options, usage): Prefer --unbzip2 to --bunzip2.
5990 * doc/tar.texi: Add --bzip2, --unbzip2 options.
5992 * configure.in (AC_CANONICAL_HOST, AC_VALIDATE_CACHED_SYSTEM_TUPLE):
5994 (AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this.
5995 (AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this.
5996 * acinclude.m4 (AM_WITH_NLS):
5997 Update to latest gettext version (serial 5).
5998 (AC_LFS_FLAGS): New macro
5999 (AC_LFS): Use it. Append to CFLAGS, LDFLAGS, LDLIBS instead of
6000 working only with unset variables. Append to CFLAGS, not CPPFLAGS.
6001 Work properly in cross-compilation scenario, by checking for getconf
6002 with AC_CHECK_TOOL and by ditching uname in favor of
6003 AC_CANONICAL_HOST and $host_os. Add --disable-lfs option.
6005 * lib/getdate.y: Update to fileutils 4.0 getdate.y, with one patch:
6006 replace FORCE_ALLOCA_H with HAVE_ALLOCA_H.
6007 * lib/Makefile.am (AUTOMAKE_OPTIONS): Append ../src/ansi2knr,
6008 since getdate.y now uses ANSI code.
6010 * config.guess, config.sub: New files; taken from automake 1.4.
6012 * intl/Makefile.in, intl/VERSION, intl/bindtextdom.c,
6013 intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c,
6014 intl/explodename.c, intl/finddomain.c, intl/gettext.c,
6015 intl/gettext.h, intl/gettextP.h, intl/hash-string.h,
6016 intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h,
6017 intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c:
6018 Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109.
6020 1999-02-01 Paul Eggert <eggert@twinsun.com>
6022 * src/tar.c: Update copyright.
6026 1999-02-01 Paul Eggert <eggert@twinsun.com>
6028 * NEWS, configure.in: Version 1.12.64004
6030 * configure.in (AC_LFS): Use this macro, instead of open-coding it.
6032 * acinclude.m4 (AC_LFS, AM_PROG_CC_STDC): New macros.
6034 * src/extract.c (extract_archive): Fix bug when extracting sparse
6035 files: they were trashing the tar file header.
6037 * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
6038 Add -y or --bzip2 or --bunzip2 option.
6040 1999-01-30 Paul Eggert <eggert@twinsun.com>
6042 * src/names.c (cached_no_such_uname, cached_no_such_gname,
6043 cached_no_such_uid, cached_no_such_gid): New vars.
6044 (uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid):
6045 Cache failures, too.
6047 * src/tar.c (decode_options):
6048 Don't pass names longer than UNAME_FIELD_SIZE to
6049 uname_to_uid, as it messes up the cache. Similarly for gname_to_uid.
6051 1999-01-27 Paul Eggert <eggert@twinsun.com>
6053 * NEWS, configure.in: Version 1.12.64003
6055 * src/buffer.c (backspace_output, close_archive): Cast
6056 rmtlseek position arg to off_t, for benefit of K&R compilers
6058 * src/compare.c (verify_volume): Likewise.
6060 * NEWS, configure.in: Version 1.12.64002
6062 * src/create.c (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
6063 off_to_oct, size_to_oct, time_to_oct, uid_to_oct):
6064 Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long.
6065 * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
6066 mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
6067 uid_from_oct): Likewise.
6069 1999-01-25 Paul Eggert <eggert@twinsun.com>
6071 * incremen.sh: Fix timing bug in regression test.
6073 1999-01-22 Paul Eggert <eggert@twinsun.com>
6075 * NEWS, configure.in: Update version
6077 * Makefile.am (localedir): Change to $(datadir)/locale.
6078 (DEFS): New macro, defining LOCALEDIR.
6079 (tar.o, tar._o, rmt.o, rmt._o): Remove.
6080 (INCLUDES): Add -I..
6082 * Makefile.am (localedir): Change to $(datadir)/locale.
6084 1999-01-21 Paul Eggert <eggert@twinsun.com>
6086 * NEWS, README, configure.in: Unofficial version 1.12.64001.
6088 * tests/Makefile.am (localedir): Change to $(datadir)/locale.
6089 * src/Makefile.am (localedir): Likewise.
6090 (DEFS): New macro, defining LOCALEDIR.
6091 (tar.o, tar._o, rmt.o, rmt._o): Remove.
6092 (INCLUDES): Add `-I..'.
6094 * tests/incremen.sh: Fix timing bug.
6096 1999-01-20 Paul Eggert <eggert@twinsun.com>
6098 * NEWS, README, configure.in: Unofficial version 1.12.64000.
6099 `lfs.7' changed to `64000' in version number
6100 to conform to gnits standards.
6102 * COPYING, INSTALL, doc/texinfo.tex, install-sh, missing,
6103 mkinstalldirs, ansi2knr.c: Update to latest public versions.
6105 Rebuild with automake 1.4 and autoconf 2.13, to work around some
6108 1998-12-07 Paul Eggert <eggert@twinsun.com>
6110 * NEWS, README, configure.in: Unofficial version 1.12.lfs.6.
6112 * src/list.c (read_header):
6113 Accept file names as specified by POSIX.1-1996 section 10.1.1.
6115 1998-11-30 Paul Eggert <eggert@twinsun.com>
6117 * configure.in: Quote the output of uname.
6119 * src/extract.c (set_stat): chmod after chown even when not root;
6120 if we are using --same-owner this is needed e.g. on Solaris 2.5.1.
6122 1998-11-15 Paul Eggert <eggert@twinsun.com>
6124 * NEWS, README, configure.in: Unofficial version 1.12.lfs.5.
6126 * configure.in (ac_test_CPPFLAGS, ac_test_LDFLAGS, ac_test_LIBS,
6127 ac_getconfs, ac_result): Special case for HP-UX 10.20 or later.
6129 1998-10-28 Paul Eggert <eggert@twinsun.com>
6131 * NEWS, README, configure.in: Unofficial version 1.12.lfs.4.
6133 * src/system.h (voidstar): Use void * if __STDC__ is defined,
6136 * src/rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC.
6137 On many installations, rexec is disabled.
6139 1998-08-07 Paul Eggert <eggert@twinsun.com>
6141 * NEWS, README, configure.in: Unofficial version 1.12.lfs.3.
6143 * src/names.c (uid_to_uname, gid_to_gname): Don't used cached name
6144 for nameless users and groups.
6146 1998-02-17 Paul Eggert <eggert@twinsun.com>
6148 * NEWS, README, configure.in: Unofficial version 1.12.lfs.2.
6149 * NEWS, README: Add explanation of why this isn't an official version.
6151 1998-02-02 Paul Eggert <eggert@twinsun.com>
6153 * NEWS, README, configure.in: Unofficial version 1.12.lfs.1.
6154 This is an unofficial version.
6156 1997-12-17 Paul Eggert <eggert@twinsun.com>
6158 * src/incremen.c (ST_DEV_MSB): New macro.
6159 (NFS_FILE_STAT): Use most significant bit of st_dev,
6160 even if it's unsigned.
6162 1997-12-08 Paul Eggert <eggert@twinsun.com>
6164 * src/system.h (ST_NBLOCKS): Fix typo in definition.
6166 1997-11-19 Paul Eggert <eggert@twinsun.com>
6168 * configure.in (HAVE_INTTYPES_H):
6169 Don't ignore cache variable if it's already set.
6171 1997-11-10 Paul Eggert <eggert@twinsun.com>
6173 * src/rmt.c (main): Don't assume mt_count is of type daddr_t.
6174 * src/delete.c (records_read): Now off_t.
6175 (move_archive): Don't assume mt_count is of type daddr_t.
6177 1997-10-30 Paul Eggert <eggert@twinsun.com>
6179 * configure.in (CPPFLAGS, LDFLAGS, LIBS):
6180 Set to appropriate values if large file support
6181 needs explicit enabling.
6182 (HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t,
6184 New macros to configure.
6185 (AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add.
6187 * acconfig.h (daddr_t, HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING,
6188 major_t, minor_t, ssize_t): New macros.
6190 * src/arith.h (TARLONG_FORMAT):
6191 Fix typo: %uld -> %lu. Use unsigned when long long
6193 (add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long.
6194 (add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long.
6196 * src/arith.c (add_to_tarlong_helper, mult_tarlong_helper):
6197 2nd arg is now unsigned long.
6199 * src/rmt.c (allocated_size): Now size_t, and now initialized to 0.
6200 (prepare_record_buffer): Arg is now size_t.
6201 Remove now-useless casts.
6203 (main): Use `long' for status, so that it can store ssize_t.
6204 Use daddr_t, mode_t, size_t, off_t when appropriate.
6205 Convert daddr_t and off_t values ourselves, since they might be longer
6206 than long. Convert other types using `long' primitives.
6207 When processing MTIOCTOP, do not try to pass resulting
6208 count back, since it won't work (it could be too large) and it's
6209 not expected anyway.
6212 (append_file) Use off_t, size_t, ssize_t when appropriate. Remove
6213 now-useless casts. Use unsigned long to print *_t types, except use
6214 STRINGIFY_BIGINT for off_t.
6215 (update_archive): Cast -1 to dev_t when necessary.
6217 * src/tar.c (check_decimal):
6218 Now returns 1 if successful, 0 otherwise, and returns
6219 uintmax_t value into new arg. Check for arithmetic overflow.
6220 (decode_options): Avoid overflow if record_size fits in size_t but not int.
6221 Check for overflow on user or group ids.
6223 * src/compare.c (diff_init, process_rawdata, read_and_process,
6224 diff_sparse_files, diff_archive):
6225 Use off_t, pid_t, size_t, ssize_t when appropriate.
6226 Remove now-useless casts. Use unsigned long to print *_t types,
6227 except use STRINGIFY_BIGINT for off_t.
6229 (process_noop, process_rawdata, process_dumpdir, read_and_process):
6230 Size arg is now size_t.
6232 (diff_sparse_files): Arg is now off_t. Check for size_t overflow
6233 when allocating buffer.
6236 (do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__):
6237 Use pid_t, size_t, ssize_t when appropriate. Remove now-useless casts.
6238 Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for
6241 (get_status_string, get_status_off): New function.
6242 (get_status): Now returns long, so that it can store ssize_t.
6243 Invoke get_status_string to do the real work.
6244 (rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t.
6245 (rmt_lseek__): Now returns off_t, using new get_status_off function.
6246 (rmt_ioctl__): Convert mt_count by hand,
6247 since it might be longer than long.
6249 * src/mangle.c (extract_mangle):
6250 Check for overflow when converting off_t to size_t.
6251 Use off_t, size_t when appropriate. Remove now-useless casts.
6253 * src/system.h (mode_t): Remove; now done by autoconf.
6254 (ST_NBLOCKS): Do not overflow if st_size is near maximum.
6255 Return number of ST_NBLOCKSIZE-byte blocks,
6256 not number of 512-byte blocks;
6257 this also helps to avoid overflow.
6258 (st_blocks): Declare if needed.
6259 (ST_NBLOCKSIZE): New macro.
6260 (<limits.h>, <inttypes.h>): Include if available.
6261 (CHAR_BIT): New macro.
6262 (uintmax_t): New typedef.
6263 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND,
6264 UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX,
6265 OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros.
6267 * src/names.c (name_init):
6268 Fix typo in error message: FILE* was passed, but char*
6271 (read_name_from_file, name_gather, addname, name_match, name_scan,
6272 add_exclude): Use size_t when appropriate. Remove now-useless casts.
6274 (exclude_pool_size, allocated_exclude_pool_size): Now size_t.
6276 * src/extract.c (newdir_umask, current_umask): Now mode_t.
6277 (extract_sparse_file): Args now use off_t.
6279 (set_mode, set_stat, make_directories, extract_sparse_file,
6280 extract_archive): Use off_t, size_t, ssize_t when appropriate. Remove
6281 now-useless casts. Use unsigned long to print *_t types, except use
6282 STRINGIFY_BIGINT for off_t.
6284 * src/misc.c (quote_copy_string):
6285 Use size_t when appropriate. Remove now-useless casts.
6287 * src/list.c (read_and, list_archive, read_header, decode_mode,
6288 print_header, print_for_mkdir):
6289 Use mode_t, off_t, size_t when appropriate. Remove
6290 now-useless casts. Use unsigned long to print *_t types, except use
6291 STRINGIFY_BIGINT for off_t.
6293 (read_header): Check for overflow when converting header size.
6295 (from_oct): Now static. Now returns uintmax_t. `where' arg is now
6296 const char *. Size arg is now size_t. Now takes new type and maxval
6297 args. Compute result using uintmax_t, not long. Report error if
6298 field does not contain octal number in range.
6299 (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
6300 off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
6301 uintmax_from_oct): New functions.
6303 (stringify_uintmax_t_backwards): New function.
6305 (decode_mode, print_for_mkdir): Mode arg is now mode_t.
6306 (skip_file): Offset arg is now off_t.
6308 * src/buffer.c (record_start_block, save_totsize, save_sizeleft,
6309 real_s_totsize, real_s_sizeleft, current_block_ordinal):
6311 (write_error): Arg is now ssize_t.
6312 (child_pid): Now pid_t.
6313 (available_space_after): Now size_t.
6315 (child_open_for_compress, child_open_for_uncompress, flush_write,
6316 open_archive, flush_write, write_error, flush_read, close_archive):
6317 Use pid_t, ssize_t, size_t when appropriate. Remove now-useless
6318 casts. Use unsigned long to print *_t types, except use
6319 STRINGIFY_BIGINT for off_t.
6321 * src/delete.c (records_read): Now daddr_t.
6322 (move_archive): Arg is now daddr_t. Check for overflow when
6324 (move_archive, delete_archive_members): Use daddr_t, off_t when
6325 appropriate. Remove now-useless casts.
6327 * src/rmt.h (rmt_read__, rmt_write__): Now returns ssize_t.
6328 (rmt_lseek): Now returns off_t.
6330 * src/create.c (to_oct):
6331 Now static. Value arg is now uintmax_t. Accept new args
6332 giving name of type of octal field, for error messages. Report an
6333 error if the value is too large to fit in the field.
6334 (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
6335 size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions.
6337 (write_eot, write_long, finish_header, deal_with_sparse,
6338 finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when
6339 appropriate. Remove now-useless casts. Use unsigned long to print
6340 *_t types, except use STRINGIFY_BIGINT for off_t.
6342 (find_new_file_size): 1st arg is now off_t*.
6343 (finish_sparse_file): Args now use off_t, not long.
6344 Check for lseek error.
6345 (create_archive, dump_file): Cast -1 to dev_t when necessary.
6346 (dump_file): Device arg is now dev_t.
6347 Avoid overflow when testing whether file has holes
6348 by using the new ST_NBLOCKSIZE macro.
6350 * src/incremen.c (struct accumulator, add_to_accumulator,
6351 get_directory_contents, add_hierarchy_to_namelist, gnu_restore):
6352 Use size_t for sizes.
6353 (struct directory, get_directory_contents, add_hierarchy_to_namelist):
6354 Use dev_t, ino_t for devices and inodes.
6355 (gnu_restore): Use off_t for file offsets.
6356 (struct directory): Use char for flags. Add new flag `nfs'.
6358 (NFS_FILE_STAT): New macro.
6359 (note_directory): Accept struct stat * instead of
6360 device and inode number. All callers changed.
6361 (note_directory, get_directory_contents):
6362 Use NFS_FILE_STAT to determine whether directory is an NFS directory.
6363 (write_dir_file): Cast time_t to unsigned long before printing as %lu.
6365 * src/common.h (record_size, struct name, struct sp_array,
6366 available_space_after):
6367 Use size_t for sizes.
6368 (save_sizeleft, save_totsize, current_block_ordinal, skip_file):
6369 Use off_t for file offsets.
6370 (struct name): dir_contents is now const char *, not char *.
6371 (dump_file, get_directory_contents): Use dev_t for devices.
6372 (to_oct): Remove decl.
6373 (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT,
6374 UID_TO_OCT, UINTMAX_TO_OCT, OFF_TO_OCT, TIME_TO_OCT, STRINGIFY_BIGINT,
6375 GID_FROM_OCT, MAJOR_FROM_OCT, MINOR_FROM_OCT, MODE_FROM_OCT,
6376 OFF_FROM_OCT, SIZE_FROM_OCT, TIME_FROM_OCT, UID_FROM_OCT,
6377 UINTMAX_FROM_OCT): New macros.
6378 (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
6379 size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
6380 stringify_uintmax_t_backwards, gid_from_oct, major_from_oct,
6381 minor_from_oct, mode_from_oct, off_from_oct, size_from_oct,
6382 time_from_oct, uid_from_oct, uintmax_from_oct): New decls.
6383 (print_for_mkdir): 2nd arg is now mode_t.
6385 See ChangeLog.1 for earlier changes.
6389 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free Software
6392 This file is part of GNU tar.
6394 GNU tar is free software; you can redistribute it and/or modify
6395 it under the terms of the GNU General Public License as published by
6396 the Free Software Foundation; either version 2, or (at your option)
6399 GNU tar is distributed in the hope that it will be useful,
6400 but WITHOUT ANY WARRANTY; without even the implied warranty of
6401 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6402 GNU General Public License for more details.
6404 You should have received a copy of the GNU General Public License
6405 along with GNU tar; see the file COPYING. If not, write to
6406 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
6407 Boston, MA 02110-1301, USA.
6411 version-control: never