]> Dogcows Code - chaz/tar/blob - ChangeLog
Update
[chaz/tar] / ChangeLog
1 2006-06-09 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 * doc/Makefile.am (tar_TEXINFOS): Add intern.texi
4 (EXTRA_DIST): Remove convtexi.pl, add texify.sed
5 * doc/intern.texi: New file
6 * doc/convtexi.pl: Remove
7 * doc/texify.sed: Auxiliary script to convert ../src/tar.h to
8 header.texi
9 * doc/rendition.texi: Fix typo
10 * doc/tar.texi: Update
11 * src/tar.h: Fix indentation, introduce end-of-format marker for
12 texify.sed
13
14 * THANKS: Add Jason Armistead
15 * doc/tar.texi: Update
16 * NEWS: Update
17 * src/buffer.c: Implement more flexible checkpoint style
18 * src/common.h (checkpoint_option): Change type to unsigned
19 (checkpoint_style): New variable.
20 * src/tar.c: --checkpoint takes an optional argument specifying
21 number of records between two successive checkpoints (proposed
22 by Jason Armistead on 2004-06-22). Optional dot starting the
23 argument means "print dots instead of textual checkpoints".
24 (tar_help): New function
25 * src/transform.c: Minor fixes.
26
27 2006-06-08 Sergey Poznyakoff <gray@gnu.org.ua>
28
29 * gnulib.modules: Add mkdtemp
30 * doc/dumpdir.texi: New file
31 * doc/Makefile.am (tar_TEXINFOS): Add dumpdir.texi
32 * doc/tar.texi: Document dumpdir format
33 * src/incremen.c (dumpdir_locate,obstack_code_rename):
34 (purge_directory): Re-implement renaming. Introduce
35 'X' control code.
36 (make_tmp_dir_name): Remove
37
38 * src/transform.c (set_transform_expr,_transform_name_to_obstack):
39 Implement NUMBER flag.
40 (add_char_segment): Fix length assignement
41
42 * doc/tar.texi: Update
43
44 2006-06-07 Sergey Poznyakoff <gray@gnu.org.ua>
45
46 * src/transform.c (transform_name_fp): Run fun even if
47 _transform_name_to_obstack returns false.
48 (_transform_name_to_obstack,set_transform_expr): Implement GNU
49 extension case conversion operations.
50
51 * doc/tar.texi (transform): Document the option.
52
53 2006-06-02 Sergey Poznyakoff <gray@gnu.org.ua>
54
55 * NEWS: Update
56 * src/common.h (set_transform_expr): New function
57 * tests/Makefile.am: Add incr04.at
58 * tests/testsuite.at: Likewise
59 * tests/incr04.at: New test case
60 * tests/long01.at: Fix typo in the comment
61 * tests/multiv04.at: Use genfile --files-from
62
63 (Above changes need new genfile.c from paxutils)
64
65 * TODO: Update
66 * NEWS: Update
67 * doc/tar.texi: Update
68 * src/transform.c: New file
69 * src/Makefile.am (tar_SOURCES): New module transform.c
70 * src/common.h (transform_name, transform_name_fp): New functions
71 (show_stored_names_option): Renamed to
72 show_transformed_names_option. All uses changed
73 * src/create.c (dump_file0): Transform file name
74 * src/extract.c (extract_archive): safer_name_suffix and
75 stripped_prefix_len are now called by decode_header
76 * src/list.c (print_header): Update displayable name selection.
77 * src/tar.c: New option --transform
78 New option --show-transformed-names generalizes
79 --show-stored-names. The latter is retained as an alias.
80
81 2006-05-31 Sergey Poznyakoff <gray@gnu.org.ua>
82
83 * src/incremen.c (make_directory): Fix initialization of struct
84 directory.
85
86 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
87
88 * doc/tar.texi: Document use of globbing patterns.
89 * src/tar.c (parse_opt): Add comment before --preserve case.
90
91 2006-05-24 Sergey Poznyakoff <gray@gnu.org.ua>
92
93 * NEWS: Update
94 * doc/tar.texi: Update
95 * configure.ac (AM_INIT_AUTOMAKE): Use tar-ustar option. Raise
96 version requirement to 1.9
97 * src/common.h (struct name): Refactured
98 (warn_regex_usage): New variable.
99 (dump_file): First argument is const char*.
100 (name_init,name_add): Removed
101 (name_add_name,name_add_dir): New functions
102 (name_next): Return const char*.
103 * src/create.c: (dump_file,dump_file0): First argument is const
104 char*. All callers updated.
105 * src/names.c: Rewritten handling of member names in the command
106 line. Tar no longer attempts to guess globbing patterns, instead
107 it relies on --wildcard option.
108 (init_names): Removed.
109 (struct name_elt): New structure.
110 (name_array): Change type to struct name_elt. All references updated
111 (name_add_name,name_add_dir): New functions
112 (name_next_elt): New function
113 (name_next): Rewritten using name_next_elt.
114 (namelist_match): Rewritten pattern matching using
115 exclude_fnmatch.
116 (names_notfound): Warn if globbing patterns were used without
117 --wildcards option
118 * src/tar.c (options): Move globbing-related options into a
119 separate group. Set -l as an alias to --check-links, as required
120 by UNIX98
121 (struct tar_args): New fields
122 wildcards,matching_flags,include_anchored
123 (MAKE_EXCL_OPTIONS,MAKE_INCL_OPTIONS): New macros
124 (parse_opt): Use x2nrealloc to grow archive_name_array.
125 Use MAKE_EXCL_OPTIONS,MAKE_INCL_OPTIONS to create appropriate
126 fnmatch options, and name_add_name,name_add_dir to handle member
127 name and -C arguments.
128 (decode_options): Likewise
129 (main): Remove call to init_names.
130
131 * tests/append.at, tests/append01.at, tests/extrac01.at,
132 tests/options.at, tests/options02.at, tests/same-order01.at,
133 tests/same-order02.at: Make AT_SETUP more readable.
134
135 2006-05-23 Sergey Poznyakoff <gray@gnu.org.ua>
136
137 * src/buffer.c (change_tape_menu): Fix typo (uninitialized
138 variable) introduced yesterday.
139
140 2006-05-22 Sergey Poznyakoff <gray@gnu.org.ua>
141
142 * doc/tar.texi: Use @var{file_name} instead of @var{file name}
143 * src/buffer.c (change_tape_menu): Break the loop after obtaining
144 new archive name. Check for empty input line.
145
146 2006-05-15 Sergey Poznyakoff <gray@gnu.org.ua>
147
148 * tests/atlocal.in (XFAILFILE): New variable
149 * tests/version.at: Create $XFAILFILE on failure
150 * tests/testsuite.at (AT_TAR_CHECK): Declare expected failure if
151 $XFAILFILE exists.
152
153 2006-05-13 Sergey Poznyakoff <gray@gnu.org.ua>
154
155 * THANKS: Update
156 * src/buffer.c (read_header0): Use read_header_primitive to avoid
157 clubbering current_tar_info. All callers updated.
158 * src/common.h (read_header_primitive): New function
159 * src/extract.c (extract_volhdr): New function
160 (prepare_to_extract): Use extract_volhdr as extractor for volume
161 names.
162 * src/list.c (read_header_primitive): New function
163 (read_header): Front end for read_header_primitive
164 * tests/chtype.at: New file
165 * tests/volsize.at: New file
166 * tests/Makefile.am (TESTSUITE_AT): Add chtype.at, volsize.at
167 (check-full): New target.
168 * tests/atlocal.in (TEST_DATA_URL,STAR_DATA_URL)
169 (STAR_TESTSCRIPTS): Provide default values.
170 (tarball_prereq): New function
171 * tests/testsuite.at (AT_TARBALL_PREREQ): New defun
172 (AT_STAR_PREREQ): Rewrite using tarball_prereq
173 Include chtype.at and volsize.at
174 * tests/volume.at: Add keywords.
175
176 * tests/star/gtarfail.at, tests/star/gtarfail2.at,
177 tests/star/multi-fail.at, tests/star/pax-big-10g.at,
178 tests/star/ustar-big-2g.at, tests/star/ustar-big-8g.at
179 (AT_STAR_PREREQ): Provide md5 sum.
180
181 * lib/.cvsignore: Update
182
183 2006-05-08 Sergey Poznyakoff <gray@gnu.org.ua>
184
185 * tests/testsuite.at (AT_SORT_PREREQ, AT_UNPRIVILEGED_PREREQ): New
186 defines
187
188 * tests/extrac04.at, tests/incr03.at, tests/listed02.at,
189 tests/pipe.at, tests/rename01.at, tests/rename02.at,
190 tests/rename03.at, tests/same-order01.at: Call
191 AT_SORT_PREREQ. Remove fd 2 redirection after calls to sort
192 * ignfail.at: Call AT_UNPRIVILEGED_PREREQ
193
194 2006-05-08 Sergey Poznyakoff <gray@gnu.org.ua>
195
196 Listed incremental backups: keep more information about
197 directories. Handle renamed directories more effectively
198 (initial implementation, more updates to follow).
199 Source tree before this point is tagged
200 alpha_1_15_90_incremental_1.
201
202 * NEWS: Update
203 * configure.ac: Raise version number to 1.15.91
204 * src/common.h (rename_directory,append_incremental_renames): New
205 functions.
206 * src/extract.c (rename_directory): New function
207 * src/incremen.c (struct directory.contents, flags): New members
208 (nfs,found,new): Remove. Replaced by appropriate bitmask values in
209 `flags' field. All uses updated.
210 (directory_meta_table): New table.
211 (hash_directory): Rename to hash_directory_name
212 (compare_directories): Rename to compare_directory_names
213 (hash_directory_meta,compare_directory_meta,find_directory_meta):
214 New functions
215 (compare_dirents): Removed
216 (note_directory): Get 7th argument: directory contents.
217 All callers updated
218 (dumpdir_locate,makedumpdir): New functions
219 (scan_directory): Rewritten. Use makedumpdir to create a sorted
220 dumpdir array. This makes the obstack argument unnecessary. Besides,
221 ALL_CHILDREN flag is set only for new directories.
222 (procdir): Change return type to struct directory. Return
223 immediately if the directory was already initialized. Discover
224 directory renames using directory_meta_table.
225 (append_incremental_renames): New function.
226 (read_directory_file, write_directory_file): Use new snapshot file
227 format.
228 * src/names.c (collect_and_sort_names): Update dir_contents of the
229 first non-fake name entry when in listed incremental mode.
230
231 * tests/incr03.at: New testcase
232 * tests/rename01.at: New testcase
233 * tests/rename02.at: New testcase
234 * tests/rename03.at: New testcase
235 * tests/Makefile.am: Add
236 incr03.at,rename01.at,rename02.at,rename03.at
237 * tests/testsuite.at: Likewise.
238 * tests/listed02.at: Update for the new behavior
239 * tests/multiv04.at (AT_KEYWORDS): Add missing incremental kw.
240
241 2006-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
242
243 * src/buffer.c (try_new_volume): Attempt to continue if the name
244 is apparently truncated in a GNU format volume.
245
246 * tests/comprec.at, tests/delete01.at, tests/delete02.at,
247 tests/delete04.at, tests/delete05.at, tests/extrac05.at,
248 tests/listed01.at, tests/multiv01.at, tests/multiv02.at,
249 tests/pipe.at, tests/same-order01.at, tests/same-order02.at,
250 tests/sparse01.at, tests/sparse03.at: Always use genfile --file,
251 this enables extra error checking.
252
253 * tests/multiv03.at: Attempt to extract a member with truncated
254 file name from the archive.
255
256 * src/buffer.c (_open_archive): Remove unnecessary argument to
257 check_compressed_archive.
258
259 2006-04-25 Sergey Poznyakoff <gray@gnu.org.ua>
260
261 * tests/sparse01.at, tests/sparse02.at, tests/sparse03.at,
262 tests/sparsemv.at, tests/sparsemvp.at: Skip the test if the file
263 system does not support sparse files.
264 * doc/tar.texi (@copying): Remove the reference to not existing
265 invariant section.
266
267 2006-04-11 Sergey Poznyakoff <gray@gnu.org.ua>
268
269 * src/extract.c (extract_dir): Fix toggling existing directory
270 permissions (Debian bug #361077). Use parts of patch provided by
271 Ian Jackson <iwj@ubuntu.com>.
272 * src/compare.c: Minor changes
273 * src/incremen.c (directory.new): New member
274 (note_directory,find_directory: Use make_directory to create
275 struct directory entries
276 (procdir): Avoid duplicating directories in the incremental
277 backup map.
278 * tests/Makefile.am (TESTSUITE_AT): Add extrac06.at
279 * tests/testsuite.at: Include extrac06.at
280
281 2006-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (trivial change)
282
283 * tests/atlocal.in (PATH): Add build-aux from the source tree,
284 not the build tree.
285
286 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
287
288 * THANKS: Add Benno Schulenberg
289
290 2006-03-13 Jim Meyering <jim@meyering.net>
291
292 * tests/listed02.at: Sort the two lines of stderr from the
293 first `tar -v --listed-incremental'. They would come out
294 reversed and provoke a test failure on a tmpfs
295 file system.
296
297 2006-03-13 Benno Schulenberg <benno@nietvergeten.nl>
298
299 * doc/tar.texi: Minor fixes.
300 * src/tar.c (options): Consistently begin help messages with a
301 lowercase letter.
302
303 2006-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
304
305 * tests/Makefile.am (AM_CPPFLAGS): Define LOCALEDIR
306
307 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
308
309 * src/buffer.c (record_buffer_aligned): New var.
310 (init_buffer): Use it to ensure that the buffer is aligned.
311 This doesn't result in any measurable performance improvement
312 on my host (Debian GNU/Linux 3.1 stable, with default block size),
313 but I assume it does help on some hosts.
314
315 * lib/.cvsignore: Sort.
316
317 2006-03-04 Sergey Poznyakoff <gray@gnu.org.ua>
318
319 * tests/shortrec.at: Use -f - to read from stdin.
320
321 2006-02-21 Sergey Poznyakoff <gray@gnu.org.ua>
322
323 * doc/tar.texi: Fix typo: --to-command instead of --to-program
324
325 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
326
327 * tests/multiv04.at (split directory members in a MV archive):
328 Don't use %X in an awk printf format; this doesn't work with
329 Solaris 10 /usr/bin/awk. Use %x instead.
330
331 2006-02-20 Sergey Poznyakoff <gray@gnu.org.ua>
332
333 * src/create.c (split_long_name): Fix maximum length estimation.
334 Patch by Jim Lowe.
335 * tests/Makefile.am (lustar01.at,lustar02.at,lustar03.at): New
336 tests.
337 * tests/atlocal.in: Add build-aux to the PATH
338 * tests/long01.at: Remove mkhier, use AT_TAR_MKHIER instead
339 * tests/longv7.at: Reword test title
340 * tests/lustar01.at: New test
341 * tests/lustar02.at: New test
342 * tests/lustar03.at: New test
343 * tests/testsuite.at (AT_TAR_MKHIER): New macro
344 (lustar01.at,lustar02.at,lustar03.at): New tests.
345
346 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
347
348 * bootstrap: Don't claim lib/Makefile.am is generated automatically
349 from itself.
350
351 Avoid installation glitches on Solaris 8 with Sun C 5.4.
352 * lib/.cvsignore: Add system-ioctl.h.
353 * lib/Makefile.tmpl (noinst_HEADERS): Add system-ioctl.h.
354 * src/buffer.c: Include system-ioctl.h.
355 * src/compare.c: Likewise.
356 * src/delete.c: Likewise.
357 * src/system.c: Include <getline.h>, <setenv.h>.
358 * src/tar.c: Include <getline.h>.
359
360 2006-02-19 Sergey Poznyakoff <gray@gnu.org.ua>
361
362 * src/buffer.c (add_chunk_header): Free st.orig_file_name after
363 calling finish_header().
364 (new_volume): Prompt the user for archive name if unable to open
365 next archive.
366
367 * src/create.c (dump_file0): Restore file_count_links,
368 accidentally removed on 2005-11-29.
369 * configure.ac: Raise version number to 1.15.90
370 * NEWS: Likewise.
371
372 2006-02-08 Sergey Poznyakoff <gray@gnu.org.ua>
373
374 * src/tar.c (tar_set_quoting_style): Provide second argument to
375 the format spec: program_invocation_short_name. Reported by Jim
376 Meyering.
377
378 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
379
380 * gnulib.modules: Add closeout, exitfial.
381 * lib/.cvsignore: Add __fpending.c, __fpending.h, closeout.c,
382 closeout.h.
383 * src/buffer.c: Incluse closeout.h.
384 (_open_archive): Use freopen rather than fopen, so
385 that stdlis is always either stdout or stderr. Use
386 close_stdout_set_file_name to report its name.
387 * src/tar.c: Include closeout.h and exitfail.h.
388 (parse_opt, usage): Call close_stdout as appropriate, to check for
389 write errors.
390 (decode_options): Exit with status TAREXIT_FAILURE, not 1.
391 (main): Set exit_failure, to exit with proper status on memory
392 allocation failure and the like.
393 Use close_stdout rather than rolling our own test.
394
395 * NEWS: --version now outputs copyright etc., to conform to the
396 GNU coding standards. Remove --license.
397 * gnulib.modules: Add version-etc-fsf.
398 * doc/tar.texi: Document the change.
399 * lib/.cvsignore: Add version-etc-fsf.c, version-etc.c, version-etc.h.
400 * scripts/Makefile.am (SED_CMD): Update PAKCAGE_NAME, not PACKAGE.
401 * scripts/backup.in: Remove --license. Change --version to conform
402 to GCS.
403 * scripts/restore.in: Likewise.
404 * scripts/backup.sh.in (license): Output briefer license in the
405 style of coreutils, for consistency with other changes.
406 * src/tar.c: Include <version-etc.h>.
407 (LICENSE_OPTION): Remove.
408 (options): Remove --license.
409 (license): Remove.
410 (parse_opt): Use version_etc instead of rolling it ourselves.
411 Remove --license.
412 * tests/version.at (tar --version): Check only the first line of
413 output.
414
415 * ChangeLog, NEWS, src/common.h, src/extract.c, src/incremen.c:
416 * src/list.c, src/names.c, src/tar.h, src/xheader.c:
417 Update copyright year to 2006.
418
419 2006-02-07 Jim Meyering <jim@meyering.net>
420
421 * src/xheader.c (sparse_map_decoder): Fix misleading diagnostic.
422
423 2006-01-31 Sergey Poznyakoff <gray@gnu.org.ua>
424
425 * src/common.h (get_gnu_dumpdir): Remove prototype
426 (is_dumpdir): New function
427 * src/extract.c (prepare_to_extract): Use is_dumpdir member to
428 check for dumpdirs.
429 * src/incremen.c (get_gnu_dumpdir): Static
430 (is_dumpdir): New function
431 (purge_directory): Use is_dumpdir
432 * src/list.c (list_archive): Use is_dumpdir
433 Do not wrap skip_member in mv_begin/mv_end, the function itself
434 takes care of it.
435 (decode_header): Set stat_info->is_dumpdir
436 (skip_member): Do nothing if skipped is true
437 * src/tar.h (struct tar_stat_info): New members is_dumpdir and skipped.
438
439 2006-01-22 Sergey Poznyakoff <gray@gnu.org.ua>
440
441 * src/tar.c (decode_options): Refuse using --delete with
442 compression options.
443
444 2006-01-18 Sergey Poznyakoff <gray@gnu.org.ua>
445
446 * NEWS: Updated.
447 * configure.ac (DEFAULT_QUOTING_STYLE): New configuration variable
448 * doc/tar.texi: Initial documentation for --quoting-style,
449 --quote-chars and --no-quote-chars option.
450 * src/tar.c: Implement new options --quoting-style, --quote-chars
451 and --no-quote-chars.
452
453 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
454
455 * bootstrap: Default to pserver, and switch to cvs.sv.gnu.org,
456 to accommodate recent changes to the GNU CVS server.
457 * lib/.cvsignore: Add argp-pin.c, mkdirat.c, openat-priv.h.
458
459 2005-12-14 Sergey Poznyakoff <gray@gnu.org.ua>
460
461 * src/names.c (name_scan): Take an additional argument requesting
462 exact matching.
463 * src/common.h (name_scan): Change prototype.
464 * src/delete.c, src/incremen.c, src/update.c: Update invocations
465 of name_scan.
466
467 2005-12-13 Sergey Poznyakoff <gray@gnu.org.ua>
468
469 * src/common.h (struct name): New member `explicit'. Remove unused
470 member `isdir'.
471 * src/incremen.c (procdir): If name_scan() returns something,
472 check if it was explicitely given in the command line
473 * src/names.c (addname,add_hierarchy_to_namelist): Initialize
474 explicit member appropriately.
475
476 * src/incremen.c (procdir): If --one-file-system is given and a
477 directory is found to be on another device, *and* this directory
478 is explicitely given in the command line, then do not omit it.
479
480 2005-12-11 Sergey Poznyakoff <gray@gnu.org.ua>
481
482 * NEWS: Update
483 * doc/tar.texi: Document --delay-directory-restore option.
484 (Configuring Help Summary): Document usage of ARGP_HELP_FMT
485 variable to customize help output.
486 * src/common.h (delay_directory_restore_option): New global.
487 * src/extract.c (directories_first): Replaced by
488 delay_directory_restore_option. All uses changed.
489 * src/tar.c (options,parse_opt): New options
490 --delay-directory-restore and --no-delay-directory-restore
491
492 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
493
494 * src/buffer.c (open_archive): Add default case to shut up gcc.
495 * src/common.h (set_file_atime): Add prototype.
496 * src/create.c (to_chars_subst): Remove unused variable
497 Make sure useful result code is returned.
498 * src/incremen.c (read_directory_file): Fix format string
499 Thanks Eric Blake for reporting.
500
501 2005-12-08 Sergey Poznyakoff <gray@gnu.org.ua>
502
503 * doc/tar.texi (Current status): Renamed to 'Changes' and moved to
504 appendices.
505 (Large or Negative Values): Rewritten
506 * src/common.h (gid_to_chars, major_to_chars, minor_to_chars)
507 (mode_to_chars, off_to_chars, size_to_chars, time_to_chars)
508 (uid_to_chars, uintmax_to_chars): Return bool
509 * src/create.c (gid_to_chars, major_to_chars, minor_to_chars)
510 (mode_to_chars, off_to_chars, size_to_chars, time_to_chars)
511 (uid_to_chars, uintmax_to_chars): Return bool
512 (to_chars): Return bool
513 (start_header): Check return values of convertion routines. Fail
514 if unable to store data in the header.
515
516 2005-12-07 Sergey Poznyakoff <gray@gnu.org.ua>
517
518 * doc/tar.texi: Following the discussion with Karl Berry,
519 discontinue using @value{} substitutions for Texinfo commands.
520 Properly index all long options. Print a
521 separate long option index.
522 * doc/value.texi: Remove @set's
523
524 * doc/tar.texi: Update --info-script documentation
525 Resolve some more FIXMEs.
526 * scripts/dump-remind.in: Use TAR_VOLUME instead of reading volno
527 file.
528 * src/buffer.c (new_volume): Update invocation
529 (change_tape_menu): New function. Disable '!' command if given
530 --restrict option.
531 * src/common.h (sys_exec_info_script): Update declaration
532 (restrict_option): New global
533 * src/system.c (sys_exec_info_script): The script can supply new
534 archive name to use by writing it to file descriptor 3.
535 * src/tar.c (options): Add --restrict option. Use macros for
536 option grouping.
537 (license): Print full list of copyright years
538 * NEWS: Update
539
540 2005-12-06 Eric Blake <ebb9@byu.net> (trivial changes)
541
542 * configure.ac (DENSITY_LETTER): Fix m4 overquoting.
543 * .cvsignore: Ignore .bootstrap.
544
545 2005-12-06 Sergey Poznyakoff <gray@gnu.org.ua>
546
547 * doc/tar.texi: Document --to-command and --info-script
548 options. Add missing xrefs.
549 * src/buffer.c (new_volume): Use sys_exec_info_script() instead of
550 system().
551 * src/common.h (archive_format_string,subcommand_string)
552 (sys_exec_info_script): New prototypes.
553 * src/system.c (sys_exec_info_script): New function.
554 * src/tar.c (archive_format_string): Remove static qualifier.
555 (subcommand_string): New function.
556
557 2005-12-01 Sergey Poznyakoff <gray@gnu.org.ua>
558
559 * src/extract.c: Fix restoring of directory timestamps from
560 incremental archives.
561 (directories_first): New variable.
562 (prepare_to_extract): Set directories_first
563 (extract_archive): Call apply_nonancestor_delayed_set_stat() only
564 if not extracting from an incremental archive
565 (extract_dir): Obtain root_device here, to make sure it works
566 correctly with -C.
567
568 * src/incremen.c (purge_directory): Skip the member and return if
569 the archive is not in incremental format.
570 * tests/incr02.at: New testcase
571 * tests/Makefile.am: Add incr02.at
572 * tests/testsuite.at: Likewise
573
574 * THANKS: Add Guerkan Karaman.
575 * NEWS: Update
576
577 2005-11-30 Paul Eggert <eggert@cs.ucla.edu>
578
579 * doc/tar.texi (Option Summary): Rewrite the
580 --atime-preserve=system description in response to Ian Turner's
581 proposed patch.
582
583 2005-11-30 Ian Turner <ian@zmanda.com>
584
585 * doc/tar.texi (Extracting Specific Files): Remove obsolescent
586 FIXME.
587
588 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
589
590 * NEWS: New option --atime-preserve=system, which uses O_NOATIME.
591 * THANKS: Add Ian Turner.
592
593 * configure.ac: Prefer AC_CHECK_HEADERS_ONCE to AC_CHECK_HEADERS.
594 Check for stropts.h and sys/filio.h too, for _FIOSATIME.
595 * doc/tar.texi: Change "modification time" to "data modification
596 time", "change time" to "status change time", and "filesystem" to
597 "file system", so that we use terminology consistent with POSIX.
598 Use American spacing rather than French for sentence ends.
599 "non-dependable" -> "undependable".
600 (Option Summary, Attributes): Explain better the pitfalls of the
601 --atime-preserve option, and suggest read-only mounts,loopback
602 mounts, and noatime mounts for older systems.
603 * doc/value.texi (op-atime-preserve-system): Renamed from
604 op-atime-preserver-system to fix a misspelling.
605 * src/common.h (enum atime_preserve): Use lower case for enum values.
606 * src/compare.c: Don't include utimens.h; no longer needed.
607 (diff_file): Use set_file_atime rather than utimens; avoid closing
608 diff_handle until after this, so that we can set the file time stamp
609 via the file descriptor rather than via its name.
610 * src/create.c: Don't include utimens.h; no longer needed.
611 (dump_regular_finish): Remove. All callers now do its work inline.
612 (dump_dir): New arg FD. All callers changed.
613 Use fdsavedir rather than savedir.
614 (unknown_file_error): Arg is a const pointer now.
615 (dump_file0): 2nd arg is a const pointer now.
616 Treat directories more like files, with respect to --atime-preserve.
617 For example, also warn if a directory changes while we are dumping it.
618 Prefer file descriptors to file names when retrieving/setting file
619 attributes; this saves path-resolution time and allows us to avoid
620 changing mtime/ctime on Solaris when restoring atime as root.
621 Use O_DIRECTORY when opening directories, to avoid some race conditions.
622 Do not reset atime if mtime has changed. Report an error if
623 we cannot reset atime.
624
625 * lib/.cvsignore: Add malloc.h, regcomp.c, regex.c, regex.h,
626 regex_internal.c, regex_internal.h, regexc.c; used by rpmatch.
627
628 2005-11-29 Ian Turner <ian@zmanda.com>
629
630 First cut at adding support for --atime-preserve=system.
631 * doc/tar.texi (Option Summary): First cut at documenting it.
632 All other uses of --atime-preserve changed to --atime-preserve=replace.
633 * doc/value.texi (op-atime-preserve-replace, op-atime-preserver-system):
634 New.
635 (op-atime-preserve): Mention METHOD.
636 * src/common.h (atime_preserve): New enum.
637 (atime_preserve_option): Now of the enum type rather than bool.
638 All uses changed.
639 * src/compare.c (diff_file): Read with O_NOATIME if asked for.
640 * src/create.c (dump_file0): Read regular and CTG files with O_NOATIME
641 if asked for.
642 * src/tar.c (usage): Mention new usage.
643 (parse_opt): Parse new usage.
644
645 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
646
647 * THANKS: Convert back to UTF-8, sort (using LC_ALL=C on Debian
648 stable), and consistently use tabs rather than spaces.
649
650 2005-11-27 Sergey Poznyakoff <gray@gnu.org.ua>
651
652 * src/xheader.c: Remove parts of code prematurely introduced
653 yesterday. Thanks Eric Blake.
654
655 2005-11-26 Sergey Poznyakoff <gray@gnu.org.ua>
656
657 * src/xheader.c (xheader_format_name): Fix memory leak.
658
659 2005-11-11 Sergey Poznyakoff <gray@gnu.org.ua>
660
661 * gnulib.modules: Add rpmatch
662 * lib/stdopen.h, lib/stdopen.c: New file. Imported from coreutils.
663 * lib/Makefile.tmpl: Add stdopen.h, stdopen.c
664 * po/POTFILES.in: Add rpmatch.c
665 * src/tar.c (confirm): Rewritten using rpmatch.
666 (decode_options): Minor optimizations
667 (main): Call stdopen() to ensure the first three descriptors are
668 open.
669
670 * tests/multiv01.at, tests/multiv02.at, tests/multiv03.at,
671 tests/multiv04.at, tests/sparsemv.at, tests/sparsemvp.at,
672 tests/star/multi-fail.at: Close stdin so that if something fails
673 causing tar to ask for the next volume, it won't hang the
674 testsuite.
675
676 * src/buffer.c (flush_write,flush_read): Change data type.
677 (flush_archive): Compute actual buffer fill level before calling
678 low level function.
679 (close_archive): Call flush_archive again if the first call
680 resulted in partially filled buffer.
681 (try_new_volume): Rewritten handling of initial headers.
682 (add_chunk_header): New function. Write an additional header
683 before the continuation chunk. The purpose of the header is to
684 allow third-party tars to extract the member.
685 (simple_flush_write): Take an argument.
686 (_gnu_flush_write): Correctly handle partially filled buffers.
687 * src/common.h (flush_read,flush_write): Functions, again.
688 (write_extended): Changed declaration
689 (xheader_format_name): New declaration
690 * src/create.c (write_extended): Change type and meaning of
691 the first argument. All callers updated
692 * src/xheader.c (xheader_format_name): Remove static
693 qualifier. Change last argument.
694 Correct buffer size calculation (allocated too much space).
695 (xheader_write): Increase global_header_count here ...
696 (xheader_write_global): ... instead of here
697
698 * tests/testsuite.at (AT_TAR_CHECK): Define TEST_TAR_FORMAT
699 * tests/multiv01.at: Update
700 * tests/multiv02.at: Update
701 * tests/multiv03.at: Update
702 * tests/sparsemvp.at: Update
703 * tests/star/multi-fail.at: Update
704
705 * scripts/tarcat: Handle archives in pax format. Improve handling
706 of traditional archives.
707 * doc/tar.texi (Tarcat): New node
708
709 2005-11-10 Sergey Poznyakoff <gray@gnu.org.ua>
710
711 Fix splitting of sparse files between the volumes.
712
713 * src/buffer.c (try_new_volume): Bugfix. Always check
714 continued_file_name. If it is absent, the volume is out
715 of sync.
716 (add_multi_volume_header): Create GNU.volume.filename keyword in
717 the extended header.
718 * src/sparse.c (sparse_dump_region): Call mv_size_left.
719 (sparse_dump_file): Enclose the loop in mv_begin/mv_end.
720 * src/system.c: Do not pad compressed output if it goes to
721 stdout.
722 * src/xheader.c (xhdr_tab): New keyword GNU.volume.filename.
723
724 * tests/sparsemv.at: New testcase
725 * tests/sparsemvp.at: New testcase
726 * tests/Makefile.am: Add sparsemv.at and sparsemvp.at.
727 * tests/testsuite.at: Likewise.
728
729 2005-11-09 Sergey Poznyakoff <gray@gnu.org.ua>
730
731 * src/buffer.c: Rewritten in a more modular fashion to provide
732 GNU extensions (multi-volume archives and archive labels) in
733 pax format.
734 NOTICE, that some of the aspects (e.g. splitting the archive
735 on the extended header boundary) are still not solved, others
736 (splitting a sparse file between the volume) require additional
737 testing. Wait for the next commit.
738
739 (volume_label,continued_file_name,continued_file_size)
740 (continued_file_offset): New globals.
741 (save_name,save_totsize,save_sizeleft): Make static
742 (mv_begin,mv_end,mv_total_size,mv_size_left): New functions
743 (open_archive,flush_write,flush_read): Rewritten
744
745 * src/common.h (save_name,save_sizeleft,save_totsize): Remove
746 globals.
747 (volume_label,continued_file_name,continued_file_size): New
748 variables.
749 (flush_read,flush_write): Pointers to functions
750 (mv_begin,mv_end,mv_total_size,mv_size_left): New functions
751 (write_extended): New function.
752
753 * src/compare.c, src/create.c, src/extract.c, src/incremen.c,
754 src/list.c: Use mv_.* functions uniformly instead of fiddling
755 with the global variables.
756 * src/sparse.c: Use mv_.* functions where necessary.
757 * src/tar.c (decode_options): Allow to use --multi-volume and
758 --label with pax archives.
759 * src/xheader.c (xhdr_tab): Support for new GNU keywords.
760
761 * tests/delete01.at, tests/delete02.at, tests/delete03.at,
762 tests/delete04.at, tests/delete05.at, tests/extrac01.at,
763 tests/extrac02.at, tests/extrac03.at, tests/extrac04.at,
764 tests/extrac05.at, tests/incr01.at, tests/incremental.at,
765 tests/listed01.at, tests/listed02.at, tests/long01.at,
766 tests/longv7.at, tests/multiv01.at, tests/multiv02.at,
767 tests/multiv03.at, tests/multiv04.at, tests/options.at,
768 tests/options02.at, tests/same-order01.at, tests/same-order02.at,
769 tests/sparse01.at, tests/sparse02.at, tests/sparse03.at,
770 tests/star/multi-fail.at (AT_KEYWORDS): Improve to allow execution
771 of related tests in groups.
772
773 * doc/tar.texi: Update
774
775 2005-11-07 Paul Eggert <eggert@cs.ucla.edu>
776
777 * src/xheader.c (struct xhdr_tab.coder): Last arg is void const *,
778 not void *, to avoid create.c warning from GCC "passing argument 3
779 of 'xheader_store' discards qualifiers from pointer target type".
780 (dummy_coder, atime_coder, gid_coder, gname_coder, linkpath_coder):
781 (ctime_coder, mtime_coder, path_coder, size_coder, uid_coder):
782 (uname_coder, sparse_size_coder, sparse_numblocks_coder):
783 (sparse_offset_coder, sparse_numbytes_coder, dumpdir_coder):
784 (xheader_store): Likewise.
785 * src/common.h (xheader_store): Likewise.
786
787 2005-11-07 Sergey Poznyakoff <gray@gnu.org.ua>
788 and Paul Eggert <eggert@cs.ucla.edu>
789
790 * src/tar.c (NS_PRECISION_FORMAT_MASK): New macro.
791 (tar_timespec_cmp): New function. Wrapper over
792 timespec_cmp using the timespec precision provided by the
793 current archive format.
794 * src/common.h (tar_timespec_cmp): New declaration.
795 * src/compare.c (diff_file): Use tar_timespec_cmp.
796 * src/extract.c (file_newer_p): Likewise.
797 * src/update.c (update_archive): Likewise.
798 * tests/truncate.at: Reverted changes
799 * tests/update.at: Reverted changes
800
801 2005-11-07 Sergey Poznyakoff <gray@gnu.org.ua>
802
803 Support for incremental formats in pax archives.
804 Fixed POSIX compatibility of `sparse' extended header keywords.
805
806 * src/common.h (dumpdir_size,get_gnu_dumpdir)
807 (xheader_string_begin,xheader_string_add)
808 (xheader_string_end): New functions.
809 * src/create.c (dump_dir0): Handle incremental backups in pax
810 archives.
811 * src/incremen.c (dumpdir_size, get_gnu_dumpdir): New functions.
812 (purge_directory): Use stat_info.dumpdir instead of getting its
813 value explicitely.
814 * src/list.c (list_archive): Handle incremental backups in pax
815 format.
816 (decode_header): Initialize stat_info.dumpdir
817 * src/sparse.c (sparse_diff_file): Bugfix: set seekable.
818 (pax_dump_header): Store sparse map in GNU.sparse.map. If this
819 variable has been explicitely deleted, use GNU.sparse.offset/
820 GNU.sparse.numbytes variables.
821 * src/tar.c (decode_options): Incremental options are allowed with
822 --format=pax
823 (tar_stat_destroy): Free dumpdir
824 * src/tar.h (struct tar_stat_info.dumpdir): New member.
825 * src/xheader.c (xheader_keyword_deleted_p): Remove static
826 qualifier.
827 (struct xhdr_tab.decoder): Change prototype. POSIX allows string
828 values to contain embedded nulls, so take an extra argument
829 specifying the length of the string.
830 (decx,decg,dummy_decoder,atime_decoder,gid_decoder)
831 (gname_decoder,linkpath_decoder,ctime_decoder,mtime_decoder)
832 (path_decoder,size_decoder,uid_decoder,uname_decoder)
833 (sparse_size_decoder,sparse_numblocks_decoder)
834 (sparse_offset_decoder,sparse_numbytes_decoder): Likewise.
835 (decode_record): Pass value length to the handler
836 (run_override_list): Pass value length to the decoder
837 (xheader_print_n): New function
838 (xheader_print): Rewritten using xheader_print_n
839 (xheader_finish): Do not rely om strlen to compute the length of
840 the collected string: it can contain embedded nulls
841 (xheader_string_begin,xheader_string_add,xheader_string_end): New
842 functions.
843 (sparse_map_decoder,dumpdir_coder,dumpdir_decoder): New
844 functions. Handle GNU.sparse.map and GNU.dumpdir variables.
845 (xhdr_tab): Add new variables.
846
847 * tests/incr01.at: Test gnu, oldgnu, and posix formats
848 * tests/incremental.at: Likewise
849
850 2005-11-06 Paul Eggert <eggert@cs.ucla.edu>
851
852 * NEWS: Minor language and white space fixes.
853
854 * tests/truncate.at: Create files whose time stamps must fall on
855 1-second boundaries. This prevents tests from failing on hosts
856 like Solaris 8 that have nanosecond-resolution file time stamps.
857 * tests/update.at: Likewise.
858
859 * src/xheader.c (strtoimax, strtoumax): Remove decls; now done
860 in system.h.
861
862 2005-11-06 Sergey Poznyakoff <gray@gnu.org.ua>
863
864 * doc/tar.texi: Properly document incremental dumps
865 * doc/value.texi: Likewise.
866 * doc/snapshot.texi: Likewise.
867
868 2005-11-05 Sergey Poznyakoff <gray@gnu.org.ua>
869
870 Improve listed incremental format:
871
872 * src/common.h (update_parent_directory): New prototype.
873 * src/create.c (dump_file): Call update_parent_directory.
874 * src/incremen.c (struct directory.mtime): New member.
875 (note_directory): Take additional arguments. All callers updated.
876 (scan_directory): Updated to use more metadata. In particular,
877 this allows to correctly detect renamed files.
878 (read_directory_file,write_directory_file)
879 (write_directory_file_entry): Support new directory file format.
880 * tests/listed01.at: Sleep 1 sec before creating second file.
881 * tests/listed02.at: Never skip the test. It should work on any
882 filesystem.
883
884 * doc/snapshot.texi: New file
885 * doc/tar.texi: Update.
886 * doc/Makefile.am: Update.
887
888 2005-11-04 Paul Eggert <eggert@cs.ucla.edu>
889
890 * src/extract.c (set_stat): Rewrite to avoid bug in Forte
891 Developer 7 C 5.4 Patch 111708-09 (2004-02-19).
892
893 2005-11-04 Sergey Poznyakoff <gray@gnu.org.ua>
894
895 * bootstrap: Fix quoting in help output.
896 (update_po): Use backward-compatible wget option --cache instead
897 of deprecated -C to accomodate for wget 1.10.
898 Changes proposed by Eric Blake
899 * THANKS: Add Eric Blake
900
901 2005-11-02 Paul Eggert <eggert@cs.ucla.edu>
902
903 * doc/tar.texi: Consistently put two spaces after sentences,
904 and put commas after "i.e." and "e.g.". This is the usual GNU
905 style in manuals.
906
907 * lib/.cvsignore: Add creat-safer.c, fcntl--.h, fcntl-safer.h,
908 open-safer.c, openat-die.c, verify.h, to accommodate recent gnulib
909 changes.
910
911 2005-10-27 Sergey Poznyakoff <gray@gnu.org.ua>
912
913 * src/compare.c (diff_dumpdir): Pass a valid device number to
914 get_directory_contents.
915
916 * THANKS: Add John Thomas McDole
917
918 * bootstrap: If file `.bootstrap' exists in the cwd and is
919 readable, prepend its contents to the command line
920
921 2005-10-21 Sergey Poznyakoff <gray@gnu.org.ua>
922
923 * tests/link01.at: Skip test if ln fails (suppose the OS does
924 not support hard links).
925
926 2005-10-04 Sergey Poznyakoff <gray@gnu.org.ua>
927
928 * src/tar.c (decode_options): Report error if -A or -r is used
929 together with compression option.
930
931 2005-09-29 Sergey Poznyakoff <gray@gnu.org.ua>
932
933 * doc/tar.texi: Use @option and @kbd consistently.
934 Document new options.
935
936 2005-09-28 Sergey Poznyakoff <gray@gnu.org.ua>
937
938 * NEWS: Updated
939 * src/common.h (show_stored_names_option): New variable
940 * src/list.c (print_header): If show_stored_names_option is given,
941 list member names as stored in the archive. Patch proposed by Erik
942 Cumps <erik.cumps@icos.be>
943 * src/tar.c: Implement --show-stored-names option
944
945 * src/common.h (test_label_option): New variable;
946 * src/list.c (print_header): Special handling if test_label_option
947 is set.
948 * src/names.c (all_names_found): If test_label_option is set
949 return true.
950 * src/tar.c: New option --test-label tests the archive volume
951 label. The option proposed by Wouter Verhelst <wouter@nixsys.be>
952
953 2005-09-21 Paul Eggert <eggert@cs.ucla.edu>
954
955 * tests/Makefile.am (clean-local): Don't attempt to run
956 $(TESTSUITE) if it doesn't exist. Problem reported by
957 Eric Blake.
958
959 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
960
961 Don't filter time stamps through the resolution supported
962 by struct stat; keep them to full nanosecond resolution.
963 This affects behavior only on older hosts or file systems
964 that have lower-resolution time stamps.
965 * src/common.h (OLDER_STAT_TIME): Parenthesize arg.
966 (OLDER_TAR_STAT_TIME): New macro.
967 (code_timespec): New function.
968 (BILLION, LOG10_BILLION, TIMESPEC_STRSIZE_BOUND): New constants.
969 * src/compare.c (diff_file): Use full time stamp resolution.
970 * src/create.c (start_header, dump_file0): Likewise.
971 (start_header, dump_file0): Adjust to new structure layout.
972 (dump_regular_finish): Simplify by using timespec_cmp.
973 * src/extract.c (struct delayed_set_stat): Don't store stat info
974 that we don't need, to save space. All uses changed.
975 (struct delayed_set_stat, struct delayed_link, file_newer_p):
976 (create_placeholder_file, extract_link, apply_delayed_links):
977 Use full time stamp resolution.
978 (check_time): Use code_timespec rather than rolling our own code.
979 (set_stat, delay_set_stat): Arg now points to tar_stat_info to
980 avoid losing time information. All callers changed.
981 * src/list.c (read_and, decode_header, print_heaeder):
982 Use full time stamp resolution.
983 * src/misc.c (code_timespec): New function.
984 * src/tar.h (struct tar_stat_info): Record atime, mtime, ctime
985 separately, for benefit of hosts with lower resolution.
986 * src/update.c (update_archive): Use full time stamp resolution.
987 * src/xheader.c (code_time): Use new code_timespec function
988 to simplify code.
989 (atime_coder, atime_decoder, ctime_coder, ctime_decoder):
990 (mtime_coder, mtime_decoder): Use full time stamp resolution.
991
992 Report time stamps to full resolution in environment.
993 Report memory allocation failures rather than ignoring them.
994 * src/system.c (time_to_env): New function.
995 (oct_to_env, str_to_env, chr_to_env): Report memory allocation failures.
996 (stat_to_env): Report full resolution in time stamps.
997
998 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
999
1000 Merge changes from gnulib for file system sub-second time stamps.
1001 * configure.ac: Remove checks for struct stat.st_spare1, struct
1002 stat.st_atim.tv_nsec, struct stat.st_atimespec.tv_nsec, struct
1003 stat.st_atimensec, as gnulib now does this for us.
1004 Similarly for LIB_CLOCK_GETTIME.
1005 * gnulib.modules: Add stat-time.
1006 * lib/.cvsignore: Add stat-time.h.
1007 * src/common.h: Include stat-time.h.
1008 (timespec_lt): Remove. All callers changed to use timespec_cmp.
1009 (get_stat_atime, get_stat_ctime, get_stat_mtime):
1010 (set_stat_atime, set_stat_ctime, set_stat_mtime):
1011 Remove; now defined by stat-time.h.
1012
1013 2005-09-14 Sergey Poznyakoff <gray@gnu.org.ua>
1014
1015 * src/incremen.c (list_dumpdir): New function. Used to dump
1016 contents of GNUTYPE_DUMPDIR blocks.
1017 * src/common.h (list_dumpdir): Likewise.
1018 * src/list.c (list_archive): Use list_dumpdir() to display
1019 GNUTYPE_DUMPDIR blocks. Do that only if two or more -v options are
1020 given.
1021
1022 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
1023
1024 * lib/.cvsignore: Adjust to current gnulib and modules used.
1025 Add getdelim.c, getdelim.h, mbchar.c, mbchar.h, mbuiter.h, memchr.c,
1026 pipe-safer.c, size_max.h, strdup.c, strdup.h, strnlen.h, strnlen1.c,
1027 strnlen1.h, unistd--.h.
1028 Remove getndelim2.c, getndelim2.h, pathmax.h, sysexits.h, xstrdup.c.
1029
1030 Treat fishy-looking hard links like fishy-looking symlinks.
1031 * src/extract.c (struct delayed_set_stat): Rename after_symlinks
1032 member to after_links. All uses changed.
1033 (struct delayed_link): Renamed from struct delayed_symlink.
1034 All uses changed. New member is_symlink.
1035 (delayed_link_head): Renamed from delayed_symlink_head. All uses
1036 changed.
1037 (create_placeholder_file): New function, taken from extract_symlink.
1038 (extract_link): Create placeholders for fishy-looking hard links.
1039 (extract_symlink): Move code into create_placeholder_file.
1040 (apply_delayed_links): Renamed from apply_delayed_symlinks.
1041 All uses changed. Create both hard links and symlinks.
1042
1043 2005-09-03 Paul Eggert <eggert@cs.ucla.edu>
1044
1045 * README-alpha: Modernize description of software required for
1046 developers.
1047
1048 2005-09-03 Sergey Poznyakoff <gray@gnu.org.ua>
1049
1050 * gnulib.modules: Add strdup
1051 * src/incremen.c (purge_directory): Do not dereference symbolic
1052 links. Bug reported by Ralph Corderoy <ralph@inputplus.co.uk> and
1053 David Brown <davidb@davidb.org>
1054 * tests/incr01.at: New test.
1055 * tests/Makefile.am: Add incr01.at
1056 * tests/testsuite.at: Likewise
1057 * THANKS: Updated
1058
1059 2005-08-17 Sergey Poznyakoff <gray@gnu.org.ua>
1060
1061 * src/incremen.c (read_directory_file): Use strtoumax to read
1062 snapshot file contents.
1063 (write_directory_file_entry): Use umaxtostr().
1064
1065 2005-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
1066
1067 * src/create.c (file_dumpable_p,dump_file0): Fix handling of
1068 sparse files to /dev/null with --totals option.
1069 * tests/update.at: Remove dependency on file order.
1070
1071 2005-07-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1072
1073 * doc/tar.texi: Fix typo.
1074
1075 2005-07-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1076
1077 * tests/pipe.at: Pipe the output from `tar xfv' through sort.
1078
1079 2005-06-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1080
1081 * src/sparse.c (tar_sparse_init): Fill structure with zeros. Call
1082 sparse_select_optab(). All callers updated.
1083 (sparse_member_p, sparse_fixup_header): Use tar_sparse_init().
1084
1085 2005-06-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1086
1087 * src/sparse.c (pax_sparse_member_p): Checking member size
1088 vs. file size is not reliable enough. Use sparse_map_avail.
1089
1090 * tests/star/gtarfail.at: Adapt to the new output format
1091 * tests/star/gtarfail2.at: Likewise
1092 * tests/star/multi-fail.at: Likewise
1093 * tests/star/pax-big-10g.at: Likewise
1094 * tests/star/ustar-big-2g.at: Likewise
1095 * tests/star/ustar-big-8g.at: Likewise
1096
1097 * tests/sparse03.at: New test.
1098 * tests/Makefile.am: Add sparse03.at
1099 * tests/testsuite.at: Likewise
1100
1101 * src/xheader.c (size_decoder): Do not set archive_file_size.
1102
1103 Fix bugs introduced yesterday:
1104
1105 * src/sparse.c (tar_sparse_init): Initialize
1106 dimped_size to 0.
1107 (sparse_scan_file): Initialize archive_file_size to 0. The
1108 variable keeps size of the file *as stored in the archive*, not
1109 the size reported by stat.
1110
1111 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
1112
1113 A sweep of the sparse code prompted by a bug report by Jim Meyering.
1114 * src/sparse.c: Include <inttostr.h>.
1115 (struct tar_sparse_file): offset and dumped_size are off_t, not
1116 size_t. optab is now const *.
1117 (dump_zeros): Return bool success flag, not off_t.
1118 All callers changed.
1119 Use a constant-zero buffer rather than clearing a buffer each time.
1120 Don't mess up if write fails.
1121 (dump_zeros, check_sparse_region):
1122 Don't assume off_t is no wider than size_t.
1123 (tar_sparse_init): Don't bother clearing a field that is already clear.
1124 (zero_block_p): First arg is const *, not *.
1125 (clear_block, SPARSES_INIT_COUNT): Remove.
1126 (sparse_add_map): First arg is now struct start_stat_info *, not
1127 struct tar_sparse_file *. All callers changed.
1128 Use x2nrealloc to check for size_t overflow.
1129 (parse_scan_file): Cache commonly-used parts of file.
1130 Use an auto buffer, not a static one.
1131 Don't bother clearing the buffer; not needed.
1132 Don't bother clearing items that are already clear.
1133 (oldgnu_optab, star_optab, pax_optab): Now const.
1134 (sparse_dump_region): Don't bother clearing the buffer before
1135 reading into it; just clear the parts that aren't read into.
1136 (sparse_dump_file): Clear the whole local variable 'file'.
1137 (diff_buffer): Remove; now a local var.
1138 (check_sparse_region): Don't bother clearing buffer before
1139 reading into it. Don't assume off_t is promoted to long.
1140 (oldgnu_get_sparse_info, star_get_sparse_info):
1141 Use an auto status, not static.
1142 * src/tar.h (struct tar_stat_info): had_trailing_slash is
1143 now bool, not int.
1144 * src/xheader.c (sparse_offset_coder, sparse_numbytes_coder):
1145 Rewrite to avoid cast.
1146 (sparse_offset_decoder, sparse_numbytes_decoder):
1147 Diagnose excess entries rather than crashing.
1148
1149 2005-06-22 Jim Meyering <jim@meyering.net>
1150
1151 * src/common.h (timespec_lt): Add a return type: bool.
1152
1153 2005-06-21 Paul Eggert <eggert@cs.ucla.edu>
1154
1155 Further improvements inspired by Jim Meyering's fixes.
1156
1157 * NEWS: Better support for full-resolution time stamps.
1158 The -v option now prints time stamps only to 1-minute resolution.
1159 * gnulib.modules: Add utimens.
1160 * lib/.cvsignore: Add imaxtostr.c, inttostr.c, inttostr.h,
1161 offtostr.c, umaxtostr.c, utimens.c, utimens.h. Remove paxconvert.c.
1162 * lib/Makefile.tmpl (libtar_a_SOURCES): Remove paxconvert.c.
1163 * lib/paxconvert.c: Remove; superseded by umaxtostr.c.
1164 * po/POTFILES.in: Remove lib/paxconvert.c. Add lib/xalloc-die.c,
1165 lib/obstack.c.
1166 * src/buffer.c (set_start_time, compute_duration, start_time):
1167 Use gettime rather than rolling our own code.
1168 * src/common.h (OLDGNU_NAME_FIELD_SIZE, MAXOCTAL11, MAXOCTAL7): Remove.
1169 (newer_ctime_option): Remove.
1170 (timespec_lt): New function.
1171 (OLDER_STAT_TIME): Use it.
1172 (string_to_chars): First arg is char const *, not char *.
1173 (tartime): Time arg is now struct timespec. New bool arg.
1174 All callers changed.
1175 (code_ns_fraction): New decl.
1176 (sys_stat_nanoseconds): Remove decl.
1177 (get_stat_atime, get_stat_ctime, get_stat_mtime): New functions.
1178 (set_stat_atime, set_stat_ctime, set_stat_mtime): New functions.
1179 * src/compare.c: Include utimens.h rather than rolling our own.
1180 (diff_dir, diff_file, diff_link, diff_symlink, diff_special):
1181 Prototype.
1182 (diff_dumpdir, diff_multivol): Prototype.
1183 (diff_file): Support higher-resolution time stamps.
1184 * src/create.c: Include utimens.h rather than rolling our own.
1185 (MAX_OCTAL_VAL): New macro.
1186 (tar_copy_str, string_to_chars): Don't bother to zero-fill;
1187 the destination is already zeroed.
1188 (string_to_chars): First arg is char const *.
1189 (start_private_header): Use MINOR_TO_CHARS, not MAJOR_TO_CHARS,
1190 for minor device number.
1191 (write_header_name, dump_hard_link, dump_file0):
1192 Simplify test for old GNU format.
1193 (start_header): Put in placeholders for uid, etc., even when
1194 using extended headers, for benefit of older "tar" implementations.
1195 Don't assume uintmax_t is wider than 32 bits.
1196 Output extended header for mtime if needed.
1197 (dump_regular_finish, dump_file0):
1198 Support extended time stamp resolution.
1199 * src/extract.c: Include utimens.h rather than rolling our own.
1200 (check_time): Support extended time stamp resolution.
1201 * src/list.c: Include <inttostr.h>.
1202 (tartime): Use umaxtostr rather than stringify_uintmax_t_backwards.
1203 * src/xheader.c: Include <inttostr.h>.
1204 Do not include <xstrtol.h>.
1205 (strtoimax) [!HAVE_DECL_STRTOIMAX && !defined strtoimax]: New decl.
1206 (strtoumax) [!HAVE_DECL_STRTOUMAX && !defined strtoumax]: New decl.
1207 (BILLION, LOG10_BILLION): New constants.
1208 (to_decimal): Remove; superseded by inttostr. All callers changed
1209 to use umaxtostr.
1210 (xheader_format_name): Don't assume pids and uintmax_t values
1211 fit in 63 bytes (!) when printed.
1212 (decode_record): Don't bother to check for ERANGE; an out of range
1213 value must be treater than len_max anyway.
1214 If the length is out of range, output it in the diagnostic.
1215 (format_uintmax): Remove; all callers changed to use umaxtostr.
1216 (xheader_print): Don't assume sizes can be printed in 99 bytes (!).
1217 (out_of_range_header): New function.
1218 (decode_time): Use it.
1219 (code_time): Accept struct timespec, not time_t and unsigned long.
1220 All callers changed. Size sbuf properly, and remove unnecessary check.
1221 Don't assume time stamps can fit in 199 bytes.
1222 Handle negative time stamps. Handle fractional time stamps
1223 more consistently. Don't output unnecessary trailing zeros.
1224 (decode_time): Yield struct timespec, not time_t and unsigned long.
1225 All callers changed.
1226 Handle negative time stamps. Truncate towards minus infinity
1227 consistently. Improve overflow checks, and output a better
1228 diagnostic on overflow.
1229 (code_num): Don't assume uintmax_t can be printed in 99 bytes (!).
1230 (decode_num): New function, for better diagnostics.
1231 (atime_coder, atime_decoder, gid_decoder, ctime_coder):
1232 (ctime_decoder, mtime_coder, mtime_decoder, size_decoder):
1233 (uid_decoder, sparse_size_decoder, sparse_numblocks_decoder):
1234 (sparse_offset_decoder, sparse_numbytes_decoder):
1235 Use decode_num, etc., instead of xstrtoumax, etc.
1236
1237 2005-06-21 Jim Meyering <jim@meyering.net>
1238
1239 Carefully crafted invalid headers can cause buffer overrun.
1240 Invalid header fields go undiagnosed.
1241 Some valid time strings are ignored.
1242
1243 * src/xheader.c (sparse_numblocks_decoder): Remove unchecked use
1244 of `calloc'. Use xcalloc instead.
1245 (decode_time, gid_decoder, size_decoder, uid_decoder):
1246 (sparse_size_decoder, sparse_offset_decoder, sparse_numblocks_decoder):
1247 Ensure that the result of calling xstrtoumax is no larger than
1248 the maximum value for the target type. Upon any failure, exit with
1249 a diagnostic.
1250 (sparse_numblocks_decoder): Avoid buffer overrun/heap corruption:
1251 use x2nrealloc, rather than `n *= 2' and xrealloc(p, n,....
1252 (decode_time): Rewrite to accept time strings like
1253 1119018481.000000000. Before, such strings were always ignored.
1254
1255 2005-06-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1256
1257 * src/create.c (dump_file0): Check for is_avoided_name()
1258 first. Fixes bug reported by Martin Lohmeier
1259 <martin@mein-horde.de>
1260 * tests/update.at: New file
1261 * tests/Makefile.am (TESTSUITE_AT): Add update.at
1262 * tests/testsuite.at: Likewise
1263
1264 2005-06-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1265
1266 * configure.ac (AC_STRUCT_ST_BLKSIZE)
1267 (AC_STRUCT_ST_BLOCKS): Removed. Handled by system.m4.
1268
1269 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
1270
1271 * src/names.c (excluded_name): excluded_filename ->
1272 excluded_file_name, because the name was changed in gnulib.
1273
1274 2005-05-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1275
1276 * src/tar.c (read_name_from_file,update_argv): Automatically
1277 detect nul-terminated list files.
1278 * NEWS: Updated
1279
1280 2005-05-27 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1281
1282 * scripts/backup.sh.in: Bugfixes.
1283
1284 2005-05-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1285
1286 * scripts/backup.in: Minor fixes
1287 * scripts/backup.sh.in (mt_begin,mt_rewind)
1288 (mt_offline,mt_status): Use $MT to invoke mt
1289 (init_common): Set --rsh-command option for mt if TAPE_FILE is a
1290 remote archive.
1291 * doc/tar.texi: Document new backup scripts behavior
1292
1293 2005-05-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1294
1295 * lib/.cvsignore: Updated
1296 * lib/Makefile.tmpl: Add new paxutils files
1297 * po/POTFILES.in: Likewise
1298 * src/buffer.c: Update invocations of safer_name_suffix()
1299 * src/create.c: Likewise
1300 * src/extract.c: Likewise
1301 * src/xheader.c: Likewise
1302 * src/common.h: Include paxlib.h instead of paxerror.h
1303 (safer_name_suffix,removed_prefixes_p): Removed. The functions are
1304 imported from paxutils
1305 * src/names.c (hash_string_hasher,hash_string_compare)
1306 (hash_string_insert,hash_string_lookup,removed_prefixes_p)
1307 (safer_name_suffix): Moved to paxutils
1308
1309 2005-05-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1310
1311 * bootstrap (copy_files): Accept optional third argument: a prefix
1312 to be appended to destination file names.
1313 Import paxutils/paxlib files.
1314 * configure.ac: Remove checking for LIB_SETSOCKOPT, it is handled
1315 by paxutils.
1316 * lib/Makefile.tmpl (libtar_a_SOURCES): Add paxerror.c paxexit.c
1317 paxconvert.c
1318 * po/POTFILES.in: Likewise.
1319 * src/common.h: Remove defines and declarations imported from
1320 paxutils
1321 * src/misc.c: Likewise
1322 * src/list.c (stringify_uintmax_t_backwards): Moved to paxutils
1323
1324 2005-05-17 Paul Eggert <eggert@cs.ucla.edu>
1325
1326 * src/misc.c (remove_any_file): Fix typo in previous change.
1327
1328 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
1329
1330 Port to Solaris 10's treatment of unlinking directories.
1331 * gnulib-modules: Add unlinkdir.
1332 * lib/.cvsignore: Add unlinkdir.h, unlinkdir.c.
1333 * src/common.h (we_are_root): Remove extern decl; it's now static.
1334 * src/extract.c (we_are_root): Now static.
1335 * src/misc.c: Include <unlinkdir.h>.
1336 (remove_any_file): Use cannot_unlink_dir () rather than we_are_root.
1337
1338 * ChangeLog, ChangeLog.1, Makefile.am, NEWS, PORTS, README,
1339 README-alpha, TODO, bootstrap, configure.ac, doc/Makefile.am,
1340 doc/convtexi.pl, doc/fdl.texi, doc/gendocs_template,
1341 lib/Makefile.tmpl, lib/prepargs.c, lib/waitpid.c, po/POTFILES.in,
1342 scripts/Makefile.am, scripts/backup-specs, scripts/backup.in,
1343 scripts/backup.sh.in, scripts/restore.in, src/Makefile.am,
1344 src/arith.h, src/buffer.c, src/common.h, src/compare.c,
1345 src/create.c, src/delete.c, src/extract.c, src/incremen.c,
1346 src/list.c, src/mangle.c, src/misc.c, src/names.c, src/sparse.c,
1347 src/system.c, src/tar.c, src/tar.h, src/update.c, src/utf8.c,
1348 src/xheader.c, tests/Makefile.am, tests/append.at,
1349 tests/append01.at, tests/comprec.at, tests/delete01.at,
1350 tests/delete02.at, tests/delete03.at, tests/delete04.at,
1351 tests/delete05.at, tests/extrac01.at, tests/extrac02.at,
1352 tests/extrac03.at, tests/extrac04.at, tests/extrac05.at,
1353 tests/gzip.at, tests/ignfail.at, tests/incremental.at,
1354 tests/link01.at, tests/listed01.at, tests/listed02.at,
1355 tests/long01.at, tests/longv7.at, tests/multiv01.at,
1356 tests/multiv02.at, tests/multiv03.at, tests/multiv04.at,
1357 tests/old.at, tests/options.at, tests/options02.at, tests/pipe.at,
1358 tests/recurse.at, tests/same-order01.at, tests/same-order02.at,
1359 tests/shortrec.at, tests/sparse01.at, tests/sparse02.at,
1360 tests/testsuite.at, tests/truncate.at, tests/version.at,
1361 tests/volume.at, tests/star/gtarfail.at, tests/star/gtarfail2.at,
1362 tests/star/multi-fail.at, tests/star/pax-big-10g.at,
1363 tests/star/quicktest.sh, tests/star/ustar-big-2g.at,
1364 tests/star/ustar-big-8g.at:
1365 Update FSF postal mail address.
1366
1367 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1368
1369 * NEWS: Updated
1370 * THANKS: Updated
1371 * bootstrap: Install files from paxutils/doc
1372 * doc/Makefile.am (tar_TEXINFOS): Add genfile.texi
1373 * doc/tar.texi (Genfile): New appendix
1374 * src/compare.c (diff_file): diff_handle was not initialized
1375 * src/create.c (dump_regular_file): Correctly pad archive members
1376 that shrunk during archiving. Repored by Frank Heckenbach.
1377 * src/extract.c (file_newer_p): Return false if file does not
1378 exist
1379 (prepare_to_extract): Correct warning wording.
1380 * tests/truncate.at: New test case
1381 * tests/Makefile.am: Add truncate.at
1382 * tests/testsuite.at: Likewise.
1383
1384 * doc/.cvsignore: Updated
1385 * lib/.cvsignore: Updated
1386 * tests/.cvsignore: Updated
1387
1388 2005-05-02 Paul Eggert <eggert@cs.ucla.edu>
1389
1390 * tests/multivol04.at: Tell awk to read from /dev/null.
1391
1392 Adjust to recent gnulib changes.
1393 * lib/.cvsignore: Add dup-safer.c, fd-safer.c, unistd-safer.h.
1394 * src/common.h (initial_umask): New var.
1395 * src/create.c (start_ueader): Use it, and adjust to new modechange
1396 API.
1397 (hash_link): unsigned -> size_t parameters and result.
1398 * src/incremen.c (hash_directory): Likewise.
1399 * src/names.c (hash_string_hasher): Likewise.
1400 * src/tar.c (parse_opt): Set it, and adjust to new modechange API.
1401
1402 2005-04-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1403
1404 * tests/Makefile.am: Add shortrec.at.
1405
1406 2005-04-18 Paul Eggert <eggert@cs.ucla.edu>
1407
1408 * src/buffer.c (reading_from_pipe): Remove. All uses removed.
1409 (short_read): Don't warn about short reads; they're normal.
1410 * tests/shortrec.at: New file.
1411 * tests/testsuite.at: Include it.
1412
1413 * bootstrap (gnulib_modules): Don't create a file modlist.tmp, as
1414 it is sometimes left behind as a garbage file (maybe due to the
1415 multiple traps?).
1416
1417 2005-04-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1418
1419 * src/list.c: Handle Solaris 'X' type flag
1420 * src/tar.h (SOLARIS_XHDTYPE): New define
1421
1422 2005-04-06 Sergey Poznyakoff <gray@mirddin.farlep.net>
1423
1424 * src/tar.c: Minor fixes to text messages. Proposed by Benno
1425 Schulenberg.
1426 * src/extract.c: Likewise
1427 (extract_file): Assign orig_file_name
1428 to save_name uniformly over the program. This fixes matching
1429 directory names at the start of an archive volume.
1430 * src/buffer.c (flush_write): Warn when the name of the archive
1431 straddling volume boundary is longer than 100 characters. Earlier
1432 behavior was to issue a fatal error.
1433 (struct zip_magic): Reverted part of changes from 2005-04-04.
1434 They make the maintenance too costly. Removing `unsigned'
1435 qualifier from `magic' member should be enough.
1436 * src/compare.c (diff_init): Read directory file if in listed
1437 incremental. This prevents spurious 'Contents differ' diagnostics.
1438 (diff_archive): Minor fixes to text messages
1439 (diff_file,diff_dumpdir,diff_multivol): Assign orig_file_name
1440 to save_name uniformly over the program. This fixes matching
1441 directory names at the start of an archive volume.
1442 * src/create.c: Assign orig_file_name
1443 to save_name uniformly over the program. This fixes matching
1444 directory names at the start of an archive volume.
1445 * src/list.c: Likewise
1446
1447 * tests/multiv03.at: Modified to match the new behavior
1448 * tests/multiv04.at: New file. Test splittind directory members between
1449 the archive volumes.
1450 * tests/Makefile.am: Add multiv04.at
1451 * tests/testsuite.at: Likewise.
1452
1453 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
1454
1455 * configure.ac (AC_CONFIG_AUX_DIR): Rename from config to build-aux,
1456 for reasons discussed in the thread beginning at
1457 <http://lists.gnu.org/archive/html/bug-gnulib/2005-03/msg00119.html>.
1458 * .cvsignore: Remove config; add build-aux.
1459
1460 * src/buffer.c (struct zip_magic): Use char arrays, not pointers.
1461 The unsigned char * pointer ran afoul of pedantic C compilers, and
1462 we didn't need pointers anyway. Put the size field before the
1463 data to avoid unnecessary padding. All uses changed.
1464 (magic) Make it const, since it doesn't change. All uses changed.
1465
1466 2005-04-02 Paul Eggert <eggert@cs.ucla.edu>
1467
1468 * src/xheader.c (decode_record): Don't dump core when given
1469 a corrupted extended header. Problem reported by Jim Meyering.
1470 Also, check for other ways that the header might be invalid,
1471 e.g., missing newline at end. Do not allow keys with nulls.
1472 Allow blanks before and after length, as POSIX requires.
1473 Do not allow leading "-" in length. Check for length overflow.
1474 (xheader_decode, xheader_decode_global): Let decode_record
1475 check for exhaustion of record.
1476 (xheader_read): Null-terminate the extended record;
1477 decode_record relies on this.
1478
1479 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
1480
1481 * bootstrap (TP_URL): Change from
1482 <http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
1483 <http://www.iro.umontreal.ca/translation/maint/tar/> to avoid
1484 some redirection glitches.
1485 Use "trap - 0" rather than "trap 0" to fix a POSIX-conformance bug.
1486 * doc/.cvsignore: Change "tar.info" to "tar.info*". Sort.
1487 * lib/.cvsignore: Add intprops.h (new gnulib file).
1488
1489 2005-03-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1490
1491 * src/list.c (print_header): Print UID/GID in case of
1492 empty user/group name. This could occur when dumping
1493 files belonging to non-existing users and when listing
1494 broken archives.
1495 Reported by Igor Lautar.
1496
1497 * src/create.c: Correctly parse empty uname/gname
1498 * src/sparse.c (sparse_scan_file): Bugfix. offset had
1499 incorrect type.
1500
1501 * scripts/backup.in: Use `head -n 1'. Provide missing
1502 argument to ${MT_STATUS}. Proposed by Jan Merka.
1503 * scripts/backup.sh.in: Likewise. Fixed typo in
1504 MT_OFFLINE assignment.
1505 * scripts/restore.in (restore_fs): Use root_fs
1506
1507 2005-02-15 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1508
1509 * src/create.c: Replace strdup with xstrdup
1510 * src/names.c: Likewise
1511 * src/tar.c: Likewise
1512
1513 * tests/append01.at: Added reference to bug-tar archive
1514 * tests/listed02.at: Use -print with find.
1515
1516 2005-02-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1517
1518 * THANKS: Added Tim Adye. Fixed UTF.
1519 * src/list.c (read_header): Removed assignment to
1520 oldgnu_header.isextended. It was breaking append mode.
1521
1522 * tests/append01.at: New test.
1523 * tests/Makefile.am: Added append01.at
1524 * tests/testsuite.at: Likewise
1525
1526 2005-02-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1527
1528 * gnulib.modules: New file. List of required gnulib
1529 modules.
1530 * bootstrap: Merge list of required modules from
1531 paxutils with that from tar proper.
1532 * src/tar.c: Various fixes in help and diagnostic messages.
1533
1534 2005-02-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1535
1536 * src/common.h (EXTRACT_OVER_PIPE): New macro
1537 * src/compare.c: Code clean up.
1538 * src/extract.c (extract_archive): Do not check for
1539 EXTRACT_OVER_PIPE, decode_options() does this.
1540 * src/misc.c (exec_error,fork_error,dup2_error)
1541 (pipe_error): Removed unneeded functions.
1542 * src/system.c (sys_exec_command): Use xclose, xpipe,
1543 xfork, xdup2 and exec_fatal.
1544 * src/tar.c (options): Improved sorting. Document --backup=off.
1545 (decode_options): Clear backup_option if necessary.
1546
1547 2005-02-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1548
1549 Initial implementation of --to-command option proposed
1550 by Hansjoerg Lipp.
1551
1552 * bootstrap: Get setenv module from gnulib
1553 * src/buffer.c: Do not use 8-bit chars in comments
1554 * src/common.h (to_command_option)
1555 (ignore_command_error_option): New globals
1556 (sys_exec_command,sys_wait_command): New commands
1557 * src/extract.c (extract_file): Handle to_command_option
1558 Fix error recovery: decrease `size' by `written', not
1559 by `count', otherwise tar misses the next header
1560 Do not diagnose write error if to_command_option
1561 is set, since the command may have exited prematurely.
1562 It would be better to check for sigpipe, though.
1563 (prepare_to_extract): Handle to_command_option
1564 * src/misc.c (exec_error, fork_error, dup_error)
1565 (pipe_error): New functions
1566 * src/system.c (sys_exec_command)
1567 (sys_wait_command): New functions
1568 * src/tar.c: Handle new options --to-command,
1569 --ignore-command-error
1570 * THANKS: Added Hansjoerg Lipp
1571
1572 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
1573
1574 * src/list.c (from_header): New arg OCTAL_ONLY, normally false.
1575 All uses changed. Fix typo that sometimes suppressed all "Archive
1576 contains obsolescent base-64 headers" warnings, not just the first
1577 one.
1578 (tar_checksum): Accept only octal checksums, since they aren't
1579 supposed to overflow into weird formats.
1580
1581 Adjust to gnulib changes.
1582 * lib/.cvsignore: Add chdir-long.c, chdir-long.h, memrchr.c,
1583 memrchr.h, openat.c, openat.h. Remove pathmax.h (added by
1584 mistake, perhaps?), sysexit.h (my typo), xstrdup.c (gnulib removed
1585 this file). Sort entries.
1586
1587 2005-02-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1588
1589 * src/extract.c: Further rewrite.
1590 * src/buffer.c: Removed unused variables.
1591 * src/list.c: Likewise
1592 * src/tar.c (update_argv): Changed type to void
1593
1594 * src/common.h (OLDGNU_NAME_FIELD_SIZE): New constant
1595 * src/create.c (start_private_header,write_header_name)
1596 (dump_hard_link): Restore compatibility with 1.13.25
1597 * src/extract.c (extract_archive): Rewritten
1598 * src/list.c: Add translators' comments
1599 * src/tar.c (options) Minor spelling fix
1600 * tests/star/quicktest.sh: Determine path to the tar executable.
1601
1602 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1603
1604 * po/POTFILES.in: Added tests/genfile.c
1605 * src/buffer.c (short_read): Use ngettext()
1606 (new_volume): use quote().
1607 * src/create.c: Use quote()
1608 * src/extract.c: Likewise
1609 * src/xheader.c: Likewise
1610 * src/misc.c: Add comments to translators
1611
1612 * tests/same-order01.at: sort ls output
1613 * tests/sparse01.at (RE_CHECK): Added missing space
1614
1615 * tests/sparse02.at: Test extracting sparse files over a pipe.
1616 * tests/Makefile.am: Added sparse02.at
1617 * tests/testsuite.at: Likewise
1618 * tests/listed02.at: Skip the test on filesystems that do not
1619 update ctime of a file when renaming it. To be reverted when
1620 the new incremental mode is ready.
1621 * tests/sparse01.at: Extract and compare sparse file
1622
1623 2005-02-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1624
1625 * src/sparse.c: Extract sparse files even if the output
1626 fd is not seekable.
1627
1628 2005-02-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1629
1630 * bootstrap: Add a comment to lib/Makefile.am saying that this
1631 is an autogenerated file.
1632 Exit with code 1 if any of autotools fails.
1633 * lib/Makefile.tmpl: Insert Emacs magic to the first line.
1634 * tests/Makefile.am: Add append.at
1635
1636 * m4/.cvsignore: Ignore all *.m4 files
1637
1638 2005-01-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1639
1640 Rewritten handling of -T (--files-from) option. Now it
1641 inserts the file names immediately into argv array which allows
1642 for:
1643 1) any valid tar options (including another -T) to be used in the file
1644 2) any number of -T options to be given in command line
1645
1646 * configure.ac: Raised version number to 1.15.2
1647 * src/common.h: Include obstack.h
1648 (files_from_option): Removed
1649 (unquote_option): New variable
1650 (stat_fatal): New function
1651 (name_close): Removed function.
1652 * src/incremen.c: Remove inclusion of obstack.h
1653 * src/xheader.c: Likewise.
1654 * src/misc.c (stat_fatal): New function
1655 * src/names.c (name_file): Removed variable.
1656 (read_name_from_file): Removed function. All callers changed.
1657 (name_close): Removed function. All callers changed.
1658 * src/tar.c: New options --unquote (--no-unquote) and
1659 --add-file
1660 (add_file_id,read_name_from_file,update_argv): New functions
1661 (parse_opt): Rewritten handling of -T option. Handle hidden
1662 --HANG option for debugging purposes.
1663 (decode_options): Init unquote_option to true. Init argv_stk.
1664 Remove unneeded references to files_from_option
1665
1666 * doc/tar.texi: Document new options.
1667 Moved rendition macros and option value definitions into
1668 separate files
1669 * doc/rendition.texi: New file
1670 * doc/value.texi: New file
1671 * doc/Makefile.am: Updated
1672
1673 2005-01-13 Paul Eggert <eggert@cs.ucla.edu>
1674
1675 * tests/testsuite.at (RE_CHECK): Use "join - file", not
1676 "join file -", to work around a bug in Solaris 8 join.
1677 Problem reported by Tomohiro Suzuki.
1678
1679 2005-01-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1680
1681 * src/list.c (read_header): Fixed calculation of the
1682 size for GNU long name/link. Tar was reading one block
1683 more if name_size was divisible by 512. Thanks Josef
1684 Bauer.
1685 * tests/long01.at: New file. Test listing of GNU long names
1686 divisible by 512.
1687 * tests/pipe.at: Sort tar output.
1688 * tests/Makefile.am: Added long01.at
1689 * tests/testsuite.at: Likewise.
1690 * THANKS: Added Josef Bauer
1691 * lib/.cvsignore: Updated
1692 * m4/.cvsignore: Updated
1693 * NEWS: Updated
1694
1695 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1696
1697 * directory: Updated for 1.15.1
1698 * doc/Makefile.am: Use gendocs.sh to generate web documentation
1699 * doc/gendocs_template: Template file for gendocs.sh
1700 * doc/tar.texi: Updated docs for --[no-]same-permissions
1701 * src/tar.c: Reworded docstrings for --[no-]same-permissions
1702
1703 2005-01-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1704
1705 * bootstrap: Create m4/paxutils.m4
1706 * configure.ac: Call tar_PAXUTILS
1707 * tests/options02.at: Test that tar correctly handles non-option
1708 arguments interspersed with options.
1709 * tests/Makefile.am: Add options02.at
1710 * tests/testsuite.at: Likewise
1711 * tests/listed02.at: Do not create useless directory
1712
1713 2005-01-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1714
1715 * src/tar.c (parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks
1716 Mike Frysinger <vapier@gentoo.org> for reporting.
1717
1718 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
1719
1720 * lib/Makefile.tmpl (localedir.h): Omit needless quotes and a
1721 needless sed command. Problem reported by Paul Jarc.
1722
1723 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
1724
1725 Accommodate latest gnulib.
1726 * doc/.cvsignore: Add getdate.texi.
1727 * bootstrap: Do not treat alloca-opt specially; this is no
1728 longer needed (and breaks builds) with latest gnulib.
1729
1730 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1731
1732 * src/tar.c (main): Reverted recent changes (#ifdef).
1733
1734 2004-12-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1735
1736 * configure.ac: Raise version number to 1.15.1
1737 Check for locale.h
1738 * NEWS: Entry for 1.15.1
1739 * src/buffer.c: Bugfix. Changes introduced 2004-11-26
1740 broke extraction from stdin.
1741 * src/list.c (from_header, tar_checksum): Changed declaration.
1742 All callers updated.
1743 * src/common.h: Likewise
1744 * src/tar.c (main): Protect invocation of setlocale by
1745 ifdef.
1746
1747 * tests/comprec.at: New test
1748 * tests/pipe.at: New test
1749 * tests/Makefile.am (comprec.at,pipe.at): New tests
1750 * tests/testsuite.at: Likewise
1751 * tests/gzip.at: Use AT_GZIP_PREREQ
1752 * tests/star/pax-big-10g.at: Likewise
1753 * tests/star/ustar-big-2g.at: Likewise
1754 * tests/star/ustar-big-8g.at: Likewise
1755
1756 * tests/extrac04.at: Discard stderr from sort, on some
1757 systems it spits out lots of irrelevant info.
1758 * tests/listed02.at: Likewise
1759
1760 * doc/index.html.in: Rewritten in xhtml to follow recent
1761 GNU site standards.
1762 * THANKS: Updated
1763
1764 2004-12-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1765
1766 Released version 1.15. Sources up to this point are
1767 tagged release_1_15.
1768
1769 * configure.ac: Raised version number to 1.15
1770 * NEWS: Likewise
1771 * directory: Updated
1772 * bootstrap (update_po): Give -r to wget. Always remove index.html
1773 Ignore alloca-opt module (it duplicates alloca)
1774
1775 * tests/Makefile.am: Distribute star/quicktest.sh
1776 * tests/star/README: Document quicktest.sh
1777 * tests/star/qucktest.sh: Removed.
1778 * tests/star/quicktest.sh: New file.
1779
1780 2004-12-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1781
1782 * NEWS: Updated
1783 * doc/tar.texi: Document auto-detection of compressed archive
1784 formats.
1785 * src/tar.c (decode_options): Ignore --seek if used with --delete.
1786 Delete.c is based on the assumption that the archive is being
1787 actually read, not lseeked.
1788
1789 * tests/delete05.at: New file
1790 * tests/extrac02.at: Fixed typo in AT_SETUP
1791 * tests/Makefile.am: Added delete05.at
1792 * tests/testsuite.at: Likewise.
1793
1794 2004-12-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1795
1796 * src/delete.c (delete_archive_members): Bugfix: when
1797 attempting to delete an nonexistent member, the last
1798 blocking_factor blocks were zeroed.
1799
1800 2004-12-14 Paul Eggert <eggert@cs.ucla.edu>
1801
1802 * TODO: Mention sub-second resolution, lutimes, lchmod.
1803
1804 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
1805
1806 Adjust to recent gnulib changes.
1807 * doc/getdate.texi: Remove, since bootstrap gets it from gnulib now.
1808 * .cvsignore: Add rmt, rmt/*, rmt/*/*.
1809 * lib/.cvsignore: Add allocsa.c, allocsa.h, allocsa.valgrind,
1810 charset.alias, config.charset, getcwd.c, getcwd.h, localcharset.c,
1811 localcharset.h, ref-add.sed, ref-add.sin, ref-del.sed,
1812 ref-del.sin, setenv.c, setenv.h, unsetenv.c. Remove pathmax.h,
1813 xstrdup.c.
1814 * m4/.cvsignore: Add allocsa.m4, eealloc.m4, getcwd-path-max.m4,
1815 localcharset.m4, realloc.m4, setenv.m4. Remove malloc.m4,
1816 pathmax.m4, realloc.m4.
1817
1818 2004-11-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1819
1820 * configure.ac: Raised version number to 1.14.91
1821 * scripts/tarcat: New file
1822 * scripts/Makefile.am: Added tarcat
1823 * src/buffer.c (hit_eof): Changed type to boolean
1824 (read_full_records,reading_from_pipe): New variables
1825 (check_compressed_archive,open_compressed_archive): New functions
1826 (open_archive): Autodetect compressed archives and act accordingly.
1827 Set reading_from_pipe. This fixes controversial set of changes
1828 introduced 2004-05-11,2004-03-22.
1829 * src/list.c (tar_checksum): New function
1830 (read_header): Use tar_checksum().
1831 * src/common.h (tar_checksum): New function
1832
1833 * tests/star/README: Updated
1834 * NEWS: Updated
1835 * PORTS: Updated
1836
1837 2004-11-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1838
1839 * src/tar.c (decode_options): Fixed -o semantics. Thanks
1840 Jean Delvare <khali@linux-fr.org>
1841
1842 2004-10-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1843
1844 * bootstrap: Add localcharset
1845 * lib/Makefile.tmpl: Initialize SUFFIXES and CLEANFILES since the
1846 makefile snippet from localcharset uses '+=' on them.
1847 * src/Makefile.am (LDADD): Add LIBICONV
1848 * src/list.c (decode_header): Set uname/gname to NULL if their
1849 header counterparts are empty
1850 * src/tar.c (options): Use OPTION_NO_TRANS
1851 * src/utf8.c: Use locale_charset() from gnulib
1852
1853 * tests/star/README: Updated
1854
1855 * NEWS: Updated
1856 * TODO: Minor fix
1857
1858 2004-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1859
1860 * THANKS: Added Bryan Ford
1861 * doc/Makefile.am (.text): Fixed rule
1862 * po/POTFILES.in: Added argp-help.c
1863
1864 2004-10-04 Bryan Ford <baford@mit.edu>
1865
1866 * src/tar.c: New option --exclude-caches, to exclude
1867 cache directories automatically on archive creation.
1868 Cache directories are directories containing a
1869 standardized tag file, as specified at:
1870 http://www.brynosaurus.com/cachedir/spec.html
1871 * src/common.h: New variable exclude_caches_option.
1872 * src/create.c: New function check_cache_directory(),
1873 called from dump_dir0() if exclude_caches_option is set,
1874 to check for a cache directory tag and exclude the directory
1875 if such a tag is found.
1876 * doc/tar.texi: Updated accordingly.
1877
1878 2004-09-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1879
1880 * doc/tar.texi: Minor fix
1881 * src/tar.c (options): Minor fix
1882
1883 2004-09-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1884
1885 * TODO: Updated
1886 * lib/Makefile.tmpl: Added 'rtapelib.o: localedir.h' dependency
1887 * src/common.h: Comment WANT_DIRECTORY_REMOVE_OPTION.
1888 * src/extract.c: Normalized use of remove_any_file().
1889 * src/misc.c: Likewise.
1890 * src/tar.c (parse_opt): Emit warning if -l option is used.
1891 (show_default_settings): REMOTE_SHELL may be undefined
1892
1893 2004-09-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1894
1895 Test suite rewritten in autotest.
1896
1897 * configure.ac: Updated for autotest
1898 * src/tar.c (argp_program_version): Modified.
1899 * tests/Makefile.am: Rewritten for autotest.
1900
1901 * tests/.cvsignore: Updated
1902 * tests/append.at: New file
1903 * tests/atlocal.in: New file
1904 * tests/delete01.at: New file
1905 * tests/delete02.at: New file
1906 * tests/delete03.at: New file
1907 * tests/delete04.at: New file
1908 * tests/extrac01.at: New file
1909 * tests/extrac02.at: New file
1910 * tests/extrac03.at: New file
1911 * tests/extrac04.at: New file
1912 * tests/extrac05.at: New file
1913 * tests/gzip.at: New file
1914 * tests/ignfail.at: New file
1915 * tests/incremental.at: New file
1916 * tests/link01.at: New file
1917 * tests/listed01.at: New file
1918 * tests/listed02.at: New file
1919 * tests/longv7.at: New file
1920 * tests/multiv01.at: New file
1921 * tests/multiv02.at: New file
1922 * tests/multiv03.at: New file
1923 * tests/old.at: New file
1924 * tests/options.at: New file
1925 * tests/recurse.at: New file
1926 * tests/same-order01.at: New file
1927 * tests/same-order02.at: New file
1928 * tests/sparse01.at: New file
1929 * tests/testsuite.at: New file
1930 * tests/version.at: New file
1931 * tests/volume.at: New file
1932 * tests/star/gtarfail.at: New file
1933 * tests/star/gtarfail2.at: New file
1934 * tests/star/multi-fail.at: New file
1935 * tests/star/pax-big-10g.at: New file
1936 * tests/star/ustar-big-2g.at: New file
1937 * tests/star/ustar-big-8g.at: New file
1938
1939 * tests/preset.in: Removed
1940 * tests/before: Removed
1941 * tests/after: Removed
1942 * tests/version.sh: Removed.
1943 * tests/append.sh: Removed.
1944 * tests/delete01.sh: Removed.
1945 * tests/delete02.sh: Removed.
1946 * tests/delete03.sh: Removed.
1947 * tests/delete04.sh: Removed.
1948 * tests/extrac01.sh: Removed.
1949 * tests/extrac02.sh: Removed.
1950 * tests/extrac03.sh: Removed.
1951 * tests/extrac04.sh: Removed.
1952 * tests/extrac05.sh: Removed.
1953 * tests/gzip.sh: Removed.
1954 * tests/incremen.sh: Removed.
1955 * tests/ignfail.sh: Removed.
1956 * tests/link01.sh: Removed.
1957 * tests/listed01.sh: Removed.
1958 * tests/listed02.sh: Removed.
1959 * tests/longv7.sh: Removed.
1960 * tests/multiv01.sh: Removed.
1961 * tests/multiv02.sh: Removed.
1962 * tests/multiv03.sh: Removed.
1963 * tests/old.sh: Removed.
1964 * tests/options.sh: Removed.
1965 * tests/same-order01.sh: Removed.
1966 * tests/same-order02.sh: Removed.
1967 * tests/volume.sh: Removed.
1968 * tests/recurse.sh: Removed.
1969 * tests/sparse01.sh: Removed.
1970 * tests/star/gtarfail.sh: Removed.
1971 * tests/star/gtarfail2.sh: Removed.
1972 * tests/star/multi-fail.sh: Removed.
1973 * tests/star/ustar-big-2g.sh: Removed.
1974 * tests/star/ustar-big-8g.sh: Removed.
1975 * tests/star/pax-big-10g.sh: Removed.
1976
1977 2004-09-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1978
1979 * bootstrap: Install genfile.c from paxutils
1980 * tests/genfile.c: Removed. Integrated into
1981 paxutils.
1982 * tests/mksparse.c: Removed. Integrated into
1983 (paxutils) genfile.c
1984 * tests/Makefile.am: Removed mksparse
1985 * tests/sparse01.sh: Use genfile instead of mksparse
1986
1987 2004-09-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
1988
1989 Started merging with cpio into paxutils. Sources before
1990 this point are tagged alpha-1_14_90
1991
1992 * Makefile.am: Updated for use with paxutils
1993 * README-alpha: Likewise
1994 * bootstrap: Likewise
1995 * configure.ac: Likewise
1996 * lib/Makefile.tmpl: Likewise
1997 * po/POTFILES.in: Likewise
1998 * src/Makefile.am: Likewise
1999 * src/buffer.c: Likewise
2000 * src/common.h: Likewise
2001 * src/compare.c: Likewise
2002 * src/create.c: Likewise
2003 * src/delete.c: Likewise
2004 * src/extract.c: Likewise
2005 * src/incremen.c: Likewise
2006 * src/list.c: Likewise
2007 * src/mangle.c: Likewise
2008 * src/misc.c: Likewise
2009 * src/names.c: Likewise
2010 * src/sparse.c: Likewise
2011 * src/system.c: Likewise
2012 * src/tar.c: Likewise
2013 * src/update.c: Likewise
2014 * src/utf8.c: Likewise
2015 * src/xheader.c: Likewise
2016
2017 * src/system.h: Removed
2018 * src/rmt.c: Removed
2019 * src/rmt.h: Removed
2020 * src/rtapelib.c: Removed
2021
2022 2004-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2023
2024 * tests/listed02.sh: Do not depend on any particular ordering
2025 of output.
2026
2027 2004-09-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2028
2029 * doc/tar.texi: Document the use of -C option in
2030 file lists. Document --seek option.
2031 * configure.ac: New option --with-rmt. New configuration variable
2032 DEFAULT_RMT_DIR. Removed DEFAULT_RMT_COMMAND.
2033 * src/Makefile.am: Install rmt into rmtdir
2034 * src/tar.c (usage): Minor fix.
2035 * NEWS: Updated.
2036 * README: Updated.
2037
2038 2004-09-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2039
2040 * configure.ac: Raised version number to 1.14.90
2041 * src/common.h (is_individual_file): New prototype
2042 * src/create.c (dump_file0): Fix bug introduced
2043 2004-02-21.
2044 * src/names.c (register_individual_file)
2045 (is_individual_file): New functions.
2046 * tests/listed01.sh: Use genfile instead of dd.
2047 * tests/listed02.sh: New file.
2048 * tests/Makefile.am: Added listed02.sh
2049
2050 * NEWS: Updated
2051
2052 2004-08-31 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2053
2054 * src/sparse.c (sparse_add_map): Fixed improper initializations
2055 of sparse_map_size. We assume that whatever number it contains
2056 describes adequately the current size of sparse_map. The only
2057 number we need to reset is sparse_map_avail.
2058 * src/compare.c (verify_volume): Call set_next_block_after
2059 if read_header returns HEADER_FAILURE
2060 Destroy and reinitialize content of current_stat_info and
2061 extended_header after each iteration (bug reported by
2062 John L. Males <jlmales@yahoo.com>).
2063 Issue a warning if the created archive contains some members
2064 whose file names were stripped off their leading prefixes.
2065 This is a temporary fix of the issue reported by Bdale Garbee
2066 <bdale@gag.com> (Refs: Debian bug 230064, Message-Id
2067 <87n07kyzhi.fsf@rover.gag.com>, Sun, 15 Feb 2004 11:22:17 -0700)
2068
2069 * src/names.c (removed_prefixes_p): New function.
2070
2071 * src/buffer.c: When computing write rate do not take
2072 into account the time needed to verify the archive(s).
2073 The bug reported by John L. Males <jlmales@yahoo.com>
2074 (set_start_time,compute_duration): New functions.
2075 (print_total_written): Use the result of compute_duration().
2076 (close_archive): Call compute_duration.
2077 * src/common.h (set_start_time, removed_prefixes_p): New prototypes.
2078 * src/list.c (decode_header): Fixed initialization
2079 of stat_info->is_sparse
2080 * src/tar.c (main): Call set_start_time().
2081
2082 * src/misc.c (unquote_string): Unquote '\a' and '\v'.
2083 Reported by Helmut Waitzmann <helmut.waitzmann@web.de>.
2084
2085 * NEWS: Updated
2086 * THANKS: Updated
2087
2088 2004-08-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2089
2090 * src/tar.c: Fix copy-n-paste errors in the license
2091
2092 2004-08-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2093
2094 * scripts/backup.in: Renamed LIBPATH to LIBDIR.
2095 Use ROOT_FS with -C option. Do not send mail
2096 if ADMINISTRATOR is set to NONE.
2097 * scripts/backup.sh.in (test_root): Append / to
2098 ROOT_FS if it does not already end in it.
2099 * scripts/restore.in: Renamed LIBPATH to LIBDIR.
2100 New option -a (--all). Do not start restore unless
2101 -a or patterns are given.
2102 (restore_fs,restore_files): Fixed use of --listed option.
2103 * doc/tar.texi: Updated
2104 * NEWS: Updated
2105
2106 2004-08-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2107
2108 * src/tar.c (find_argp_option): Fixed typo
2109
2110 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
2111
2112 Merge argp, getopt, xalloc changes from gnulib.
2113 * bootstrap (gnulib_modules): Add xalloc-die.
2114 Remove code to test for patches; we don't have patches now.
2115 Set LC_ALL=C so that file names sort consistently.
2116 Prefer the gnulib copies of gettext.m4, glibc21.m4,
2117 lib-ld.m4, lib-prefix.m4, po.m4 too.
2118
2119 * patches/getopt.diff: Remove; gnulib now works unpatched.
2120 * configure.ac (_getopt_long_only_r): Remove check.
2121 gl_ARGP now does this for us.
2122 * lib/.cvsignore: Add fnmatch.h, getopt_.h, sysexit.h,
2123 xalloc-die.c.
2124 * src/extract.c: Adjust to changes to gnulib xalloc module.
2125 (extr_init): Remove assignment to xalloc_fail_func; no longer needed.
2126 (xalloc_die): New function.
2127
2128 2004-08-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2129
2130 * NEWS: Updated
2131
2132 * src/buffer.c (flush_write): Limit filenames
2133 of the members that straddle multivolume archive
2134 boundary to 100 characters.
2135 (flush_read): Use strncmp when comparing multivolume member
2136 names.
2137 * tests/multiv03.sh: New file
2138 * tests/Makefile.am: Added multiv03.sh
2139
2140 2004-08-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2141
2142 * src/list.c (read_and): Call decode_header before
2143 calling skip_member()
2144 (skip_member): Use is_sparse field to determine if the
2145 member is a sparse file.
2146
2147 * tests/Makefile.am: Added extrac05.sh
2148 * tests/extrac05.sh: New file
2149 * tests/append.sh: Rearranged leading comments. Added explicit
2150 references to report messages wherever available.
2151 * tests/delete01.sh: Likewise
2152 * tests/delete02.sh: Likewise
2153 * tests/delete03.sh: Likewise
2154 * tests/delete04.sh: Likewise
2155 * tests/extrac01.sh: Likewise
2156 * tests/extrac02.sh: Likewise
2157 * tests/extrac03.sh: Likewise
2158 * tests/extrac04.sh: Likewise
2159 * tests/gzip.sh: Likewise
2160 * tests/ignfail.sh: Likewise
2161 * tests/incremen.sh: Likewise
2162 * tests/link01.sh: Likewise
2163 * tests/listed01.sh: Likewise
2164 * tests/longv7.sh: Likewise
2165 * tests/multiv01.sh: Likewise
2166 * tests/multiv02.sh: Likewise
2167 * tests/old.sh: Likewise
2168 * tests/options.sh: Likewise
2169 * tests/recurse.sh: Likewise
2170 * tests/same-order01.sh: Likewise
2171 * tests/same-order02.sh: Likewise
2172 * tests/sparse01.sh: Likewise
2173 * tests/version.sh: Likewise
2174 * tests/volume.sh: Likewise
2175
2176 2004-08-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2177
2178 * bootstrap: Extended --update-po option to take an
2179 optional argument specifying the po file to update.
2180 * src/create.c: Improved compatibility with 1.13.25
2181 * tests/link01.sh: New file.
2182 * tests/Makefile.am: Added link01.sh
2183
2184 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
2185
2186 Merge from gnulib.
2187
2188 * patches/argp.diff: Remove; no longer needed.
2189
2190 * lib/.cvsignore: Add stat-macros.h.
2191 Remove addext.c, malloc.c, realloc.c.
2192
2193 * src/extract.c: Include <getcwd.h>.
2194 (extract_archive): Rewrite with new macro IS_ABSOLUTE_FILE_NAME.
2195 * src/extract.c (make_directories):
2196 FILESYSTEM_PREFIX_LEN -> FILE_SYSTEM_PREFIX_LEN.
2197 * src/misc.c (must_be_dot_or_slash): Likewise.
2198 * src/names.c (excluded_name, safer_name_suffix, stripped_prefix_len):
2199 Likewise.
2200 * src/tar.c (parse_opt): Likewise.
2201 * src/incremen.c (purge_directory): Fix format buffer typos in warning
2202 strings.
2203 * src/tar.c (options): Add missing initializers to pacify gcc.
2204 (decode_options): Remove unused var.
2205
2206 2004-08-02 Paul Eggert <eggert@cs.ucla.edu>
2207
2208 * bootstrap (gnulib_modules): Add getpagesize.
2209 * configure.ac (valloc): Remove check; valloc no longer used.
2210 * lib/.cvsignore: Add getpagesize.h.
2211 * m4/.cvsignore: Add getpagesize.m4.
2212 * src/buffer.c (record_buffer): New var.
2213 (open_archive): Don't use valloc; on older or buggy hosts, you can't
2214 free the result. Use page_aligned_alloc instead.
2215 * src/compare.c (diff_init): Likewise.
2216 * src/buffer.c (open_archive): Record the pointer to be freed
2217 into record_buffer.
2218 (close_archive): Free record_buffer.
2219 * src/common.h (page_aligned_alloc): New decl.
2220 * src/misc.c (quote_n, quote): Remove these redundant functions.
2221 (ptr_align): New function, from coreutils/src/system.h.
2222 (page_aligned_alloc): New function.
2223 * src/system.h (valloc): Remove.
2224
2225 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
2226
2227 * src/extract.c (extract_archive): Do not report an error
2228 when hard-linking X to X when X exists. Problem reported by
2229 Toby Peterson.
2230 * lib/.cvsignore: Add fchown-stub.c.
2231
2232 2004-06-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2233
2234 * NEWS: Updated
2235 * src/common.h (root_device): New global.
2236 (gnu_restore): Renamed to purge_directory().
2237 * src/extract.c (extr_init): Save the device number
2238 of the root device.
2239 (extract_archive): Renamed gnu_restore() to purge_directory().
2240 * src/incremen.c (gnu_restore): Renamed to purge_directory().
2241 Do not attempt to purge the directory if it is on a different
2242 device and one_file_system_option is set.
2243
2244 2004-06-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2245
2246 * doc/tar.texi: The actual default for exclude patterns
2247 is --no-anchored. Fixed.
2248 * src/tar.c (options): Likewise.
2249 Thanks "Felix Natter" <felix.natter@ldc.de> for noticing.
2250
2251 2004-06-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2252
2253 * doc/tar.texi: Fixed several inconsistencies.
2254 * src/tar.c: Fixed docstring for --checkpoint option.
2255
2256 2004-05-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2257
2258 * src/buffer.c (seek_archive): New function
2259 * src/common.h (seek_archive): New function
2260 (seekable_archive): New global.
2261 * src/list.c (skip_file): Use seek_archive() if
2262 possible.
2263 * src/tar.c (struct fmttab): Accept 'pax' as alias
2264 for 'posix'
2265 (options): New option -n (--seek).
2266 * src/update.c: Determine type of the archive before
2267 appending to it.
2268
2269 * TODO: Updated.
2270
2271 2004-05-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2272
2273 * bootstrap: New option --update-po
2274 * src/tar.c: New option -H (short alias to --format)
2275 * doc/tar.texi: Document -H option
2276 * src/names.c (safer_name_suffix): Fixed bug introduced
2277 2004-05-11.
2278
2279 2004-05-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2280
2281 * bootstrap: Apply patches from patch subdirectory
2282 * patches: New dir
2283 * patches/argp.diff: New file
2284 * patches/getopt.diff: New file
2285 * configure.ac: Check for _getopt_long_only_r and
2286 force using included version of getopt if the function
2287 is not available.
2288 * src/tar.c: Use argp for command line parsing.
2289 * src/system.h: Minor formatting fix
2290 * m4/.cvsignore: Updated
2291 * lib/.cvsignore: Updated
2292 * doc/tar.texi: Minor fix.
2293 * src/extract.c: Fix improper use of 'path' term
2294 * src/incremen.c: Likewise
2295 * src/list.c: Likewise
2296 * src/misc.c: Likewise
2297 * src/names.c: Likewise
2298 * src/rmt.h: Likewise
2299 * src/rtapelib.c: Likewise
2300 * src/update.c: Likewise
2301 * src/xheader.c: Likewise
2302 * tests/star/README: Minor fix
2303
2304 2004-05-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2305
2306 * configure.ac: Raised version number to 1.14.1
2307 * src/tar.c: Renamed --strip-path to --strip-components
2308 Changed improper use of _() to ngettext().
2309 * src/extract.c: Renamed strip_path_option to strip_components_option
2310 * src/common.h: Likewise.
2311 * NEWS: Updated.
2312 * doc/tar.texi: Updated
2313
2314 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2315
2316 * src/system.c (sys_child_open_for_uncompress): Do not
2317 set read_full_records_option: the compressed archive is
2318 likely not to contain integer number of records. Should
2319 the user wish to use reblocking, he may always give tar
2320 -B option. This is a minor improvement over the change
2321 dated 2004-03-22.
2322 * src/buffer.c (open_archive): Removed assignment to
2323 read_full_records_option.
2324
2325 * src/names.c (safer_name_suffix): (safer_name_suffix): Use "%s"
2326 as the format argument, rather than a possibly-translated variable
2327 string. Patch provided by Jim Meyering <jim@meyering.net>
2328 * src/tar.c (decode_options): Fixed typo in the comment.
2329 * tests/star/README: Minor correction
2330
2331 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2332
2333 * directory: New file. GNU directory entry for tar.
2334 * doc/Makefile.am: Rewritten. Added rules for generating
2335 documentation for the project's website.
2336 * doc/.cvsignore: Updated
2337 * doc/index.html.in: New file.
2338
2339 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2340
2341 * configure.ac: Raised version number to 1.14
2342 * NEWS: Updated.
2343 * tests/after: Added copyleft statement
2344 * tests/before: Added copyleft statement
2345 * tests/preset.in: Added copyleft statement
2346
2347 Tar 1.14 is released. Sources up to this point are tagged
2348 release_1_14
2349
2350 2004-05-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2351
2352 * configure.ac: Fixed prerequisite headers for sys/buf.h
2353 (needed on FreeBSD)
2354 * src/system.h: Likewise.
2355 * tests/after (compare): Fixed argument quoting under eval
2356 * tests/before: Quote TAR_ARCHIVE_FORMATS
2357
2358 2004-05-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2359
2360 * NEWS: Updated
2361 * README: Updated
2362 * PORTS: Updated
2363 * configure.ac: Call gl_AC_TYPE_INTMAX_T. Document
2364 DEFAULT_.* variables. Use DEFAULT_RMT_COMMAND to set
2365 the pathname of the rmt utility.
2366 New option --enable-backup-scripts.
2367 * doc/tar.texi: Updated
2368 * scripts/Makefile.am: Install the scripts only if requested
2369 by the configure.
2370 * scripts/backup.in: Fixed --version output.
2371 Fixed initialization of the listing files and printing
2372 the time of the last previous level dump.
2373 * scripts/restore.in: Fixed --version output.
2374 * src/Makefile.am (localedir.h rule): Generate correct
2375 DEFAULT_RMT_COMMAND variable.
2376 * src/common.h (rmt_command_option): New variable.
2377 * src/list.c (read_and): Print block number before
2378 issuing 'Skipping to next header' diagnostics, if
2379 requested by block_number_option.
2380 * src/rtapelib.c: Use rmt_command_option instead of
2381 hardcoded "/etc/rmt".
2382 * src/tar.c: New option --rmt-command.
2383 (decode_options): Handle --rmt-command. Initialize
2384 rmt_command_option to DEFAULT_RMT_COMMAND.
2385
2386 2004-05-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2387
2388 * doc/tar.texi: Further update.
2389
2390 2004-05-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2391
2392 * configure.ac: Minor fix
2393 * scripts/Makefile.am: Updated
2394 * scripts/backup-specs: Updated
2395 * scripts/backup.in: Minor fixes
2396 * scripts/backup.sh: Removed
2397 * scripts/backup.sh.in: New file. Source for backup.sh
2398 * scripts/restore.in: New file
2399 * scripts/.cvsignore: Updated
2400 * scripts/WARNING: Removed
2401 * doc/tar.texi: Updated
2402 * NEWS: Updated
2403
2404 2004-05-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2405
2406 * src/names.c (name_gather): Bugfix: Honor single -C with
2407 --same-order.
2408 * tests/same-order01.sh: New file
2409 * tests/same-order02.sh: New file
2410 * tests/Makefile.am: Updated
2411
2412 * tests/append.sh: Added copyleft header
2413 * tests/delete01.sh: Likewise
2414 * tests/delete02.sh: Likewise
2415 * tests/delete04.sh: Likewise
2416 * tests/extrac01.sh: Likewise
2417 * tests/extrac02.sh: Likewise
2418 * tests/extrac03.sh: Likewise
2419 * tests/extrac04.sh: Likewise
2420 * tests/gzip.sh: Likewise
2421 * tests/ignfail.sh: Likewise
2422 * tests/incremen.sh: Likewise
2423 * tests/multiv01.sh: Likewise
2424 * tests/old.sh: Likewise
2425 * tests/options.sh: Likewise
2426 * tests/recurse.sh: Likewise
2427 * tests/version.sh: Likewise
2428 * tests/volume.sh: Likewise
2429 * tests/star/gtarfail.sh: Likewise
2430 * tests/star/gtarfail2.sh: Likewise
2431 * tests/star/multi-fail.sh: Likewise
2432 * tests/star/pax-big-10g.sh: Likewise
2433 * tests/star/qucktest.sh: Likewise
2434 * tests/star/ustar-big-2g.sh: Likewise
2435 * tests/star/ustar-big-8g.sh: Likewise
2436
2437 * doc/.cvsignore: Updated
2438
2439 2004-05-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2440
2441 * configure.ac: Check whether date accepts +format argument
2442 (for backup scripts).
2443 * scripts/level-0: Removed
2444 * scripts/level-1: Removed
2445 * scripts/weekly.new: Removed
2446 * scripts/dump-remind: Removed
2447 * scripts/backup.in: New file
2448 * scripts/backup.sh: New file
2449 * scripts/dump-remind.in: New file
2450 * scripts/backup-specs: Updated
2451 * scripts/Makefile.am: Updated for new directory contents.
2452 * scripts/.cvsignore: Updated
2453
2454 2004-05-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2455
2456 * TODO: Updated
2457 * doc/tar.texi: Updated
2458 * src/tar.c: --utc implies -vv
2459
2460 2004-04-28 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2461
2462 * src/utf8.c: Make sure ICONV_CONST is defined. AM_ICONV
2463 does not define it if it fails to find iconv.h.
2464
2465 2004-04-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2466
2467 * bootstrap: Use gnulib-tool to generate lib/Makefile.am
2468 and parts of configure.ac
2469 * configure.ac: Invoke tar_GNULIB to configure gnulib stuff.
2470 * lib/Makefile.am: Removed
2471 * lib/Makefile.tmpl: New file.
2472 * lib/.cvsignore: Updated
2473 * m4/.cvsignore: Updated
2474 * src/xheader.c: Include stpcpy.h
2475
2476 * src/create.c: Produce an error, not warning, if the
2477 filename is too long.
2478 * tests/longv7.sh: Synchronized with the recent changes.
2479
2480 2004-04-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2481
2482 * configure.ac: Fixed test for iconv_t
2483 * src/rmt.h: Bugfix by Jürgen Weigert
2484 * THANKS: Add Jürgen Weigert
2485 * tests/star/README: Fixed typo
2486
2487 2004-04-04 Paul Eggert <eggert@twinsun.com>
2488
2489 Merge getdate documentation changes from coreutils.
2490
2491 * doc/getdate.texi: Update from coreutils CVS.
2492 * doc/tar.texi: Fix getdate menu to match getdate.texi's.
2493
2494 Merge recent gnulib changes, and remove some lint.
2495
2496 Improve support for nanosecond-resolution time stamps.
2497 * bootstrap: Add gettime, timespec modules.
2498 * configure.ac (gl_GETTIME, gl_TIMESPEC): Add.
2499 * lib/.cvsignore (getopt_int.h, gettime.c, gettimeofday.c,
2500 timespec.h): Add.
2501 * lib/Makefile.am (libtar_a_SOURCES): Add gettime.c, timespec.h.
2502 * m4/.cvsignore: Add clock_time.m4, gettime.m4, gettimeofday.m4,
2503 st_mtim.m4, timespec.m4. Remove malloc.m4, realloc.m4.
2504 * src/common.h (newer_mtime_option): Now a struct timespec, not
2505 time_t. All uses changed.
2506 (NEWER_OPTION_INITIALIZED, OLDER_STAT_MTIME): New macros.
2507 * src/create.c (dump_file0): Use OLDER_STAT_TIME to compare times.
2508 * src/incremen.c (scan_path): Likewise.
2509 * src/list.c (read_and): Likewise.
2510 * src/list.c (read_and): Use NEWER_OPTION_INITIALIZED to decide
2511 whether newer_mtime_option is initialized.
2512 * src/tar.c (decode_options): Likewise.
2513 * src/tar.c (decode_options): Adjust to new signature for get_date.
2514
2515 * src/buffer.c (short_read, flush_read): Use size_t, not ssize_t, for
2516 result of safe_read, full_write, and similar functions.
2517 Detect safe_read error by comparing to SAFE_READ_ERROR;
2518 detect full_write error by comparing to 0.
2519 All uses changed.
2520 * src/common.h (write_error_details, sys_write_archive_buffer):
2521 Likewise.
2522 * src/misc.c (write_error_details): Likewise.
2523 * src/rmt.c (main): Likewise.
2524 * src/rmt.h (rmt_read__, rmt_write__): Likewise.
2525 * src/rtapelib.c (rmt_read__, rmt_write__, rmt_ioctl__): Likewise.
2526 * src/sparse.c (sparse_scan_file, sparse_dump_region,
2527 check_sparse_region, check_data_region): Likewise.
2528 * src/system.c (sys_write_archive_buffer, sys_drain_input_pipe,
2529 sys_child_open_for_compress, sys_child_open_for_uncompress): Likewise.
2530 * src/update.c (append_file): Likewise.
2531
2532 * src/buffer.c (clear_read_error_count): Use explicit (void)
2533 to indicate a function with no arguments.
2534 * src/create.c (check_links): Likewise.
2535 * src/system.c (sys_get_archive_stat, sys_save_archive_dev_ino,
2536 sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell,
2537 sys_reset_uid_gid, sys_get_archive_stat, sys_save_archive_dev_ino,
2538 sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell):
2539 Likewise.
2540 * src/utf8.c (get_input_charset): Likewise.
2541 * src/xheader.c (xheader_ghdr_name, xheader_write_global,
2542 xheader_decode_global, extended_header_init): Likewise.
2543 * tests/mksparse.c (usage): Likewise.
2544
2545 * src/buffer.c (new_volume): Rename local variables to avoid
2546 shadowing warnings.
2547 * src/common.h (file_dumpable_p, sys_stat_nanoseconds,
2548 sparse_file_p, sparse_member_p, sparse_fixup_header,
2549 sparse_dump_file, sparce_extract_file, sparse_skip_file,
2550 sparse_diff_file): Likewise.
2551 * src/compare.c (diff_archive): Likewise.
2552 * src/create.c (file_dumpable_p, dump_regular_file, dump_dir0,
2553 dump_dir, dump_hard_link, file_count_links, dump_file0, dump_file):
2554 Likewise.
2555 * src/extract.c (repair_delayed_set_stat): Likewise.
2556 * src/misc.c (maybe_backup_file, add_hierarchy_to_namelist):
2557 Likewise.
2558 * src/sparse.c (struct tar_sparse_optab, tar_sparse_dump_region,
2559 tar_sparse_extract_region, sparse_dump_region, sparse_extract_region,
2560 sparse_dump_file, sparse_file_p, sparse_member_p,
2561 sparse_fixup_header, sparse_extract_file, sparse_skip_file,
2562 check_data_region, sparse_diff_file): Likewise.
2563 * src/system.c (sys_stat_nanoseconds): Likewise.
2564 * src/xheader.c (xheader_format_name): Likewise.
2565
2566 * src/common.h (enum old_files): Remove comma before }; not portable.
2567
2568 * src/common.h (read_fatal_details): Add __attribute__ ((noreturn)).
2569 * src/rmt.c (usage): Likewise.
2570 * src/xheader.c (xheader_set_single_keyword): Likewise.
2571 * tests/genfile.c (usage): Likewise.
2572 * tests/mksparse.c (die, usage): Likewise. Also add printf attribute
2573 to die.
2574
2575 * src/common.h (gname_to_gid, uname_to_uid): Add const to avoid
2576 some gcc warnings.
2577 * src/names.c (uname_to_uid, gname_to_gid): Likewise.
2578 * src/utf8.c (struct langtab.lang, struct langtab.terr, struct
2579 langtab.charset, charset_lookup): Likewise.
2580
2581 * src/common.h (name_init): Remove unused args. All callers changed.
2582 * src/names.c (name_init): Likewise.
2583
2584 * src/common.h (usage, xheader_write, xheader_write_global,
2585 sys_reset_uid_gid): New decls.
2586
2587 * src/compare.c (report_difference, process_noop): Add
2588 __attribute__ ((unused)) for unused attributes.
2589 * src/sparse.c (oldgnu_sparse_member_p, star_sparse_member_p):
2590 Likewise.
2591 * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
2592 gid_coder, gname_coder, linkpath_coder, ctime_coder, mtime_coder,
2593 path_coder, size_coder, uid_coder, uname_coder,
2594 sparse_numblocks_coder): Likewise.
2595
2596 * src/create.c (dump_regular_finish, dump_dir0, dump_dir,
2597 dump_file0): Now static.
2598 * src/utf8.c (charset_lookup): Likewise.
2599 * src/xheader.c (xheader_protected_pattern_p,
2600 xheader_protected_keyword_p, xheader_set_single_keyword,
2601 xheader_keyword_deleted_p, xheader_keyword_override_p,
2602 xheader_list_append, xheader_list_destroy, xheader_set_keyword_equal):
2603 Likewise.
2604 * tests/genfile.c (usage): Likewise.
2605 * tests/mksparse.c (die, mkhole, mksparse, usage, xlat_suffix):
2606 Likewise.
2607
2608 * src/create.c (hash_link): Rewrite to avoid cast.
2609
2610 * src/extract.c (file_newer_p): Use parameter, not global var.
2611 * src/misc.c (write_error_details): Likewise.
2612
2613 * src/extract.c (prepare_to_extract): Remove directory arg; not
2614 used. All callers changed.
2615
2616 * src/misc.c (close_fatal): Remove; not used.
2617 * src/system.c (sys_utimes): Likewise.
2618
2619 * src/rmt.c (get_string): Avoid buffer overrun (off by 1 error).
2620
2621 * src/rmt.c (main): Update copyright date to 2004.
2622 * src/tar.c (decode_options): Likewise.
2623
2624 * src/rtapelib.c (get_status_string): Don't lose errno when
2625 skipping the error messages.
2626 (get_status): Report an error if atol returns a negative number.
2627
2628 * src/utf8.c (struct langtab, langtab, charset_lookup,
2629 get_input_charset) [!defined HAVE_LIBCONV]: Omit unused
2630 definitions.
2631 (iconv_open, iconv, iconv_close) [!defined HAVE_LIBCONV]:
2632 Use macros, not definitions, to avoid type clashes with system
2633 headers.
2634 (charset_lookup): Local var is now auto, not static.
2635 (utf8_convert): Use ICONV_CONST instead of const, to avoid
2636 type clashes.
2637
2638 * src/utf8.c (langtab): Initialize all elements of struct, to
2639 avoid gcc warning.
2640 * src/xheader.c (xhdr_tab): Likewise.
2641
2642 * src/xheader.c: Include fnmatch.h, since we use fnmatch.
2643
2644 * tests/mksparse.c (mkhole): Fix typo: bool was assigned to off_t.
2645
2646 2004-04-04 Sergey Poznyakoff <gray@Noldor.runasimi.org>
2647
2648 * NEWS: Updated
2649 * configure.ac: Raised version number to 1.13.94
2650 * src/system.h: Protect inclusion of <sys/time.h>
2651 by ifdef.
2652 Declare time() if HAVE_DECL_TIME is 0
2653 * tests/.cvsignore: Added mksparse
2654
2655 * tests/sparse01.sh: New file
2656 * tests/multiv02.sh: New file
2657 * tests/Makefile.am: Add sparse01.sh and multiv02.sh
2658 * tests/longv7.sh: Added missing call to 'after'
2659
2660 * src/common.h: Added missing prototypes
2661 * src/compare.c (diff_archive): Use is_sparse member
2662 instead of GNUTYPE_SPARSE.
2663 * src/create.c: Removed unused variables
2664 * src/extract.c (extract_archive): Use sparse_member_p instead
2665 of GNUTYPE_SPARSE.
2666 Removed unused variables
2667 * src/list.c (decode_header): Use sparse_fixup_header to correct
2668 the st_size value.
2669 (print_header): Do not rely on GNUTYPE_SPARSE type.
2670 Use st->stat.st_size to print real file size.
2671 (skip_member): Assign stat_info.file_name to save_name. This fixes
2672 bug reported by Mads Martin Joergensen <mmj@suse.de>
2673 Use sparse_skip_file() to skip sparse members.
2674 * src/rtapelib.c: include "common.h"
2675 * src/sparse.c (struct tar_sparse_optab.sparse_member_p)
2676 (struct tar_sparse_optab.fixup_header): New member
2677 (tar_sparse_member_p): New function.
2678 (tar_sparse_init): Return true if decode_header is not provided
2679 (tar_sparse_fixup_header)
2680 (sparse_member_p,sparse_fixup_header)
2681 (sparse_skip_file)
2682 (oldgnu_sparse_member_p,oldgnu_fixup_header,star_sparse_member_p)
2683 (star_fixup_header, pax_sparse_member_p): New function
2684 (pax_decode_header): Remove
2685 * src/system.h: Include <sys/time.h> and <utime.h> when available
2686 * src/tar.c (usage): Prototype moved to common.h
2687 * src/tar.h (struct tar_stat_info.is_sparse): New member
2688 * src/utf8.c (utf8_convert): Changed prototype
2689 (get_input_charset): Removed unused variable
2690 * src/xheader.c: include <fnmatch.h>
2691 (size_decoder): Assign to both st->archive_file_size and
2692 st->stat.st_size.
2693 (st->stat.st_size): Assign to st->stat.st_size
2694 (sparse_numbytes_decoder): Removed unused variable
2695 * src/.cvsignore: Added .gdbinit
2696 * THANKS: Added Mads Martin Joergensen
2697
2698 2004-03-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2699
2700 * src/create.c (write_long_name): Do not allow more than
2701 NAME_FIELD_SIZE-1 characters in a file name for V7 format
2702 archives.
2703 * tests/longv7.sh: New file.
2704 * tests/Makefile.am: Add longv7.sh
2705
2706 2004-03-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2707
2708 * src/buffer.c (open_archive): Clear read_full_records_option
2709 if reading from a pipe.
2710 (short_read): Display warning about the deduced record size
2711 if version > 1
2712 * tests/star/pax-big-10g.sh: Updated to match the above changes.
2713 * tests/star/ustar-big-2g.sh: Likewise.
2714 * tests/star/ustar-big-8g.sh: Likewise.
2715
2716 * configure.ac: Added gl_FUNC_STRTOULL
2717 * src/create.c (start_header): Check for GNU_FORMAT
2718 if incremental_option is set.
2719 * src/xheader.c (to_decimal): New function.
2720 (xheader_format_name): Use to_decimal() instead of snprintf.
2721 * tests/listed01.sh: Use genfile instead of dd
2722 * tests/multiv01.sh: Likewise.
2723
2724 2004-03-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2725
2726 * src/list.c (read_and): Stop processing the archive after
2727 encountering a single zero record. Many old archives contain
2728 arbitrary garbage after it.
2729 The warning is issued anyway.
2730
2731 2004-03-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2732
2733 * src/rtapelib.c (rmt_lseek__,rmt_ioctl__): Bugfix. The
2734 conversion buffer was not null terminated. Fix provided
2735 by Leland Lucius <llucius@tiny.net>
2736 * THANKS: Added Leland Lucius
2737 * src/utf8.c (utf8_convert): Indentation fix.
2738
2739 2004-02-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2740
2741 * src/buffer.c (flush_read): Bugfix: the
2742 condition at line 714 included
2743
2744 || (status > 0 && !read_full_records_option)
2745
2746 which is grossly wrong, since even if new_volume() below succeeds,
2747 the subsequent call to rmtread will overwrite the chunk of data
2748 already read in the buffer and thus spoil everything.
2749 * src/system.c (sys_child_open_for_uncompress): Minor stylistic
2750 fix.
2751 * tests/star/multi-fail.sh: New test.
2752 * tests/Makefile.am: Added multi-fail.sh
2753 * tests/star/README: Updated
2754
2755 2004-02-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2756
2757 * NEWS: Updated
2758 * configure.ac: Removed spurious AC_CHECK_LIB(iconv)
2759 * src/common.h (utc_option): new global
2760 (enum old_files.KEEP_NEWER_FILES): New element
2761 * src/extract.c: Handle --keep-newer-files option
2762 * src/list.c (tartime): Print UTC if --utc was given.
2763 * src/tar.c: New options: --utc and keep-newer-files
2764
2765 * tests/Makefile.am: Added new tests
2766 * tests/after: Rewritten
2767 * tests/before: Rewritten
2768 * tests/preset.in: Rewritten
2769 * tests/delete03.sh: Accommodate for the new testsuite logic
2770 * tests/gzip.sh: Likewise
2771 * tests/incremen.sh: Likewise
2772 * tests/listed01.sh: Likewise
2773 * tests/multiv01.sh: Likewise
2774 * tests/old.sh: Likewise
2775 * tests/options.sh: Likewise
2776 * tests/version.sh: Likewise
2777 * tests/volume.sh: Likewise
2778
2779 * tests/star: New directory
2780 * tests/star/README: New file
2781 * tests/star/gtarfail.sh: New file
2782 * tests/star/gtarfail2.sh: New file
2783 * tests/star/pax-big-10g.sh: New file
2784 * tests/star/qucktest.sh: New file
2785 * tests/star/ustar-big-2g.sh: New file
2786 * tests/star/ustar-big-8g.sh: New file
2787
2788 2004-02-26 Paul Eggert <eggert@twinsun.com>
2789
2790 * doc/tar.texi (dircategory Individual utilities): Append period,
2791 as suggested by Karl Berry.
2792
2793 2004-02-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2794
2795 * src/list.c (decode_header): Call xheader_decode before
2796 the assignment to current_stat_info.archive_file_size.
2797
2798 2004-02-23 Paul Eggert <eggert@twinsun.com>
2799
2800 * configure.ac: Invoke AM_ICONV, to define ICONV_CONST if needed.
2801
2802 2004-02-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2803
2804 1.13.93 released.
2805
2806 * NEWS: Updated
2807 * tests/before: Move testing of the prerequisite archive formats
2808 to the separate function 'prereq'. Do not expect any arguments
2809 * tests/delete03.sh: Use prereq() instead of passing arguments
2810 to 'before'.
2811 * tests/incremen.sh: Likewise.
2812 * tests/listed01.sh: Likewise.
2813 * tests/multiv01.sh: Likewise.
2814
2815 2004-02-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2816
2817 Added UTF-8 support. Finished global extended header
2818 support.
2819
2820 * NEWS: Minor fix
2821 * configure.ac: Detect libiconv
2822 * src/utf8.c: New file. Conversions to and from utf-8.
2823 * src/Makefile.am: Added utf8.c
2824 * src/create.c (write_header_name) In pax format, use
2825 "path" keyword if the file name is not ASCII
2826 (start_header): Likewise for uname and gname.
2827 * src/list.c: Decode encountered global headers.
2828 * src/xheader.c: Use keywords from the global
2829 headers.
2830 Correctly handle UTF-8 conversions.
2831 (xheader_list_destroy): New function.
2832 (xheader_set_single_keyword,xheader_set_keyword_equal): Added
2833 missing gettext markers
2834 (decode_record): Rewritten using caller-provided handler and
2835 data closure.
2836 * tests/listed01.sh: Give credit to Andreas Schuldei.
2837
2838 2004-02-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2839
2840 * src/create.c (dump_file0): The conditional at line
2841 1296 prevented incremental backups on individual files
2842 from working, as reported by Andreas Schuldei
2843 <andreas@schuldei.org>.
2844
2845 This is due to the condition
2846
2847 (0 < top_level || !incremental_option)
2848
2849 Removing it makes incremental backups work for individual
2850 files as well as for directories. On the other hand, it does
2851 not affect other functionality, as shown by the reasoning below:
2852
2853 To begin with, the two parts of this condition are mutually
2854 superfluous, because
2855
2856 1) when top_level < 0, incremental_option == 1
2857 so the condition yields false
2858 2) when top_level >= 0, incremental_option == 0
2859 so the condition yields true.
2860
2861 In other words, it is completely equivalent to
2862
2863 (!incremental_option)
2864
2865 Now, let's consider the effect of its removal. There are two cases:
2866
2867 1) when incremental_option==1
2868 This means incremental backup in progress. In this case dump_file
2869 is invoked only for directories or for files marked with 'Y' by
2870 get_directory_contents. The latter are those that did not meet the
2871 condition in incremen.c:242, which is exactly the same condition
2872 as this at create.c:1296. So, for these files the check
2873 (!incremental_option) is useless, since the rest of the
2874 conditional will yield false anyway. On the other hand, if
2875 dump_file is invoked on a directory, the conditional will yield
2876 false due to !S_ISDIR assertion, so these will be processed as usual.
2877
2878 Thus, for this case the extra condition (!incremental_option) is
2879 irrelevant, and its removal won't alter the behavior of tar,
2880 *except* that it will enable incremental backups on individual
2881 files, which is the wanted effect.
2882
2883 2) when incremental_option==0
2884 In this case the condition yields true and its removal does not
2885 affect the functionality.
2886
2887 * THANKS: Updated
2888 * configure.ac: Raised patchlevel to 93
2889 * src/incremen.c: Minor stylistic fixes.
2890 * tests/listed01.sh: New test. Check listed incremental
2891 backups on individual files.
2892 * tests/Makefile.am: Added listed01.sh
2893
2894 2004-02-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2895
2896 * src/common.h (simple_finish_header,start_private_header): New
2897 declarations
2898 (xheader_ghdr_name): Changed declaration
2899 * src/create.c (start_private_header): Removed static qualifier.
2900 (write_extended): Removed superfluous last argument. Use
2901 xheader_write()
2902 (simple_finish_header): New function.
2903 (finish_header): Use simple_finish_header() to break recursive
2904 dependency between this function and write_extended().
2905 * src/tar.c (assert_format): Do not bail out if several
2906 --format arguments are given. This is a common case when
2907 TAR_OPTIONS are used.
2908 (decode_options): New option --show-defaults displays the
2909 compiled-in defaults.
2910 Use POSIX format if no --format option was given and
2911 --pax-option was specified.
2912 Do not allow to use --pax-option unless the archive format is
2913 set to POSIX (or reading subcommand is requested).
2914
2915 * src/update.c (update_archive): Write global extended header if
2916 constructed.
2917 * src/xheader.c (xheader_format_name): Bugfix.
2918 (xheader_xhdr_name): Changed the default extended header name
2919 to '%d/PaxHeaders.%p/%f', as POSIX requires.
2920 (xheader_ghdr_name): Removed unused argument.
2921 (xheader_write,xheader_write_global): New function.
2922 (xheader_decode): Modified to honor overrides whatever
2923 the current archive format is.
2924
2925 * src/delete.c (delete_archive_members): Call xheader_decode
2926 unconditionally.
2927 * src/list.c (decode_header): Likewise.
2928 * src/incremen.c (sort_obstack): Fixed typo in the comment
2929
2930 * doc/tar.texi: Document new default for extended
2931 header names.
2932
2933 * tests/before: Accept an optional list of allowed archive
2934 formats. Exit with the status 77 if the current archive
2935 format does not match any of them.
2936 * tests/delete03.sh: Require gnu, oldgnu or posix format
2937 * tests/incremen.sh: Require gnu or oldgnu format
2938 * tests/multiv01.sh: Likewise
2939
2940 2004-02-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2941
2942 * doc/tar.texi (Option Summary): Documented --pax-option
2943 * src/tar.c: Likewise.
2944 * NEWS: Likewise.
2945 * src/create.c (to_chars): Added a comment.
2946 * src/tar.h: Comment to GNU_FORMAT
2947
2948 2004-02-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2949
2950 * README: Updated
2951 * configure.ac: Added stpcpy
2952 * bootstrap: Likewise
2953 * lib/Makefile.am: Likewise
2954 * src/common.h (xheader_xhdr_name,xheader_ghdr_name): New
2955 functions
2956 * src/create.c (write_extended): Call xheader_xhdr_name
2957 instead of using hardcoded "././@PaxHeader" name.
2958 * src/tar.c: New option --pax-option (equivalent to -o option
2959 of pax).
2960 * src/xheader.c: Implement pax -o option. Fixed misleading
2961 heading comment (introduced 2003-09-02).
2962 * src/incremen.c: Minor fixes
2963 * m4/.cvsignore: Updated
2964
2965 2004-02-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2966
2967 * src/incremen.c: Removed accumulator stuff in favor of obstack.
2968 (get_directory_contents): Split into two functions
2969 * src/update.c: Minor changes
2970 * doc/tar.texi: Fixed typo
2971
2972 2004-02-15 Paul Eggert <eggert@twinsun.com>
2973
2974 Fix Debian bug 230872, originally reported by Jeff King in
2975 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=230872>.
2976
2977 * doc/tar.texi (posix compliance): Remove. The whole section
2978 was a misunderstanding of what POSIXLY_CORRECT is supposed to
2979 mean. The GNU Coding Standards says that POSIXLY_CORRECT
2980 is for disabling extensions that are incompatible with POSIX:
2981 it is not for disabling compatible extensions. All references
2982 to this section removed.
2983 (posix): This format is created only if the posix format is
2984 specified; it is no longer created if gnu format is specified
2985 and POSIXLY_CORRECT is set.
2986 * src/tar.c (decode_options): Ignore POSIXLY_CORRECT.
2987 POSIX does not specify the behavior of tar, so we should
2988 not worry about POSIXLY_CORRECT here.
2989
2990 2004-01-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2991
2992 * Makefile.am: Removed m4
2993 * configure.ac: Require automake-1.8/autoconf-2.59. Removed
2994 m4/Makefile.
2995 * README-alpha: Updated
2996 * bootstrap: Updated TP URL, improved help output. Default
2997 to :ext:anoncvs and set CVS_RSH, unless already set.
2998 * m4/Makefile.am: Removed
2999
3000 2004-01-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3001
3002 * bootstrap: Bugfix by Marco Gerards <metgerards@student.han.nl>:
3003 Use $option instead of $1 so all options will be parsed.
3004
3005 2004-01-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3006
3007 Started rewriting buffer.c ...
3008
3009 * bootstrap: New option --no-po
3010 * src/buffer.c (new_volume,check_label_pattern): Changed return type.
3011 (time_to_start_writing): Changed data type
3012 (file_to_switch_to): Removed. Variable never assigned to.
3013 (open_archive) Moved option compatibility checks to tar.c
3014 Other minor changes.
3015 * src/common.h (maybe_backup_file): Changed return type
3016 * src/misc.c: Likewise.
3017 * src/create.c: Updated invocations of safer_name_suffix
3018 * src/extract.c: Likewise
3019 * src/delete.c: Updated assignment to write_archive_to_stdout
3020 * src/tar.c (decode_options): More option compatibility checks
3021 (moved from buffer.c)
3022 * src/update.c (time_to_start_writing): Changed data type.
3023 * tests/recurse.sh: New test case.
3024 * tests/mksparse.c: New file.
3025 * tests/Makefile.am: Added recurse.sh and mksparse.c
3026
3027 2004-01-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3028
3029 * src/sparse.c (sparse_diff_file): Bugfix. Thanks
3030 Martin Simmons for the patch.
3031 * src/create.c (dump_dir0): Bugfix. Thanks Piotr Czerwinski
3032 <pius@pld-linux.org> for the patch.
3033
3034 2003-12-26 Paul Eggert <eggert@twinsun.com>
3035
3036 Synchronize with Gettext 0.13.1, Automake 1.8, Autoconf 2.59,
3037 and translation website.
3038
3039 * bootstrap: Don't bother skipping codeset.m4, glibc21.m4,
3040 intdiv0.m4, inttypes_h.m4, inttypes.m4, inttypes-pri.m4,
3041 isc-posix.m4, and lcmessage.m4 from gnulib. This list of files is
3042 a bit obsolete anyway, now that gettext 0.13.1 is out. Also, the
3043 files are replaced by autoreconf. Also, there seems to be a bug
3044 in gettext/autoconf/automake if we try to omit these files after
3045 autoreconf has replaced them, even though the gettext manual says
3046 they're optional. So give up and just include them for now, even
3047 though they make 'configure' longer and slower.
3048
3049 Change translation URL from
3050 <http://www.iro.umontreal.ca/contrib/po/maint/tar/> to
3051 <http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
3052 accommodate translator website revamp.
3053
3054 Fail if autoreconf fails.
3055
3056 * m4/.cvsignore: Add intmax.m4, longdouble.m4, printf-posix.m4,
3057 signed.m4, size_max.m4, wchar_t.m4, wint_t.m4, xsize.m4, to
3058 ignore files now supplied by gettext 0.13.1.
3059
3060 2003-12-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3061
3062 Synchronized with the backup repository on Mirddin
3063
3064 2003-12-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3065
3066 * configure.ac: Check for varios members of struct stat
3067 that may represent file modification times with a subsecond
3068 precision.
3069 Check for utimes (for future use)
3070 * src/buffer.c (short_read): Issue a warning on short reads.
3071 * src/common.h (sys_stat_nanoseconds): New function
3072 * src/create.c (dump_file0): Use sys_stat_nanoseconds().
3073 * src/list.c (read_and): Treat only two successive zero
3074 filled blocks as an EOF indicator. Issue a warning if
3075 a single one is encountered.
3076 * src/system.c (sys_stat_nanoseconds): New function
3077 * src/tar.h (tar_stat_info.atime_nsec,mtime_nsec,ctime_nsec): New
3078 members.
3079 * src/xheader.c (code_time,decode_time): Support for subsecond
3080 precision.
3081 (atime_coder,atime_decoder,ctime_coder,ctime_decoder)
3082 (mtime_coder,mtime_decoder): Update invocations of code_time and
3083 decode_time.
3084 (gid_decoder,size_decoder,uid_decoder,sparse_size_decoder)
3085 (sparse_numblocks_decoder,sparse_offset_decoder)
3086 (sparse_numbytes_decoder): Updated
3087
3088 2003-12-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3089
3090 * src/names.c (safer_name_suffix): Reverted change made
3091 2003-11-14. Reason: Discussion with Paul Eggert and
3092 Jean-Louis Martineau. See also ChangeLog entry from
3093 1999-08-14.
3094 * tests/delete03.sh: Likewise.
3095 * tests/extrac04.sh: Likewise.
3096 * tests/multiv01.sh: Likewise.
3097
3098 2003-12-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3099
3100 * src/incremen.c (write_directory_file): Use sys_truncate
3101 * src/list.c (print_header): Use archive_file_size member
3102 when printing real file size.
3103 * src/sparse.c (sparse_scan_file): Correctly handle files with
3104 a hole at the end.
3105 (sparse_dump_region,sparse_extract_region): Allow for zero size
3106 trailing blocks
3107
3108 2003-12-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3109
3110 * configure.ac: Raised version number to 1.13.92
3111 * src/list.c (decode_header): Discern between pax and ustar
3112 formats
3113 Initialize current_stat_info.archive_file_size.
3114
3115 NOTE: Modifications from this date on are temporarily
3116 stored on local CVS on mirddin. This repository will
3117 be synchronized with Savannah as soon as the latter
3118 becomes operational again.
3119
3120 2003-12-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3121
3122 * TODO: Updated
3123 * src/sparse.c: Initial implementation of GNU/pax sparse
3124 file format.
3125 * src/common.h (xheader_store): Changed prototype.
3126 * src/create.c: Update calls to xheader_store
3127 * src/extract.c (extract_archive): Check reported size vs.
3128 archive file size to determine if we have to do with a
3129 sparse file.
3130 * src/tar.c (usage): Cleaned up the sample argument to --newer
3131 option.
3132 (decode_options): Allow --sparse for POSIX_FORMAT archives.
3133 * src/xheader.c (struct xhdr_tab.coder; all coder function): Added
3134 extra argument
3135 Implemented GNU.sparse.* keywords.
3136
3137 2003-11-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3138
3139 * configure.ac: Check for setlocale. Thanks Bruno Haible for
3140 reporting.
3141
3142 2003-11-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3143
3144 * src/create.c (write_gnu_long_link): Use oldgnu
3145 magic with @LongLink blocks.
3146
3147 2003-11-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3148
3149 * src/tar.h: Support for star sparse format.
3150 * src/sparse.c: Likewise.
3151
3152 2003-11-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3153
3154 * src/sparse.c (sparse_diff_file): New function
3155 * src/common.h (sys_compare_uid,sys_compare_gid): New functions
3156 (sys_compare_uid_gid): Removed.
3157 (sys_compare_links,report_difference): Changed prototype
3158 (sparse_diff_file): New function
3159 * src/system.c (sys_compare_uid,sys_compare_gid): New functions
3160 (sys_compare_uid_gid): Removed.
3161 (sys_compare_links): Changed declaration
3162 * src/compare.c (diff_archive): Use sparse_diff_file.
3163
3164 2003-11-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3165
3166 Rewritten sparse file handling.
3167
3168 * src/sparse.c: New file. Provides a universal framework
3169 for various methods for sparse files handling.
3170 * src/Makefile.am: Added sparse.c
3171 * src/common.h (struct sp_array,sparsearray,sp_array_size)
3172 (init_sparsearray,fill_in_sparse_array): Removed
3173 (enum dump_status): New data type
3174 (pad_archive,close_diag,open_diag,read_diag_details)
3175 (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
3176 functions.
3177 (sparse_file_p,sparse_dump_file,sparse_extract_file): New
3178 functions.
3179 (print_header): Changed prototype declaration.
3180 * src/tar.h (struct sp_array): Declaration from common.h
3181 (struct tar_stat_info): New members archive_file_size,
3182 sparse_map_avail,sparse_map.
3183 * src/create.c: Major rewrite.
3184 * src/extract.c: Use new sparse file interface.
3185 * src/compare.c (diff_sparse_files): Temporary placeholder.
3186
3187 * src/buffer.c: Minor changes
3188 * src/tar.c: Likewise.
3189 * src/list.c: Likewise.
3190 * src/misc.c (close_diag,open_diag,read_diag_details)
3191 (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
3192 diagnostics functions.
3193 * src/incremen.c: Use new diagnostics functions.
3194 * src/names.c: Likewise.
3195
3196 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3197
3198 * configure.ac: Fixed check for setsockopt
3199
3200 * src/create.c: Do not zero-terminate name field if
3201 the name is exactly 100 characters long.
3202 (write_ustar_long_name): Fixed cheking for unsplittable
3203 names.
3204
3205 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3206
3207 * src/create.c (start_header): Removed debugging hook
3208 (dump_file): Fixed handling of linkname field.
3209 * src/names.c (safer_name_suffix): If the input
3210 file name ends with a slash, output one should do so
3211 as well.
3212 * doc/tar.texi: Documented --format=ustar
3213
3214 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3215
3216 * src/tar.h (archive_format): USTAR_FORMAT: New type.
3217 * src/create.c: Added POSIX.1-1988 support.
3218 * src/names.c (safer_name_suffix): Skip leading ./
3219 * src/tar.c: New option --format=ustar forces
3220 POSIX.1-1988 archive format.
3221 * tests/delete03.sh: Updated.
3222 * tests/extrac04.sh: Updated.
3223 * tests/multiv01.sh: Updated.
3224
3225 2003-11-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3226
3227 * src/list.c (read_and): Initialize current_stat_info
3228 and extended_header at the start of the loop.
3229 * src/names.c (all_names_found): Check if the argument
3230 contains valid filename. Fixes coredump on `not_a_tar_file'
3231 * src/xheader.c (atime_decoder,gid_decoder,ctime_decoder)
3232 (mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax.
3233 Fixes `pax-big-10g' bug.
3234
3235 2003-11-12 Paul Eggert <eggert@twinsun.com>
3236
3237 Fix some C compatibility bugs reported by Joerg Schilling.
3238
3239 * src/common.h (stripped_prefix_len): Fix misspelling
3240 "stripped_path_len" in declaration.
3241 * src/rmt.c (main): Use "return FOO;" rather than
3242 "exit (FOO);"; we no longer have to worry about
3243 pre-ANSI hosts that mishandled returned values from "main".
3244 * src/tar.c (main): Likewise. This avoids warnings on some
3245 compilers.
3246 * src/system.c: Include signal.h, for 'kill'.
3247 * src/system.h (DEV_BSIZE): Remove.
3248 (DEFAULT_ST_BLKSIZE): New macro.
3249 (ST_BLKSIZE): Use it, instead of DEV_BSIZE.
3250 * src/tar.c (enum): Remove comma just before }.
3251
3252 2003-11-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3253
3254 * src/list.c (decode_header): Initialize st_atime and
3255 st_ctime.
3256
3257 2003-11-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3258
3259 * configure.ac (tar_save_LIBS): Bugfix. Thanks Adrian
3260 Bunk <bunk@fs.tum.de> for reporting.
3261 * doc/tar.texi: Fixed spelling. Thanks Martin Buchholz
3262 <martin@xemacs.org> for spotting.
3263
3264 2003-11-04 Paul Eggert <eggert@twinsun.com>
3265
3266 * src/xheader.c (xhdr_tab): Make it extern, not static, as C89 and
3267 C99 require this.
3268
3269 2003-10-26 Paul Eggert <eggert@twinsun.com>
3270
3271 * src/system.c (sys_spawn_shell): Cast trailing null to (char *).
3272 Bug reported by Christian Weisgerber.
3273
3274 2003-10-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3275
3276 * AUTHORS: Updated
3277 * NEWS: Updated
3278 * src/tar.c (decode_options): Removed superfluous archive format
3279 check
3280 * doc/tar.texi: Documented new features.
3281
3282 2003-10-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3283
3284 * NEWS: Updated
3285 * THANKS: Added Wojciech Polak
3286 * configure.ac: Added checks for missing functions. Raised
3287 version number to indicate alpha release.
3288 * lib/Makefile.am: Added missing headers
3289 * lib/waitpid.c: Added missing includes.
3290 * src/extract.c: Likewise.
3291 * src/names.c: Removed spurious includes.
3292 * src/xheader.c: Likewise.
3293 * src/system.h [MSDOS]: Fixed spelling of EACCES. Added
3294 macro overriding broken mkdir prototypes.
3295
3296 2003-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3297
3298 * configure.ac: Check for dev_t and ino_t.
3299 * m4/Makefile.am: Added missing files.
3300 * src/system.c: New file.
3301 * src/Makefile.am: Added system.c
3302 * src/common.h: Prototypes for functions from system.c
3303 * src/system.h (SET_BINARY_MODE, ERRNO_IS_EACCESS): New defines
3304 * src/buffer.c: Moved system dependencies to system.c
3305 * src/compare.c: Likewise.
3306 * src/create.c: Likewise.
3307 * src/delete.c: Likewise.
3308 * src/extract.c: Likewise.
3309 * src/rtapelib.c: Likewise.
3310
3311 2003-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3312
3313 Implemented --occurrence option.
3314
3315 * NEWS: Updated.
3316 * src/tar.c: New option --occurrence.
3317 * src/common.h (occurrence_option): New global
3318 (struct name): Changed `found' member to `uintmax_t
3319 found_count'.
3320 (names_done): Removed
3321 (all_names_found): Changed prototype.
3322 (ISFOUND,WASFOUND): New macros
3323 * src/delete.c (delete_archive_members): Honor --occurrence
3324 option.
3325 * src/list.c (read_and): Likewise.
3326 * src/names.c: Count number of occurrences of each name in the
3327 archive.
3328 (name_match): Honor --occurrence option.
3329 (names_done): Removed
3330 (all_names_found,names_notfound): Rewritten.
3331
3332 2003-10-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3333
3334 * src/tar.c: Removed extra precaution regarding
3335 subcommand_option == CAT_SUBCOMMAND
3336 * lib/Makefile.am: Updated
3337
3338 2003-10-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3339
3340 * src/common.h (names_done): New function.
3341 * src/names.c: Likewise.
3342 * src/list.c (read_and): Use all_names_found() as `while'
3343 condition.
3344 * src/tar.c: New option --first-copy
3345 * NEWS: Updated
3346
3347 2003-09-24 Paul Eggert <eggert@twinsun.com>
3348
3349 * src/rmt.c (main): Don't translate Copyright string; international
3350 law says the word "Copyright" should be in English.
3351 * src/tar.c (decode_options): Likewise.
3352
3353 2003-09-22 Paul Eggert <eggert@twinsun.com>
3354
3355 * doc/tar.texi (extracting untrusted archives): New section.
3356
3357 * src/common.h (stripped_path_len): Renamed from cut_path_elements.
3358 Return size_t, not pointer, so that we don't have to worry about
3359 violating the C standard by converting char const * to char *.
3360 All callers changed.
3361 * src/names.c (stripped_path_len): Likewise. Strip file system
3362 prefix, too. Count adjacent slashes as if they were one slash;
3363 that is the POSIX standard.
3364
3365 2003-09-17 Paul Eggert <eggert@twinsun.com>
3366
3367 * README-alpha: Document maintainer tool assumptions a bit. GNU
3368 'sed' is no longer required. For GNU m4 1.4, suggest the patch in
3369 Debian bug 211447. Fix minor misspellings/whitespace nits.
3370
3371 * configure.ac (AC_AIX, AC_MINIX): Remove; subsumed by
3372 gl_USE_SYSTEM_EXTENSIONS.
3373
3374 * lib/.cvsignore: Add exit.h, time_r.c, time_r.h.
3375 * m4/.cvsignore: Add restrict.m4, time_r.m4.
3376
3377 2003-09-17 Paul Eggert <eggert@twinsun.com>
3378
3379 * bootstrap: Don't use "for option; do";
3380 Solaris 8 /bin/sh doesn't like that.
3381
3382 2003-09-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3383
3384 * README-alpha: Updated
3385 * bootstrap: Updated
3386
3387 2003-09-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3388
3389 * README-alpha: Updated
3390 * bootstrap: Updated
3391 * po/POTFILES.in: Added src/xheader.c
3392 * src/common.h (cut_path_elements): Added proto.
3393
3394 2003-09-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3395
3396 * src/buffer.c: Use ngettext where appropriate.
3397 * src/compare.c: Likewise.
3398 * src/create.c: Likewise.
3399 * src/misc.c: Likewise.
3400 * src/tar.c: Likewise.
3401 * src/update.c: Likewise.
3402
3403 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3404
3405 * .cvsignore: Added *.shar.gz
3406 * NEWS: Updated
3407 * TODO: Updated
3408 * src/common.h (strip_path_elements): New variable.
3409 * src/extract.c (extract_archive): Implemented --strip-path
3410 * src/names.c (cut_path_elements): New function.
3411 * src/tar.c: New option --strip-path=NUM.
3412 (decode_options) Assign boolean values to bool variables.
3413
3414 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3415
3416 * src/delete.c: Fixed deletion from the POSIX archives.
3417 * src/list.c (read_header): Minor change.
3418 * src/tar.c (main): Do not check for volume_label_option
3419 if subcommand_option is not CREATE_SUBCOMMAND.
3420 * src/xheader.c (xheader_decode): Store the header as
3421 well (for eventual delete).
3422
3423 * tests/incremen.sh: Explicitly request GNU format. This will
3424 disappear when GNU extended header keywords are working.
3425 * tests/multiv01.sh: Likewise
3426 * tests/volume.sh: Likewise
3427
3428 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3429
3430 * src/create.c: Support for "linkpath" extended keyword.
3431 * src/xheader.c (decode_record): Reversed the return
3432 condition.
3433
3434 2003-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3435
3436 * configure.ac: Allow to redefine the default output format.
3437 * src/tar.c: Use DEFAULT_ARCHIVE_FORMAT macro
3438 (archive_format_string): New function.
3439 (usage): Updated help output.
3440 * README: Updated.
3441 * NEWS: Updated.
3442 * TODO: Updated.
3443
3444 2003-09-02 Paul Eggert <eggert@twinsun.com>
3445
3446 * src/common.h (destroy_stat, xheader_decode, xheader_store,
3447 xheader_read, xheader_finish, xheader_destroy): Add decls;
3448 C99 requires this.
3449
3450 * src/create.c (write_extended): Remove unused local 'bufsize'.
3451
3452 * src/delete.c (delete_archive_members): Handle case of
3453 HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE.
3454 * src/list.c (read_and): Abort if HEADER_SUCCESS_EXTENDED
3455 occurs, as it's not possible.
3456 * src/update.c (update_archive): Likewise.
3457
3458 Use "const" when possible in new code.
3459 * src/tar.c (struct fmttab.name): Now char const *. All uses changed.
3460 (fmttab): Now const. All uses changed.
3461 * src/xheader.c (struct xhdr_tab.keyword): Now pointer to const.
3462 (struct xhdr_tab.coder, struct xhdr_tab.decoder, locate_handler,
3463 decode_record, xheader_store, xheader_print, code_string, code_time,
3464 code_num, dummy_coder, dummy_decoder, atime_coder, atime_decoder,
3465 gid_coder, gid_decoder, gname_coder, gname_decoder, linkpath_coder,
3466 linkpath_decoder, ctime_coder, ctime_decoder, mtime_coder,
3467 mtime_decoder, path_coder, path_decoder, size_coder, size_decoder,
3468 uid_coder, uid_decoder, uname_coder, uname_decoder):
3469 Use pointers to const when possible.
3470 (xhdr_tab): Now const.
3471
3472 * src/tar.c (fmttab): Avoid GCC warning by not eliding initializers.
3473 (set_archive_format): Report an error if no format name matches,
3474 instead of returning an undefined value.
3475
3476 * src/xheader.c (struct xhdr_tab.decoder, dummy_decoder,
3477 atime_decoder, gid_decoder, gname_decoder, linkpath_decoder,
3478 ctime_decoder, mtime_decoder, path_decoder, size_decoder,
3479 uid_decoder, uname_decoder): Remove unused keyword arg.
3480 All uses changed.
3481
3482 * src/tar.c (set_archive_format): Now static.
3483 * src/xheader.c (xhdr_tab, format_uintmax): Now static.
3484
3485 * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
3486 atime_decoder, gid_coder, gid_decoder, gname_coder, gname_decoder,
3487 linkpath_coder, linkpath_decoder, mtime_coder, mtime_decoder,
3488 ctime_coder, ctime_decoder, path_coder, path_decoder, size_coder,
3489 size_decoder, uid_coder, uid_decoder, uname_coder, uname_decoder):
3490 Remove forward decls; no longer needed.
3491 (xhdr_tab): Move to end, so that the forward decls aren't needed.
3492 Add a forward declaration.
3493
3494 Use 'bool' in new code, when appropriate.
3495 * src/xheader.c (decode_record): Return bool, not int.
3496 * src/common.h (read_header): Since it accepts bool, change
3497 all callers to use false and true rather than 0 and 1.
3498
3499 * src/xheader.c (decode_record): Fix misspelling in diagnostic
3500 "extended headed" -> "extended header".
3501
3502 GNU coding style fixes.
3503 * src/xheader.c (decode_record, xheader_decode):
3504 Do not use decls like "char *p, *q;".
3505
3506 Minor style fixes.
3507 (xheader_store): Avoid parentheses around object operand of sizeof.
3508
3509 2003-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3510
3511 * src/create.c (start_header): Store long file names
3512 in "path" keyword of an extended header if in POSIX
3513 mode.
3514 (finish_header): print header before calling write_extended().
3515 * src/list.c (list_archive): Always decode the header. This
3516 is necessary so the extended header is processed and the correct
3517 filename is printed no matter what the state of verbose_option.
3518 * src/xheader.c (xhdr_tab): Reserved GNU keywords (commented out
3519 for the time being).
3520
3521 2003-09-01 Paul Eggert <eggert@twinsun.com>
3522
3523 Update from gnulib, and correct fnmatch to fnmatch-gnu.
3524 * bootstrap (gnulib_modules): Change fnmatch to fnmatch-gnu.
3525 Sort.
3526 * configure.ac (gl_USE_SYSTEM_EXTENSIONS): Use this instead
3527 of AC_GNU_SOURCE.
3528 * lib/.cvsignore: Add alloca.h, stdbool.h. Sort. Append newline.
3529 * lib/Makefile.am (lib_OBJECTS): New macro, for convenience when
3530 copying rules from gnulib module descriptions.
3531 (BUILT_SOURCES, EXTRA_DIST, all-local, alloca.h):
3532 Update from gnulib modules alloca, fnmatch, getline, stdbool.
3533 * m4/.cvsignore: Add utimes-null.m4. Sort.
3534
3535 2003-09-01 Sergey Poznyakoff
3536
3537 Added initial support for creating POSIX headers.
3538
3539 * src/common.h (MAXOCTAL11,MAXOCTAL7): New defines
3540 (string_to_chars): New functions
3541 (struct xheader): Changed structure
3542 (gid_to_gname,gname_to_gid,uid_to_uname,uname_to_uid): Changed
3543 prototypes.
3544 * src/create.c (string_to_chars): New function.
3545 (write_extended): New function
3546 (start_header): Create extended POSIX headers if necessary.
3547 (finish_header): Likewise.
3548 * src/list.c (print_header): Take user/group from
3549 current_stat_info.
3550 * src/names.c (gid_to_gname,gname_to_gid)
3551 (uid_to_uname,uname_to_uid): Changed prototypes.
3552 * src/tar.c: New option --format.
3553 * src/tar.h (OLDGNU_COMPATIBILITY): Removed
3554 (struct extra_header): Removed unused structure.
3555 (union block.extra_header): Removed unused member.
3556 * src/xheader.c: Implemented coder functions.
3557 * bootstrap: Added obstack.
3558 * lib/.cvsignore: Likewise.
3559 * configure.ac: Added 'gl_OBSTACK'
3560 * m4/Makefile.am: Added new files.
3561 * m4/.cvsignore: Likewise.
3562 * TODO: Minor formatting change
3563
3564 2003-08-31 Sergey Poznyakoff
3565
3566 Added initial support for POSIX extended and STAR headers
3567 (only for listing/extracting).
3568
3569 * src/xheader.c: New file.
3570 * src/Makefile.am: Added xheader.c
3571 * src/tar.h (struct star_header): New datatype
3572 (XHDTYPE,XGLTYPE): New defines
3573 (enum archive_format:STAR_FORMAT): New member
3574 (struct tar_stat_info): New datatype.
3575 (union block.star_header): New member.
3576 * src/common.h (orig_file_name,current_file_name)
3577 (current_trailing_slash,current_link_name): Removed variables.
3578 (current_stat_info): New variable
3579 (current_stat): Removed
3580 (extended_header): New variable
3581 (decode_header): Changed prototype.
3582 * src/list.c (decode_header): Added initial support for POSIX extended
3583 and STAR headers.
3584 (skip_member): Check oldgnu_header only if current_format is set
3585 to OLDGNU_FORMAT.
3586 * src/buffer.c: Use current_stat_info
3587 * src/compare.c: Likewise.
3588 * src/create.c: Likewise.
3589 * src/delete.c: Likewise.
3590 * src/incremen.c: Likewise.
3591 * src/mangle.c: Likewise.
3592 * src/update.c: Likewise.
3593 * src/extract.c: Likewise.
3594 (make_directories): Improved check for the existence of the directory
3595 * src/tar.c (destroy_stat): New function.
3596
3597 2003-08-29 Paul Eggert <eggert@twinsun.com>
3598
3599 * NEWS, bootstrap: Drop en_GB locale; it was more trouble than it
3600 was worth (e.g., different users in en_GB disagree about -ize
3601 versus -ise).
3602 * po/en_GB.po: Remove.
3603
3604 2003-07-28 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3605
3606 * TODO: Updated
3607 * NEWS: Updated
3608 * src/tar.c: Removed support for the obsolete command line
3609 options.
3610 * doc/tar.texi: Removed references to the obsolete command
3611 line options.
3612
3613 2003-07-27 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3614
3615 * TODO: Updated
3616 * NEWS: Updated
3617 * doc/tar.texi: Updated
3618 * src/common.h (check_links_option): New variable
3619 (orig_file_name): New variable
3620 (check_links): New proto.
3621 * src/create.c (struct link.nlink): New member
3622 (link_table): Static for the module.
3623 (dump_file): Update `link' member when adding new links
3624 to the link_table.
3625 (check_links): New function.
3626 * src/list.c (print_header): Use orig_file_name.
3627 * src/tar.c: New option --check-links. Changed semantics of
3628 -o to comply to UNIX98 when extracting and to its previous
3629 semantics otherwise.
3630 (main): Call check_links if --check-links. was given.
3631
3632 2003-07-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3633
3634 * src/list.c (print_header): Revised
3635 * NEWS: Started the entry for 1.13.26
3636 * doc/Makefile.am (tar.dvi): Fixed TEXINPUTS value.
3637
3638 2003-07-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
3639
3640 * .cvsignore: Added to the repository.
3641 * doc/.cvsignore: Likewise.
3642 * lib/.cvsignore: Likewise.
3643 * m4/.cvsignore: Likewise.
3644 * po/.cvsignore: Likewise.
3645 * scripts/.cvsignore: Likewise.
3646 * src/.cvsignore: Likewise.
3647 * tests/.cvsignore: Likewise.
3648
3649 * lib/Makefile.am: Added exitfail.[hc]
3650 * src/misc.c (chdir_do): Fixed call to restore_cwd
3651 * src/buffer.c (flush_read): Fixed behavior on short
3652 reads right after opening the new archive (multiv01.sh test).
3653 (new_volume): Special handling for "-".
3654 * src/list.c (print_header): Print trailing slash if
3655 current_trailing_slash was set (extrac03.sh,extrac04.sh tests).
3656 * tests/multiv01.sh: Minor changes.
3657 * m4/Makefile.am: Added missing files.
3658
3659 2003-07-05 Paul Eggert <eggert@twinsun.com>
3660
3661 Finish the checkin begin yesterday.
3662
3663 * NEWS: Document the user-visible changes installed in the last
3664 two days.
3665
3666 * TODO: New file (actually, resurrected; but with new contents).
3667
3668 * src/list.c (read_and): Give full type for procedure arg.
3669 (read_header): Strip trailing slashes, setting current_trailing_slash.
3670 (tartime): Avoid int overflow when printing year (!).
3671 (print_header): New arg specifying block ordinal. All uses changed.
3672 Print link as 'h' type. Give labels for long links and names.
3673
3674 * src/misc.c (contains_dot_dot): Moved to names.c
3675 (must_be_dot_or_slash): New function.
3676 (safer_rmdir): Use it.
3677 (remove_any_file): Now takes enum as option, not boolean.
3678 Check for (Linux) EISDIR as well as (POSIX) EPERM when attempting
3679 to unlink a directory.
3680 (deref_stat): Accept bool, not int.
3681
3682 * src/names.c (namelist_match): Allow partial matches only if
3683 recursive.
3684 (hash_string_hasher): Renamed from hash_avoided_name.
3685 (hash_string_compare): Renamed from compare_avoided_anames.
3686 (hash_string_insert, hash_string_lookup): New functions.
3687 (add_avoided_name, is_avoided_name): Use them.
3688 (safer_name_suffix): New function.
3689 (contains_dot_dot): Moved here from misc.c. Now returns bool, not int.
3690
3691 * src/rmt.c: Don't include print-copyr.h.
3692 (prepare_input_buffer): New arg FD.
3693 Do not read more than INT_MAX bytes at once,
3694 since it breaks on some brain damaged Tru64 hosts.
3695 Divide size by two
3696 when retrying instead of subtracting 1024; for speed.
3697 (main): Use gettext to translate (C), not print_copyright.
3698
3699 * src/system.h: Include <alloca.h> and <stdbool.h> unconditionally,
3700 now that gnulib handles this.
3701 Include <stddef.h> and <limits.h> unconditionally, now that we assume
3702 C89 or better.
3703 Assume that offsetof is defined in stddef.h.
3704 Do not include <sys/param.h>.
3705 (realloc, lseek): Do not declare.
3706 (HAVE_DECL_VALLOC): Renamed from HAVE_VALLOC.
3707 (CHAR_BIT, CHAR_MAX, UCHAR_MAX, LONG_MAX): Remove
3708 declarations, since we now assume C89 or better.
3709 (PARAMS): Remove, as we now assume C89. All uses changed.
3710 (bindtextdomain, textdomain): Include <gettext.h> to define.
3711 Include <unlocked-io.h>.
3712 (valloc): Define if not defined, and if valloc is not declared.
3713 (xstrdup): Remove decl.
3714
3715 * src/tar.c: Do not include <print-copyr.h>.
3716 Include <getdate.h>.
3717 (get_date): Remove decl.
3718 (ATIME_PRESERVE_OPTION, CHECKPOINT_OPTION, FORCE_LOCAL_OPTION,
3719 IGNORE_FAILED_READ_OPTION, INDEX_FILE_OPTION, NO_OVERWRITE_DIR_OPTION,
3720 NUMERIC_OWNER_OPTION, RECURSIVE_UNLINK_OPTION, REMOVE_FILES_OPTION,
3721 SHOW_OMITTED_DIRS_OPTION, TOTALS_OPTION): New constants.
3722 (long_options, decode_options): Use them.
3723 (OVERWRITE_DIR_OPTION): Remove.
3724 (long_options): New options --index-file, --no-overwrite-dir.
3725 Remove --overwrite-dir option.
3726 (usage): Use PACKAGE_BUGREPORT.
3727 (decode_options): Terminate new argv properly.
3728 Use PACKAGE_NAME, PACKAGE_VERSION.
3729 If verbose, report how we grokked any textual date option.
3730 (main): Add support for index-file.
3731
3732 * tests/Makefile.am: Convert to UTF-8.
3733 (AUTOMAKE_OPTIONS): Remove.
3734 (TESTS): Add delete04.sh, multiv01.sh, options.sh.
3735 (INCLUDES): Remove ../intl.
3736 (LDADD): Don't link libtar.a twice.
3737
3738 * tests/genfile.c: Convert to UTF-8.
3739 Don't include <print-copyr.h>.
3740 (DEFAULT_PATTERN): Renamed from DEFAULT.
3741 (ZEROS_PATTERN): Renamed from ZEROS.
3742 (main): Use gettext to translate (C), not print_copyright.
3743
3744 2003-07-04 Paul Eggert <eggert@twinsun.com>
3745
3746 Revamp to meet current standards of autoconf, automake,
3747 gettext, and gnulib, and incorporate new translations.
3748
3749 * config/config.guess, config/config.sub, config/depcomp,
3750 config/install-sh, config/mdate-sh, config/missing,
3751 config/mkinstalldirs, config/texinfo.texi:
3752 Moved here from parent directory, or from doc.
3753 * config.hin: Renamed from config.h.in.
3754 * config/config.rpath: New file.
3755
3756 * intl: Remove this subdirectory.
3757
3758 * lib/fnmatch_.h: Renamed from lib/fnmatch.hin.
3759
3760 * lib/getstr.c, lib/getstr.h, lib/msleep.c, lib/print-copyr.c,
3761 lib/print-copyr.h, lib/readutmp.c, lib/rename.c, lib/stpcpy.c,
3762 lib/strstr.c, lib/strtoimax.c, lib/strtoll.c, lib/strtoull.c,
3763 lib/strtoumax.c, lib/unicodeio.c, lib/unicodeio.h,
3764 lib/xstrtoimax.c, m4/c-bs-a.m4, m4/ccstdc.m4, m4/check-decl.m4,
3765 m4/decl.m4, m4/jm-mktime.m4, m4/prereq.m4, m4/xstrtoimax.m4,
3766 stamp-h.in: Remove.
3767
3768 * lib/alloca_.h, lib/fnmatch_loop.c, lib/gettext.h, lib/pathmax.h,
3769 lib/safe-write.c, lib/safe-write.h, lib/stdbool_.h, lib/strcase.h,
3770 lib/stripslash.c, lib/unlocked-io.h, lib/xgetcwd.h, m4/alloca.m4,
3771 m4/backupfile.m4, m4/bison.m4, m4/chown.m4, m4/dirname.m4,
3772 m4/dos.m4, m4/exclude.m4, m4/fileblocks.m4, m4/ftruncate.m4,
3773 m4/getdate.m4, m4/getopt.m4, m4/hash.m4, m4/human.m4,
3774 m4/intdiv0.m4, m4/intmax_t.m4, m4/inttypes-pri.m4,
3775 m4/inttypes_h.m4, m4/isc-posix.m4, m4/lchown.m4, m4/lib-ld.m4,
3776 m4/lib-link.m4, m4/lib-prefix.m4, m4/memset.m4, m4/mktime.m4,
3777 m4/modechange.m4, m4/nls.m4, m4/onceonly.m4, m4/pathmax.m4,
3778 m4/po.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4,
3779 m4/safe-read.m4, m4/safe-write.m4, m4/save-cwd.m4, m4/savedir.m4,
3780 m4/ssize_t.m4, m4/stdbool.m4, m4/stdint_h.m4, m4/strcase.m4,
3781 m4/strtoimax.m4, m4/strtol.m4, m4/strtoll.m4, m4/strtoul.m4,
3782 m4/strtoull.m4, m4/strtoumax.m4, m4/tm_gmtoff.m4, m4/uintmax_t.m4,
3783 m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4, m4/xstrtol.m4,
3784 po/LINGUAS, po/Makevars, po/Rules-quot, po/boldquot.sed,
3785 po/en@boldquot.header, po/en@quot.header, po/en_GB.po,
3786 po/insert-header.sin, po/remove-potcdate.sin, po/stamp-po: New files.
3787
3788 * ABOUT-NLS, INSTALL, lib/addext.c, lib/alloca.c, lib/argmatch.c,
3789 lib/argmatch.h, lib/backupfile.c, lib/backupfile.h, lib/dirname.c,
3790 lib/dirname.h, lib/error.c, lib/exclude.c, lib/exclude.h,
3791 lib/fnmatch.h, lib/full-write.c, lib/full-write.h, lib/getdate.h,
3792 lib/getdate.y, lib/getline.c, lib/getline.h, lib/getopt.c,
3793 lib/getopt.h, lib/getopt1.c, lib/hash.c, lib/hash.h, lib/human.c,
3794 lib/human.h, lib/lchown.c, lib/malloc.c, lib/mktime.c,
3795 lib/modechange.c, lib/modechange.h, lib/quote.c, lib/quote.h,
3796 lib/quotearg.c, lib/quotearg.h, lib/realloc.c, lib/safe-read.c,
3797 lib/safe-read.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
3798 lib/savedir.h, lib/strcasecmp.c, lib/utime.c, lib/xalloc.h,
3799 lib/xgetcwd.c, lib/xmalloc.c, lib/xstrdup.c, lib/xstrtol.c,
3800 lib/xstrtol.h, lib/xstrtoumax.c, m4/codeset.m4, m4/d-ino.m4,
3801 m4/error.m4, m4/fnmatch.m4, m4/getcwd.m4, m4/getline.m4, m4/gettext.m4,
3802 m4/glibc21.m4, m4/iconv.m4, m4/inttypes.m4, m4/lcmessage.m4,
3803 m4/longlong.m4, m4/malloc.m4, m4/mbrtowc.m4, m4/mbstate_t.m4,
3804 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4, m4/ulonglong.m4,
3805 m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4,
3806 po/Makefile.in.in:
3807 Upgrade to latest version from external source. The file "bootstrap"
3808 now grabs these automatically, so we needn't keep track of them
3809 in this change long any longer.
3810
3811 * Makefile.am (AUTOMAKE_OPTIONS): Remove. Now done by configure.ac.
3812 (SUBDIRS): Remove intl.
3813 * PORTS: Update for star, Macintosh.
3814 * README, README-alpha: Suggest Autoconf 2.57, Automake 1.7.5,
3815 Bison 1.875, gettext 0.12.1.
3816 * THANKS: Add Bernhard Rosenkraenzer, Solar Designer.
3817 * configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Convert to modern form.
3818 (AC_CONFIG_AUX_DIR): New.
3819 (AC_CONFIG_HEADERS): Rename config.h.in to config.hin, to be more
3820 like coreutils.
3821 (AC_PREREQ): Bump from 2.52 to 2.57.
3822 (AC_GNU_SOURCE): New.
3823 (AC_PROG_GCC_TRADITIONAL, AM_C_PROTOTYPES, AC_C_CONST): Remove;
3824 we no longer support K&R C.
3825 (YACC): Remove.
3826 (AC_CHECK_HEADERS): Remove limits.h, poll.h, stdbool.h, stropts.h,
3827 sys/ioccom.h, sys/param.h, sys/time.h, sys/timeb.h, wchar.h, wctype.h.
3828 (AC_MBSTATE_T): Remove.
3829 (HAVE_UTIME_H, HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
3830 HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
3831 HAVE_DECL_STRTOULL, HAVE_MKNOD): Remove our special code.
3832 (AM_STDBOOL_H): Add.
3833 (AC_HEADER_TIME, AC_STRUCT_TIMEZONE,
3834 jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Remove.
3835 (AC_CHECK_TYPE): Remove ssize_t.
3836 (gt_TYPE_SSIZE_T): Add.
3837 (jm_AC_PREREQ_XSTRTOUMAX, jm_PREREQ_ADDEXT, jm_PREREQ_ERROR,
3838 jm_PREREQ_HUMAN, jm_PREREQ_QUOTEARG, jm_PREREQ_XGETCWD,
3839 AC_FUNC_ALLOCA, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STRERROR_R,
3840 AC_FUNC_FNMATCH, AC_FUNC_VPRINTF, AM_FUNC_GETLINE, jm_FUNC_MALLOC,
3841 jm_FUNC_MKTIME, jm_FUNC_REALLOC):
3842 Remove. Switch to gnulib macros like gl_BACKUPFILE instead.
3843 (tar_LDADD): Rename to LIB_CLOCK_GETTIME. All uses changed.
3844 (rmt_LDADD): Rename to LIB_SETSOCKOPT. All uses changed.
3845 (AC_CHECK_FUNCS): Remove fchdir, ftime, getcwd, isascii, nap,
3846 napms, poll, select, strstr, usleep.
3847 (AC_REPLACE_FUNCS): Remove ftruncate, lchown, memset, rename,
3848 rmdir, strcasecmp, strncasecmp, strtol, strtoul.
3849 (AM_GNU_GETTEXT): Use external and need-ngettext options.
3850 (AM_GNU_GETTEXT_VERSION): New.
3851 (AC_OUTPUT): Remove intl/Makefile.
3852
3853 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3854 ($(srcdir)/tar.info, tar.dvi): Remove obsolete warnings.
3855 * doc/fdl.texi: Update to current GNU version.
3856 * doc/gettext.texi: Update to current coreutils version,
3857 plus a copyright notice.
3858 * doc/tar.texi: Switch to new method for doing copyright notices.
3859 Use @acronym instead of @sc where appropriate.
3860 Remove empty examples. Give a few more examples.
3861
3862 * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3863 (EXTRA_DIST, libtar_a_SOURCES): Switch to gnulib, so that they
3864 are built up in pieces with +=.
3865 (noinst_HEADERS, INCLUDES): Remove.
3866 (BUILT_SOURCES, MAINTAINERCLEANFILES, MOSTLYCLEANFILES): New.
3867 (libtar_a_LIBADD): Use $ rather than @.
3868 (all-local, alloca.h, fnmatch.h, stdbool.h): New rules, from gnulib.
3869
3870 * m4/Makefile.am (EXTRA_DIST): Add alloca.m4, backupfile.m4,
3871 bison.m4, chown.m4, dirname.m4, dos.m4, exclude.m4, fileblocks.m4,
3872 ftruncate.m4, getdate.m4, getopt.m4, hash.m4, human.m4,
3873 intdiv0.m4, intmax_t.m4, inttypes_h.m4, inttypes-pri.m4,
3874 isc-posix.m4, lcown.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
3875 memset.m4, mktime.m4, modechange.m4, nls.m4, onceonly.m4,
3876 pathmax.m4, po.m4, quotearg.m4, quote.m4, rmdir.m4, safe-read.m4,
3877 safe-write.m4, save-cwd.m4, savedir.m4, ssize_t.m4, stdbool.m4,
3878 stdint_h.m4, strcase.m4, strtoimax.m4, strtoll.m4, strtol.m4,
3879 strtoull.m4, strtoul.m4, strtoumax.m4, tm_gmtoff.m4, uintmax_t.m4,
3880 unlocked-io.m4, xalloc.m4, xgetcwd.m4, xstrtol.m4.
3881 Remove c-bs-a.m4, ccstdc.m4, check-decl.m4, decl.m4, jm-mktime.m4,
3882 prereq.m4, xstrtoimax.m4.
3883
3884 * po/POTFILES.in: Remove tests/genfile.c; it doesn't need to
3885 be translated, since it's not a user-visible tool.
3886
3887 * scripts/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3888
3889 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3890 (INCLUDES): Remove ../intl. Put top-srcdir before ., for
3891 consistency with coreutils.
3892 (LDADD): Link LIBINTL after libtar.a, since
3893 it's now external and should stand by itself.
3894
3895 * src/buffer.c (print_total_written): Adjust to new human.h
3896 interface.
3897 (child_open_for_compress): Do not increase size to BLOCKSIZE.
3898 (open_archive): Open index file name.
3899 Strip trailing slahes from file names.
3900 (flush_write): Set size to 0 if not saving names.
3901 (flush_write, flush_read): Use safer_name_suffix rather than
3902 inline code.
3903
3904 * src/common.h: Include <quote.h>.
3905 (absolute_names_option, atime_preserve_option, backup_option,
3906 block_number_option, checkpoint_option, dereference_option,
3907 force_local_option, ignore_failed_read_option, ignore_zeros_option,
3908 incremental_option, interactive_option, multi_volume_option,
3909 numeric_owner_option, one_file_system_option, recursive_unlink_option,
3910 read_full_records_option, remove_files_option, same_order_option,
3911 show_omitted_dirs_option, sparse_option, starting_file_option,
3912 to_stdout_option, totals_option, touch_option, verify_option,
3913 dev_null_output, now_verifying, we_are_root): Now bool, not int.
3914 (current_trailing_slash, index_file_name, recent_long_name_blocks,
3915 recent_long_link_blocks): New vars.
3916 (NO_OVERWRITE_DIR_OLD_FILES): New constant.
3917 (OVERWRITE_OLD_DIRS): Remove.
3918 (enum remove_option): New enum.
3919 (remove_any_file): Use it as option arg, not int.
3920 (is_avoided_name, contains_dot_dot): Return bool, not int.
3921 (safer_name_suffix): New decl.
3922
3923 * src/compare.c (now_verifying): Now bool, not int.
3924 (fill_in_sparse_array): Move to extract.c. Now returns bool;
3925 all callers changed to test for failure.
3926 (diff_sparse_files): Take size from current_stat, not from param.
3927 (diff_archive): Do not count trailing slashes in archives.
3928 (verify_volume): Test for header failure after loop, not before.
3929
3930 * src/create.c (relativize): Remove; replaced by safer_name_suffix.
3931 All callers changed.
3932 (start_header): Clear devmajor and devminor fields, too.
3933 (finish_header): New arg block_ordinal.
3934 (init_sparsearray): Now extern. Set sp_array_size to
3935 SPARSES_IN_OLDGNU_HEADER if it is zero.
3936 (dump_file): Keep link table as a hash.
3937 Do not count "file changed as we read it" as a failure.
3938
3939 * src/delete.c (recent_long_name_blocks, recent_long_link_blocks):
3940 Move extern decl to common.h.
3941
3942 * src/extract.c (we_are_root): Now bool, not int.
3943 (check_time): Warn about implausibly old time stamps.
3944 (set_stat): Use utimbuf, not stat_info.
3945 (prepare_to_extract): New arg DIRECTORY.
3946 (fill_in_sparse_array): Moved here from compare.c.
3947 (extract_sparse_file): Now returns off_t, giving size left.
3948 Truncate file at end.
3949 (extract_archive): Use safer_name_suffix rather than rolling our own.
3950 Use fill_in_sparse_array rather than rolling our own.
3951 Strip trailing slashes more effectively.
3952 Check for unsafe names.
3953
3954 * src/incremen.c (struct directory): nfs and found are now of type
3955 bool, not int.
3956 (gnu_restore): Now takes directory name as argument, not offset
3957 of directory name in a global. All uses changed.
3958 (CURRENT_FILE_NAME): Remove.
3959
3960 New tests.
3961 * tests/delete04.sh, tests/multiv01.sh, tests/options.sh: New
3962 files.
3963
3964 2002-09-30 Paul Eggert <eggert@twinsun.com>
3965
3966 * src/rmt.c (prepare_input_buffer): Renamed form
3967 prepare_record_buffer. All uses changed. Do not assume that
3968 size_t is the same width as int.
3969
3970 2002-03-29 Paul Eggert <eggert@twinsun.com>
3971
3972 * src/incremen.c (get_directory_contents):
3973 If ignore_failed_read_option, only warn about
3974 get_directory_contents failures. Fix suggested by
3975 Mark Costlow.
3976
3977 2002-01-31 Mark W. Eichin <eichin@thok.org>
3978
3979 * src/buffer.c (child_open_for_compress): Don't try to read
3980 past the end of the buffer.
3981
3982 2001-10-11 Jim Meyering <meyering@lucent.com>
3983
3984 * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
3985 and quote_n (1, ... to avoid clobbering a buffer.
3986
3987 2001-09-26 Paul Eggert <eggert@twinsun.com>
3988
3989 * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.25.
3990
3991 * src/buffer.c (flush_read): Don't diagnose partial blocks before
3992 end of file; just ignore them silently.
3993
3994 * src/list.c (read_header): Don't keep around extended name
3995 and link info indefinitely; keep it only for the next file.
3996 This fixes a bug introduced in 1.13.24, and removes the need
3997 for some static variables. Set recent_long_name and
3998 recent_long_link to zero if there were no long links; this
3999 avoids a violation of ANSI C rules for pointers in delete.c.
4000 * THANKS: Add Christian Laubscher.
4001
4002 2001-09-26 Jim Meyering <meyering@lucent.com>
4003
4004 * doc/tar.texi (Remote Tape Server): is know -> is known
4005
4006 2001-09-25 Paul Eggert <eggert@twinsun.com>
4007
4008 * lib/unicodeio.c (EILSEQ): Include <iconv.h> first, since
4009 <iconv.h> may define EILSEQ (e.g. libiconv). Define a
4010 replacement EILSEQ to be ENOENT, not EINVAL, since callers may
4011 want to distinguish EINVAL and EILSEQ.
4012
4013 2001-09-24 Christophe Kalt <Christophe.Kalt@kbcfp.com>
4014
4015 * src/extract.c (maybe_recoverable):
4016 Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES.
4017
4018 2001-09-22 Paul Eggert <eggert@twinsun.com>
4019
4020 * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.24.
4021
4022 * ABOUT-NLS, intl/*: Update to gettext-0.10.40, replacing LGPL
4023 with GPL.
4024
4025 * INSTALL, mkinstalldirs: Update to autoconf 2.52 version.
4026 * PORTS: Add copyright notice, 'star' reference.
4027 * README-alpha: Add copyright notice, autoconf 2.52 patch.
4028 * THANKS: Add Christophe Kalt.
4029 * config.sub: Upgrade to 2001-09-14 version.
4030
4031 * configure.ac (ALL_LINGUAS): Add ko.
4032 * po/ko.po: Resurrected file.
4033
4034 * doc/convtexi.pl: Add coding advice for Emacs.
4035
4036 * doc/getdate.texi: Add copyright notice.
4037
4038 * doc/mdate-sh: Upgrade to automake 1.5 version.
4039
4040 * doc/tar.texi (extracting files): Mention --to-stdout.
4041 (Option Summary, Dealing with Old Files): New option --overwrite-dir.
4042 (Overwrite Old Files): Likewise.
4043
4044 * lib/Makefile.am (noinst_HEADERS):
4045 Remove copysym.h. Add print-copyr.h, unicodeio.h.
4046 (libtar_a_SOURCES): Remove copysym.c, Add print-copyr.c, unicodeio.c.
4047
4048 * lib/copysym.c, lib/copysym.h: Remove.
4049 * lib/print-copyr.c, lib/print-copyr.h, lib/unicodeio.c,
4050 lib/unicodeio.h: New files.
4051
4052 * lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c,
4053 lib/mktime.c, lib/strtoll.c: Switch from LGPL to GPL.
4054
4055 * lib/quotearg.c (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
4056 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
4057
4058 * m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4.
4059 * m4/isc-posix.m4: Remove.
4060
4061 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit.
4062
4063 * po/POTFILES.in: Add copyright notice.
4064
4065 * src/Makefile.am (LDADD): Like libtar.a before @INTLLIBS@ as
4066 well as after.
4067 * tests/Makefile.am (LDADD): Likewise.
4068
4069 * src/buffer.c (write_archive_buffer, close_archive):
4070 If an archive is a socket, treat it like a FIFO.
4071 (records_read, records_written): New vars.
4072 (write_archive_to_stdout): Now bool, not int.
4073 (open_archive, flush_write, flush_read): Keep records_read and
4074 records_written up to date.
4075
4076 * src/common.h (enum old_files): New value OVERWRITE_OLD_DIRS.
4077 (write_archive_to_stdout): Now bool, not int.
4078 (enum read_header): New value HEADER_SUCCESS_EXTENDED.
4079 (read_header): Now takes bool arg. Existing callers modified
4080 to pass 0, unless otherwise specified.
4081
4082 * src/delete.c (records_read): Remove; now a global.
4083 (acting_as_filter): Now bool, not int.
4084 (recent_long_name, recent_long_link, recent_long_name_blocks,
4085 recent_long_link_blocks, records_read, records_written): New decls.
4086 (records_skipped): New var.
4087 (move_archive): Don't divide by zero if arg is 0.
4088 Use the above vars to compute how far to move.
4089 (write_recent_blocks): New function.
4090 (delete_archive_member): Pass 1 to read_header, so that it doesn't
4091 read more than 1 block. Handle resulting HEADER_SUCCESS_EXTENDED code.
4092 Keep track of how many records have been skipped.
4093 Let the buffer code count records.
4094 When copying a header, copy any extended headers that came before it.
4095
4096 * src/extract.c (extract_archive): When marking a directory to be
4097 updated after symlinks, stat all directories after it in the
4098 delayed-set-stat list too, since they will be checked after
4099 symlinks. Add support for --overwrite-dir.
4100
4101 * src/list.c (recent_long_name, recent_long_link,
4102 recent_long_name_blocks, recent_long_link_blocks): New vars.
4103 (read_and): Pass 0 to read_header.
4104 (read_header): New arg RAW_EXTENDED_HEADERS. Store away extended
4105 headers into new vars. Null-terminate incoming symbolic links.
4106
4107 * src/rmt.c: Include print-copyr.h, not copysym.h.
4108 (main): Use print_copyright, not copyright_symbol.
4109 * src/tar.c (decode_options): Likewise.
4110 (OVERWRITE_DIR_OPTION): New constant.
4111 (long_options, usage, decode_options): Add --overwrite-dir.
4112
4113 * src/tar.h: Put copyright notice into documentation.
4114
4115 * tests/Makefile.am (TESTS): Add delete03.sh.
4116 * tests/delete03.sh: New file.
4117
4118 * tests/genfile.c: Include print-copyr.h, not copysym.h.
4119 (main): Use print_copyright, not copyright_symbol.
4120 Include <argmatch.h>.
4121 (pattern_strings): Remove.
4122 (pattern_args, pattern_types): New constants.
4123 (main): Use XARGMATCH, not argmatch.
4124
4125 2001-09-20 Jim Meyering <meyering@lucent.com>
4126
4127 * lib/xstrtol.c (strtoimax): Guard declaration with
4128 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
4129 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
4130 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
4131 (strtoumax): Likewise, for completeness (it wasn't necessary).
4132 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
4133 Check for declaration of strtoimax.
4134 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
4135 Check for declaration of strtoumax.
4136
4137 2001-09-16 Paul Eggert <eggert@twinsun.com>
4138
4139 * fnmatch.m4 (jm_FUNC_FNMATCH): Fix typo in previous patch: yes -> no.
4140
4141 2001-09-14 Paul Eggert <eggert@twinsun.com>
4142
4143 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.23.
4144
4145 * README-alpha: Describe automake patch.
4146
4147 * configure.ac (LIBOBJS):
4148 Remove automake 1.4 workaround, as we're using 1.5 now.
4149 (USE_INCLUDED_LIBINTL): New AC_DEFINE.
4150
4151 * lib/copysym.c: Include stddef.h, for size_t.
4152 Include langinfo.h if needed.
4153 Use locale_charset only if USE_INCLUDED_LIBINTL;
4154 if not, use nl_langinfo (CODESET) if available.
4155
4156 2001-09-13 Paul Eggert <eggert@twinsun.com>
4157
4158 * config.guess, config.sub: Sync with canonical versions.
4159
4160 * configure.ac (jm_PREREQ_XGETCWD): Add.
4161
4162 * lib/Makefile.am (noinst_HEADERS): Add copysym.h.
4163 (libtar_a_SOURCES): Add copysym.c.
4164 * copysym.c, copysym.h: New files.
4165
4166 * lib/error.c: Sync with fileutils version.
4167
4168 * m4/Makefile.am (EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4.
4169 * m4/getcwd.m4: New file.
4170 * m4/uintmax_t.m4: Remove.
4171
4172 * m4/gettext.m4 (AM_WITH_NLS):
4173 Fix bug with calculating version of Bison 1.29.
4174 Reported by Karl Berry.
4175
4176 * src/Makefile.am (datadir): Remove.
4177
4178 * src/rmt.c: Include copysym.h.
4179 (main): Use copyright_symbol to translate copyright notice,
4180 instead of gettext.
4181 * src/tar.c: Likewise.
4182 * tests/genfile.c: Likewise.
4183
4184 * src/system.h (MB_LEN_MAX): New symbol.
4185
4186 2001-09-11 Paul Eggert <eggert@twinsun.com>
4187
4188 * src/extract.c (struct delayed_set_stat): New member
4189 'after_symlinks'.
4190 (delay_set_stat): Initialize it to 0.
4191 (set_mode): New arg current_stat_info. Use it (if nonnull) to avoid
4192 taking an extra stat ourselves. All callers changed.
4193 (set_stat): Likewise.
4194 (apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
4195 If false, stop when encountering a struct whose 'after_symlinks'
4196 member is true. Otherwise, go through all structures but check
4197 them more carefully. All callers changed.
4198 (extract_archive): When extracting a deferred symlink, if its parent
4199 directory's status needs fixing, then mark the directory as needing
4200 to be fixed after symlinks.
4201 (extract_finish): Fix status of ordinary directories, then apply
4202 delayed symlinks, then fix the status of directories that are
4203 ancestors of delayed symlinks.
4204
4205 * src/rtapelib.c (rexec):
4206 Remove declaration; it ran afoul of prototypes on Crays.
4207 Reported by Wendy Palm of Cray.
4208
4209 2001-09-06 Paul Eggert <eggert@twinsun.com>
4210
4211 * lib/strtoimax.c (HAVE_LONG_LONG):
4212 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
4213 (strtoimax): Use sizeof (long), not
4214 sizeof strtol (ptr, endptr, base),
4215 to work around bug in IBM C compiler.
4216
4217 2001-09-04 Paul Eggert <eggert@twinsun.com>
4218
4219 * lib/xgetcwd.c: Include "xalloc.h".
4220 (xgetcwd): Do not return NULL when memory is exhausted; instead,
4221 report an error and exit.
4222
4223 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
4224 (jm_PREREQ): Use it.
4225
4226 2001-09-03 Paul Eggert <eggert@twinsun.com>
4227
4228 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
4229 (jm_PREREQ_XGETCWD): New macro.
4230
4231 * lib/exclude.c (fnmatch_no_wildcards):
4232 Fix typo that caused us to do case-folding
4233 search even when that was not desired. This occurred only in the
4234 no-wildcard case.
4235
4236 * lib/xgetcwd.c: Include pathmax.h if not HAVE_GETCWD.
4237 Do not include xalloc.h.
4238 (INITIAL_BUFFER_SIZE): New symbol.
4239 Do not use xmalloc / xrealloc, since the caller is responsible for
4240 handling errors. Preserve errno around `free' during failure.
4241 Do not overrun buffer when using getwd.
4242
4243 * lib/xgetcwd.c (xgetcwd):
4244 Use HAVE_GETCWD_NULL, not defined __GLIBC__ && __GLIBC__ >= 2,
4245 to decide whether to use getcwd (NULL, 0).
4246
4247 2001-09-02 Paul Eggert <eggert@twinsun.com>
4248
4249 * lib/xgetcwd.c: Fix typo in local var; from Jim Meyering.
4250
4251 2001-09-01 Jim Meyering <meyering@lucent.com>
4252
4253 * exclude.c: Use `""', not `<>' to #include non-system header files.
4254 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
4255 and strncasecmp as r-values. Unixware didn't have declarations.
4256
4257 2001-08-31 Jim Meyering <meyering@lucent.com>
4258
4259 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
4260 Use an initial, malloc'd, buffer of length 128 rather than
4261 a statically allocated one of length 1024.
4262
4263 2001-08-30 Paul Eggert <eggert@twinsun.com>
4264
4265 * lib/utime.c: Include full-write.h.
4266 * lib/xstrtol.c (strtoimax): New decl.
4267
4268 2001-08-29 Paul Eggert <eggert@twinsun.com>
4269
4270 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.22.
4271
4272 * src/create.c (dump_file): Relativize link names before dumping.
4273 This fixes a bug reported by Jose Pedro Oliveira.
4274
4275 * src/create.c (dump_file): Use offsetof when computing sizes for
4276 struct hack; this avoids wasted space in some cases.
4277 * src/incremen.c (note_directory, find_directory): Likewise.
4278 * src/names.c (name_gather, addname): Likewise.
4279
4280 * src/extract.c (extract_archive): Use strcpy, not memcpy,
4281 for consistency with other code that does similar things.
4282 * src/names.c (name_gather): Likewise.
4283
4284 * src/names.c (read_name_from_file, name_next, name_gather,
4285 add_hierarchy_to_namelist): Avoid quadratic behavior when
4286 reallocating buffers. Check for buffer size overflow.
4287 (addname): Avoid unnecessary clearing of memory.
4288
4289 2001-08-29 "Jan D." <Jan.Djarv@mbox200.swipnet.se>
4290
4291 * src/extract.c (delay_set_stat): Fix off-by-one error in file
4292 name size allocation that caused core dumps.
4293
4294 2001-08-28 Paul Eggert <eggert@twinsun.com>
4295
4296 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.21.
4297
4298 * configure.ac (GNU_SOURCE): Define to 1, not /**/.
4299 (major_t, minor_t, ssize_t): Use new-style AC_CHECK_TYPE.
4300 (daddr_t): Remove; no longer used.
4301 (jm_PREREQ_HUMAN): Add.
4302
4303 * acconfig.h: Remove; no longer needed.
4304
4305 * config.guess, config.sub:
4306 New files, from automake 1.5. Gettext 0.10.39 needs them.
4307 * depcomp, missing, mkinstalldirs: Upgrade to automake 1.5.
4308
4309 * Makefile.am (AUTOMAKE_OPTIONS): Add dist-bzip2.
4310 (SUBDIRS): Put intl before lib, as gettext requires.
4311
4312 * ABOUT-NLS: Upgrade to gettext 0.10.39.
4313 * intl: Upgrade entire directory to gettext 0.10.39.
4314 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4:
4315 New files, from gettext 0.10.39.
4316 * m4/gettext.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4,
4317 Upgrade to gettext 0.10.39,
4318 * po/Makefile.in.in: Likewise, except fix a typo in its copying
4319 permissions.
4320 * po/cat-id-tbl.c, po/stamp-cat-id:
4321 Remove; no longer used by gettext 0.10.39.
4322 * po/ChangeLog: New file.
4323
4324 * doc/Makefile.am (EXTRA_DIST): Add freemanuals.texi.
4325 $(srcdir)/tar.texi: Likewise.
4326 * doc/freemanuals.texi: New file.
4327 * doc/tar.texi (Free Software Needs Free Documentation): New appendix.
4328 `fileds' -> `fields'
4329 * doc/texinfo.tex: Upgrade to version 2001-07-25.07.
4330
4331 * lib/Makefile.am (EXTRA_DIST): Add strtoll.c, strtoimax.c.
4332 (noinst_HEADERS): Add quote.h.
4333 (libtar_a_SOURCES): Add quote.c, xstrtoimax.c.
4334
4335 * lib/exclude.c: Fix typo in '#include <stdint.h>' directive.
4336
4337 * lib/full-write.c, lib/savedir.c: Comment fix.
4338
4339 * lib/pathmax.h: Remove.
4340
4341 * lib/quote.c, lib/quote.h: New files.
4342
4343 * lib/xgetcwd.c: Don't include pathmax.h.
4344 Include stdlib.h and unistd.h if available.
4345 Include xalloc.h.
4346 (xmalloc, xstrdup, free): Remove decls.
4347 (xgetcwd): Don't assume sizes fit in unsigned.
4348 Check for overflow when computing sizes.
4349 Simplify reallocation code.
4350
4351 * lib/xmalloc.c: Quote failure tests.
4352
4353 * lib/strtoumax.c, lib/xstrtoimax.c: New files.
4354
4355 * lib/strtoimax.c: Renamed from strtouxmax.c. Make it more
4356 similar to strtol.c.
4357 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
4358 (verify): New macro.
4359 (strtoumax, uintmax_t, strtoull, strtol): Remove.
4360 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
4361 (strtoimax): Renamed from strtoumax. All uses of unsigned values
4362 changed to signed values. Check sizes at compile-time, not
4363 run-time. Prefer strtol to strtoll if both work.
4364 (main): Remove.
4365
4366 * lib/xstrtol.h (xstrtoimax): New decl.
4367
4368 * m4/Makefile.am (EXTRA_DIST):
4369 Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4,
4370 longlong.m4, xstrtoimax.m4.
4371
4372 * m4/inttypes.m4 (jm_AC_HEADER_INTTYPES_H):
4373 Remove; now done by autoconf.
4374 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with
4375 Use AC_CHECK_TYPE instead of merely looking for the header.
4376
4377 * m4/uintmax_t.m4: Use shorter comment.
4378
4379 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
4380 Quote first arg of AC_DEFUN.
4381 Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they
4382 is needed to parse the include file.
4383 Simplify logic behind the args to AC_REPLACE.
4384
4385 * src/Makefile.am (OMIT_DEPENDENCIES): Remove.
4386
4387 * src/ansi2knr.1, src/ansi2knr.c: Remove; wasn't being used.
4388
4389 * src/rmt.c (main):
4390 Use "Copyright %d" to simplify the translator's job in the future.
4391 Advise translator about circle-C.
4392 * src/tar.c: (decode_options): Likewise.
4393 * tests/genfile.c (main): Likewise.
4394
4395 2001-08-28 Jim Meyering <meyering@lucent.com>
4396
4397 * lib/argmatch.c: Include "quote.h".
4398 (argmatch_invalid): Quote the context.
4399
4400 * lib/dirname.c (dir_name): Fix typo on PC platforms.
4401
4402 * lib/backupfile.c, lib/basename.c, lib/dirname.c, lib/strtoul.c:
4403 Use single-quote for local .h files.
4404
4405 * lib/error.h (__attribute__): Don't depend on __STRICT_ANSI__.
4406
4407 * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Upgrade to recent
4408 glibc versions.
4409
4410 * lib/getdate.y (get_date): Initialize tm_isdst to -1 before
4411 invoking mktime the last time.
4412
4413 * lib/pathmax.h: Use #if rather than #ifdef for HAVE_UNISTD_H.
4414
4415 * lib/rename.c: Major rewrite by Volker Borchert to use system
4416 rename function, but to work around problems with trailing
4417 slashes.
4418
4419 * lib/strtoll.c: New file, from glibc.
4420 * lib/strtoul.c: Update from glibc.
4421
4422 * lib/strtouxmax.c: Renamed from lib/strtoumax.c.
4423 Add support for signed numbers, too.
4424 (strtoul, strtoull): Do not declare if STRTOUXMAX_UNSIGNED
4425 is not defined.
4426 (strtol, strtoll): Declare as needed, if STRTOUXMAX_UNSIGNED is
4427 not defined.
4428 (strtoumax, uintmax_t, strtoull, strtoul): New macros.
4429 (main): Use generic names in debugging output.
4430 * lib/strtoimax.c: Plus add the following changes of my own:
4431 (main): Use accurate names in debugging output.
4432
4433 * lib/xgetcwd.c (xgetcwd): Use getcwd if glibc 2 or later.
4434 Don't use PATH_MAX.
4435
4436 * m4/c-bs-a.m4, m4/check-decl.m4, m4/d-ino.m4, m4/error.m4,
4437 m4/getline.m4, m4/jm-mktime.m4, m4/malloc.m4, m4/mbrtowc.m4,
4438 m4/mbstate_t.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/utimbuf.m4,
4439 m4/utime.m4, m4/utimes.m4:
4440 Quote the first argument in each use of AC_DEFUN.
4441
4442 * m4/getline.m4: Don't use string.h.
4443
4444 * m4/inttypes.m4, m4/longlong.m4, m4/xstrtoimax.m4: New files.
4445
4446 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): @%:@ -> #.
4447
4448 2001-08-27 Paul Eggert <eggert@twinsun.com>
4449
4450 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.20.
4451
4452 The biggest change is the new --exclude semantics and options.
4453 The basic idea was suggested by Gerhard Poul; thanks!
4454
4455 * NEWS: Describe new --exclude semantics and options, and bug fixes.
4456 * README: ignfail.sh fails on some NFS hosts.
4457 * NEWS, README, lib/xstrtol.h: Add copyright notice.
4458
4459 * Makefile.am (ACLOCAL_AMFLAGS): Add -I m4.
4460 (M4DIR, ACINCLUDE_INPUTS, $(srcdir)/acinclude.m4):
4461 Remove; the automake bug has been fixed.
4462 * acinclude.m4: Remove.
4463
4464 * configure.ac: Renamed from configure.in.
4465 (AC_PREREQ): Bump from 2.13 to 2.52.
4466 (ALL_LINGUAS): Add id, tr. Remove ko, as po/ko.po (dated
4467 1997-05-30) has an encoding error.
4468 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf.
4469 (AC_FUNC_FNMATCH): Use AC_CONFIG_LINKS, not AC_LINK_FILES.
4470
4471 * doc/fdl.texi: Update to current GNU version.
4472
4473 * doc/tar.texi: Put leading '*' in direntry.
4474 Accommodate new gfdl sectioning.
4475 New option --recursion (the default) that is the inverse of
4476 --no-recursion.
4477
4478 New options --anchored, --ignore-case, --wildcards,
4479 --wildcards-match-slash, and their negations (e.g., --no-anchored).
4480 Along with --recursion and --no-recursion, these control how exclude
4481 patterns are interpreted. The default interpretation of exclude
4482 patterns is now --no-anchored --no-ignore-case --recursion
4483 --wildcards --wildcards-match-slash.
4484
4485 * lib/Makefile.am (OMIT_DEPENDENCIES): Remove.
4486
4487 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
4488 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
4489 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
4490 Include if available.
4491 (<xalloc.h>): Include
4492 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
4493 (verify): New macro. Use it to verify that EXCLUDE macros do not
4494 collide with FNM macros.
4495 (struct patopts): New struct.
4496 (struct exclude): Use it, as exclude patterns now come with options.
4497 (new_exclude): Support above changes.
4498 (new_exclude, add_exclude_file):
4499 Initial size must now be a power of two to simplify overflow checking.
4500 (free_exclude, fnmatch_no_wildcards): New function.
4501 (excluded_filename): No longer requires options arg, as the options
4502 are determined by add_exclude. Now returns bool, not int.
4503 (excluded_filename, add_exclude):
4504 Add support for the fancy new exclusion options.
4505 (add_exclude, add_exclude_file): Now takes int options arg.
4506 Check for arithmetic overflow when computing sizes.
4507 (add_exclude_file): xrealloc might modify errno, so don't
4508 realloc until after errno might be used.
4509
4510 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
4511 New macros.
4512 (free_exclude): New decl.
4513 (add_exclude, add_exclude_file): Now takes int options arg.
4514 (excluded_filename): No longer requires options arg, as the options
4515 are determined by add_exclude. Now returns bool, not int.
4516
4517 * lib/prepargs.c: Include <string.h>; required for C99 since
4518 we use strlen.
4519
4520 * lib/quotearg.c:
4521 BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.
4522
4523 * lib/xstrtol.h (_DECLARE_XSTRTOL): Improve quality of
4524 diagnostic for LONGINT_INVALID_SUFFIX_CHAR.
4525
4526 * m4/Makefile.am (EXTRA_DIST): Add check-decl.m4, mbrtowc.m4.
4527 Remove inttypes_h.m4, largefile.m4, mktime.m4.
4528
4529 * m4/inttypes_h.m4, m4/largefile.m4, m4/mktime.m4: Remove;
4530 subsumed by Autoconf 2.50.
4531
4532 * m4/error.m4: Upgrade to serial 2.
4533
4534 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Upgrade to serial 4, but
4535 remove test for GNU C library. It's not correct, as some
4536 older glibcs are buggy.
4537
4538 * m4/getline.m4, m4/malloc.m4: Upgrade to serial 4.
4539
4540 * m4/prereq.m4: Upgrade to serial 20, but then:
4541 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
4542 (jm_PREREQ_EXCLUDE): New macro.
4543 (jm_PREREQ_HUMAN): Remove jm_AC_HEADER_INTTYPES_H, as it is subsumed
4544 by autoconf 2.5x.
4545
4546 * m4/realloc.m4: Upgrade to serial 4.
4547
4548 * m4/strerror_r.m4: Revert to serial 1002.
4549
4550 * m4/uintmax_t.m4: Upgrade to autoconf 2.5x.
4551
4552 * m4/utimes.m4: Upgrade to latest version (still "serial 3").
4553
4554 * m4/xstrtoumax.m4: Upgrade to serial 3, but then:
4555 (jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as
4556 it is now subsumed by autoconf. Add inttypes.h.
4557
4558 * po/cs.po, po/da.po, po/de.po, po/es.po, po/et.po, po/fr.po,
4559 po/it.po, po/pl.po, po/sl.po, po/sv.po: Sync with translation project.
4560
4561 * src/buffer.c (new_volume): Stop if the script exits with an error.
4562
4563 * src/common.h (excluded_with_slash, excluded_without_slash):
4564 Remove, replacing by:
4565 (excluded): New decl.
4566 (link_error): New decl.
4567 (excluded_name): Now returns bool.
4568
4569 * src/extract.c:
4570 (struct delayed_symlinks, extract_archive, apply_delayed_symlinks):
4571 Support hard links to symbolic links.
4572
4573 (struct delayed_symlink): Remove 'names' member, replacing it with
4574 'sources' and 'target' member. All uses changed.
4575
4576 (struct string_list): New type.
4577
4578 (delayed_set_stat, extract_archive): Use offsetof when computing sizes
4579 for struct hack; this avoids wasted space in some cases.
4580
4581 (extract_archive): Fix test for absolute pathnames and/or "..".
4582 Use link_error to report errors for links.
4583 Remove redundant trailing '/' at "really_dir", for all uses, not
4584 just before invoking mkdir.
4585 If overwriting old files, do not worry so much about existing
4586 directories.
4587 Fix mode computation in the case where the directory exists.
4588
4589 (apply_delayed_symlinks): If we can't make a hard link to a symbolic
4590 link, make a copy of the symbolic link.
4591
4592 * src/incremen.c (get_directory_contents):
4593 If ignore_failed_read_option, only warn about
4594 stat failures.
4595
4596 * src/list.c (from_header): Do not issue a diagnostic if TYPE is zero.
4597 However, check for error even for '-' or '+' case.
4598
4599 (print_header): Try parsing uids and gids as unsigned integers first,
4600 and as a uid_t or gid_t only if that fails. This adds support for
4601 listing positive uids and gids that are greater than UID_MAX and
4602 GID_MAX.
4603
4604 * src/misc.c (link_error): New function.
4605
4606 * src/names.c (collect_and_sort_names):
4607 If ignore_failed_read_option, only warn about
4608 stat errors.
4609
4610 (excluded_name): Now returns bool. Simplify, as the fancy
4611 features are now all in excluded_filename.
4612
4613 * src/rtapelib.c (base_name): Remove decl, as system.h now
4614 declares it.
4615
4616 * src/system.h: Include stddef.h if available.
4617 (offsetof): Declare if stddef.h doesn't.
4618
4619 Include <dirname.h>.
4620 (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now defined by dirname.h.
4621
4622 * src/tar.c (ANCHORED_OPTION, IGNORE_CASE_OPTION,
4623 NO_ANCHORED_OPTION, NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION,
4624 NO_WILDCARDS_MATCH_SLASH_OPTION, WILDCARDS_OPTION,
4625 WILDCARDS_MATCH_SLASH_OPTION):
4626 New enum values.
4627
4628 (long_options, usage, decode_options): Add support for --anchored,
4629 --ignore-case, --no-anchored, --no-ignore-case, --no-wildcards,
4630 --no-wildcards-match-slash, --recursion, --wildcards,
4631 --wildcards-match-slash.
4632
4633 (decode_options): Implement the new way of interpreting exclude
4634 patterns.
4635
4636 (usage): --newer-mtime takes a DATE operand. DATE may be a file name.
4637
4638 (OPTION_STRING, decode_options): Add -I, -y. Currently these options
4639 just print error messages suggesting alternatives.
4640
4641 (add_filtered_exclude): Remove.
4642
4643 * tests/Makefile.am (TESTS): Alphabetize, except put version.sh first.
4644
4645 * tests/extrac04.sh (out): Remove
4646 directory/subdirectory/file1, as the new semantics for
4647 --exclude exclude it.
4648
4649 * tests/genfile.c (main): Don't use non-ASCII char in msgid.
4650
4651 2001-08-12 Paul Eggert <eggert@twinsun.com>
4652
4653 * lib/addext.c (<errno.h>): Include.
4654 (errno): Declare if not defined.
4655 (addext): Work correctly on the Hurd, where pathconf returns -1 and
4656 leaves errno alone, because there is no limit. Also, work even if
4657 size_t is narrower than long.
4658
4659 2001-07-08 Paul Eggert <eggert@twinsun.com>
4660
4661 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
4662
4663 2001-05-10 Paul Eggert <eggert@twinsun.com>
4664
4665 * lib/addext.c (ISSLASH, base_name): Remove decls; now in dirname.h.
4666 Include <backupfile.h> and <dirname.h> after size_t is defined.
4667 (addext): Use base_len to trim redundant trailing slashes instead of
4668 doing it ourselves.
4669
4670 * lib/backupfile.c (ISSLASH, base_name):
4671 Remove decls; now in dirname.h.
4672 Include <argmatch.h>, <backupfile.h>, <dirname.h> after size_t
4673 is defined.
4674 (find_backup_file_name): Rename locals to avoid new functions.
4675 Use base_len instead of rolling it ourselves.
4676 Work even if dirlen is 0.
4677 Use a dir of '.' if given the empty string.
4678
4679 * lib/basename.c:
4680 Do not include <stdio.h>, <assert.h>; no longer needed.
4681 (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
4682 Include <string.h>, <dirname.h>.
4683 (base_name): Allow file names ending in slashes, other than names
4684 that are all slashes. In this case, return the basename followed
4685 by the slashes.
4686
4687 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
4688 (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
4689 (dir_len): Renamed from dirlen.
4690 All callers changed.
4691
4692 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
4693 New macros.
4694 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
4695
4696 2001-02-16 Paul Eggert <eggert@twinsun.com>
4697
4698 * lib/quotearg.c (mbrtowc, mbrtowc, mbsinit):
4699 Do not declare or define if HAVE_MBRTOWC,
4700 since the test for HAVE_MBRTOWC now requires proper declarations.
4701
4702 * lib/alloca.c (malloc): Undef before defining.
4703
4704 2001-02-13 Paul Eggert <eggert@twinsun.com>
4705
4706 * src/compare.c (read_and_process): Use off_t for size.
4707 From Maciej W. Rozycki.
4708
4709 2001-01-26 Paul Eggert <eggert@twinsun.com>
4710
4711 * lib/quotearg.c: Include stddef.h. From Jim Meyering.
4712
4713 2001-01-12 Paul Eggert <eggert@twinsun.com>
4714
4715 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.19.
4716
4717 * lib/savedir.h (savedir): Remove size arg.
4718
4719 * doc/tar.texi: Add @setchapternewpage odd.
4720 Remove -I as an alias for -T, for now.
4721 Add @dircategory.
4722 Update copyright. Remove "Published by".
4723 Dates beginning with / or . are taken to be file names.
4724
4725 * src/tar.c (<time.h>): Do not include;
4726 (time): Do not declare.
4727 (usage): Remove -I as an alias for -T.
4728 (OPTION_STRING): Remove -I.
4729 (decode_options): Dates that look like an absolute path name,
4730 or that start with '.', are presumed to be file names whose
4731 dates are taken.
4732 Remove 'I' as an aliase for 'T'.
4733 Update copyright.
4734
4735 * src/extract.c (<time.h>): Do not include; system.h now does this.
4736 (make_directories): Skip filesystem prefixes.
4737 Don't assume '/' is the only separator.
4738 (extract_sparse_file): Use new full_write semantics.
4739 On write error, return instead of invoking skip_file.
4740 Do not free sparsearray; caller does this now.
4741 (apply_nonancestor_delayed_set_stat): Do not assume '/' is the only
4742 separator.
4743 (extract_archive): Don't assume file name lengths fit in int.
4744 Report what got stripped from member name; it might be more than '/'.
4745 Use new full_write semantics.
4746 Do not pass redundant trailing "/" to mkdir, as POSIX does not allow
4747 mkdir to ignore it.
4748 Do not report mkdir error if old_files_option == KEEP_OLD_FILES.
4749
4750 * src/buffer.c (<time.h>): Do not include; system.h now does this.
4751 (time): Remove decl; likewise.
4752 (child_open_for_uncompress): Use new full_write semantics.
4753 (flush_write): Use ISSLASH instead of testing for '/'.
4754 (flush_read): Likewise.
4755
4756 * src/rmt.h (_remdev): Look for / anywhere in Path.
4757
4758 * src/misc.c (contains_dot_dot): Skip filesystem prefix.
4759 Don't assume '/' is the only separator.
4760 (safer_rmdir): Don't assume '/' is the only separator.
4761
4762 * src/compare.c (diff_archive): Don't assume '/' is the only separator.
4763
4764 * lib/dirname.h (dirlen): New decl.
4765
4766 * src/incremen.c (get_directory_contents):
4767 Remove path_size arg; all callers changed.
4768 Don't assume '/' is the only directory separator.
4769 (gnu_restore): Work even if file name length doesn't fit in int.
4770
4771 * lib/addext.c (ISSLASH): New macro.
4772 (addext): Trim any redundant trailing slashes.
4773
4774 * src/names.c (name_next):
4775 Don't assume '/' is the only directory separator.
4776 (namelist_match): Likewise.
4777 (add_hierarchy_to_namelist): Remove dirsize arg.
4778 Do not assume '/' is the only directory separator.
4779 (new_name): Likewise.
4780
4781 * lib/Makefile.am (noinst_HEADERS): Add dirname.h, full-write.h.
4782 (libtar_a_SOURCES): Add dirname.c.
4783
4784 * src/create.c (relativize):
4785 New function, with much of old start_header's guts.
4786 Handle filesystem prefixes.
4787 (start_header): Use this new function.
4788 (init_sparsearray): Don't bother to zero out the new array;
4789 it's not needed.
4790 (deal_with_sparse): Fix array allocation bug.
4791 (create_archive): Don't assume '/' is the only separator.
4792 (dump_file): Likewise.
4793 Don't worry about leading / in symlink targets.
4794
4795 * lib/savedir.c (savedir):
4796 Remove size arg; it wasn't portable. All callers changed.
4797
4798 * lib/utime.c (utime_null): Adjust to new full_write convention.
4799
4800 * configure.in (YACC): Avoid portability problem with Ultrix sh.
4801
4802 * lib/backupfile.c: Include <dirname.h>.
4803 (ISSLASH): New macro.
4804 (find_backup_file_name): Use dirlen to calculate directory lengths.
4805 (max_backup_version): Strip redundant trailing slashes.
4806
4807 * src/common.h: Include <full-write.h>.
4808 (get_directory_contents): No longer has size arg.
4809 (gnu_restore): Arg is size_t, not int.
4810
4811 * src/system.h: Include <time.h>.
4812 (time): Declare if not defined.
4813
4814 * lib/full-write.c: Include full-write.h, not safe-read.h.
4815 full_write returns size_t, with short writes meaning failure.
4816 All callers changed.
4817
4818 * src/rtapelib.c: Include full-write.h.
4819
4820 * src/rmt.c: Include full-write.h.
4821 (main): Update copyright.
4822
4823 * doc/getdate.texi: Mention that only English is supported.
4824 Show how to use "date" so that the output is acceptable to getdate.
4825 Mention Z as an abbreviation for UTC.
4826
4827 * lib/full-write.h: New file.
4828
4829 * src/list.c: system.h now does time.h stuff.
4830
4831 * lib/dirname.c:
4832 Use HAVE_STDLIB_H, not STDC_HEADERS, to decide whether to include
4833 stdlib.h.
4834 Do not include string.h, strings.h, or assert.h; no longer needed.
4835 (strrchr, memrchr, malloc): Remove decls; no longer needed.
4836 Include <xalloc.h>.
4837 (base_name): New decl.
4838 (BACKSLASH_IS_PATH_SEPARATOR): Remove.
4839 (dir_name_r): Remove.
4840 (dirlen): New function.
4841 (dir_name): Use dirlen instead of dir_name_r.
4842 (<string.h>, <strings.h>): Include only if test program.
4843 (main): Use "return 0", not "exit (0)".
4844
4845 2000-12-08 Paul Eggert <eggert@twinsun.com>
4846
4847 * lib/dirname.h: New file.
4848
4849 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
4850
4851 * lib/fnmatch.c: Do not comment out all the code if we are using
4852 the GNU C library, because in some cases we are replacing buggy
4853 code in the GNU C library itself.
4854
4855 2000-10-30 Paul Eggert <eggert@twinsun.com>
4856
4857 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
4858
4859 2000-10-29 Paul Eggert <eggert@twinsun.com>
4860
4861 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.18.
4862
4863 * src/tar.c: Include <fnmatch.h>, for FNM_LEADING_DIR.
4864
4865 2000-10-28 Paul Eggert <eggert@twinsun.com>
4866
4867 * doc/tar.texi: --no-recursion now applies to extraction, too.
4868 * src/create.c (dump_file): no_recurse_option -> ! recursion_option
4869 * src/names.c (namelist_match, excluded_name):
4870 Do not match subfiles of a directory
4871 if --no-recursion is specified.
4872 * src/tar.c (NO_RECURSE_OPTION): Remove.
4873 (long_options): Have getopt set the --no-recursion flag.
4874 (decode_options): Initialize recursion_option to FNM_LEADING_DIR.
4875 Remove case for NO_RECURSE_OPTION.
4876 * src/common.h (recursion_option):
4877 Renamed from no_recurse_option, with sense
4878 negated, and with FNM_LEADING_DIR being the nonzero value.
4879
4880 * names.c (namelist_match): New function.
4881 (name_match, name_scan): Use it to eliminate duplicate code.
4882 (names_notfound): Remove special case for Amiga.
4883
4884 2000-10-27 Paul Eggert <eggert@twinsun.com>
4885
4886 * src/misc.c (read_error_details, read_warn_details,
4887 read_fatal_details): Don't assume size_t is unsigned long.
4888
4889 * src/buffer.c (flush_read): If read_full_records_option, try to
4890 fill the input buffer, as --delete -f - needs this.
4891
4892 2000-10-24 Paul Eggert <eggert@twinsun.com>
4893
4894 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Port to autoconf 2.13.
4895
4896 * src/buffer.c (check_label_pattern):
4897 Make sure header name is a string before
4898 passing it to fnmatch.
4899 (init_volume_number): Check for global_volno overflow.
4900 (new_volume): Check for global_volno overflow.
4901
4902 * src/tar.c (decode_options):
4903 Check that volume label is not too long to overflow
4904 name in tar header block.
4905
4906 * Makefile.am (EXTRA_DIST): Remove rebox.el.
4907
4908 * configure.in (HAVE_DECL_STRERROR_R): Remove our handwritten code.
4909 (AC_FUNC_STRERROR_R): Use this instead.
4910
4911 2000-10-23 Paul Eggert <eggert@twinsun.com>
4912
4913 * src/extract.c: Include <time.h>, since we invoke "time".
4914
4915 * lib/prepargs.c (prepend_default_options):
4916 Don't use NULL, for portability.
4917
4918 * m4/fnmatch.m4: Add "working" to message.
4919
4920 * src/names.c: (_GNU_SOURCE): Remove; autoconf now does this.
4921 Include <hash.h>.
4922 (getpwuid, getgrgid): Declare only if system headers don't.
4923 (gid_to_gname): Don't invoke setgrent.
4924 (namelist): Now static, not global.
4925 (nametail): New var. All uses of namelast changed to use
4926 nametail, with one extra level of indirection.
4927 (name_gather): Use memcpy instead of strncpy + assignment of NUL.
4928 (name_match): Set nametail too, when setting namelist to null.
4929 (add_hierarchy_to_namelist): Change type of dir arg from char * to
4930 struct name *, so that we don't have to look up the name again
4931 here. Get change_dir from dir rather than as a separate arg. Add
4932 dirsize arg, and pass it along to get_directory_contents. Remove
4933 unnecessary check of directory type.
4934 (new_name): Do not append a slash if PATH already ends in one.
4935 (avoided_names, struct avoided_name): Remove.
4936 (avoided_name_table): New var, replacing avoided_names.
4937 (hash_avoided_name, compare_avoided_names): New function.
4938 (add_avoided_name, is_avoided_name): Use hash table rather than
4939 linked list.
4940
4941 * src/buffer.c (_GNU_SOURCE): Remove; autoconf now does this.
4942 (child_open_for_compress, child_open_for_uncompress,
4943 close_archive): Propagate any failure of the compression process
4944 back to "tar".
4945 (open_archive, flush_write, flush_read, close_archive): Do not
4946 allocate an array of size PATH_MAX, as PATH_MAX might be (size_t)
4947 -1. Instead, allocate an array with the size that's needed.
4948 (open_archive): Don't bother checking S_ISCHR of /dev/null.
4949 (backspace_output): Don't try to backspace past start of archive.
4950 (close_archive): Remove special case for DELETE_SUBCOMMAND.
4951
4952 * acconfig.h (_GNU_SOURCE, DEFAULT_ARCHIVE, DEFAULT_BLOCKING,
4953 DENSITY_LETTER, DEVICE_PREFIX, EMUL_OPEN3, HAVE_GETGRGID,
4954 HAVE_GETPWUID, HAVE_MKNOD, HAVE_RTAPELIB, HAVE_ST_FSTYPE_STRING,
4955 HAVE_UNION_WAIT, HAVE_UTIME_H, HAVE_VALLOC, MTIO_CHECK_FIELD, PACKAGE,
4956 PROTOTYPES, REMOTE_SHELL, STD_INC_PATH, VERSION, WITH_CATALOGS,
4957 WITH_DMALLOC, WITH_REGEX):
4958 Remove; now generated automatically.
4959
4960 * configure.in (_GNU_SOURCE): Define to empty, not 1, for
4961 compatibility for glibc fragments.
4962 (_GNU_SOURCE, HAVE_UTIME_H, MTIO_CHECK_FIELD,
4963 HAVE_ST_FSTYPE_STRING, HAVE_MKNOD, REMOTE_SHELL, DENSITY_LETTER,
4964 DEVICE_PREFIX, DEFAULT_ARCHIVE, DEFAULT_BLOCKING): Add comment so
4965 that we needn't put an entry into acconfig.h.
4966 (ALL_LINGUAS): Add da.
4967 (AC_C_BACKSLASH_A): Remove; jm_PREREQ_QUOTEARG now does this.
4968 (AC_CHECK_HEADERS): Add stdbool.h (for hash.h users), wctype.h
4969 (for strtol.c).
4970 (AC_MBSTATE_T): Add.
4971 (RMT): Append $(EXEEXT).
4972 (HAVE_GETGRGID, HAVE_GETPWUID, pe_AC_TYPE_SIGNED_CHAR): Remove.
4973 (HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
4974 HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
4975 HAVE_DECL_STRTOULL, HAVE_DECL_STRERROR_R): New macros.
4976 (jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, jm_PREREQ_QUOTEARG): Add.
4977 (AC_REPLACE_FUNCS): Remove execlp; no longer needed.
4978 (AC_CHECK_FUNCS): Add clock_gettime; AC_SEARCH_LIBS wasn't enough.
4979 Remove mbrtowc; jm_PREREQ_QUOTEARG now does this.
4980 (EMUL_OPEN3): Remove; no longer needed.
4981 (DENSITY_LETTER, DEVICE_PREFIX): Simplify m4 quoting.
4982
4983 * m4/fnmatch.m4 (AC_FUNC_FNMATCH): Detect d*/*1 vs d/s/1 bug.
4984
4985 * src/common.h: Do not include basename.h.
4986 * src/rtapelib.c (base_name): Do not include basename.h;
4987 declare base_name instead.
4988
4989 * lib/basename.h, lib/execlp.c, lib/getpagesize.h, lib/mkdir.c:
4990 Remove these files.
4991 * lib/getstr.c, lib/getstr.h, lib/hash.h, lib/hash.h, lib/prepargs.c,
4992 lib/prepargs.h, lib/savedir.c, lib/savedir.h: New files.
4993 * lib/Makefile.am (EXTRA_DIST, noinst_HEADERS, libtar_a_SOURCES):
4994 Adjust to the above changes.
4995
4996 * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove ../src/ansi2knr.
4997
4998 * src/open3.c: Remove.
4999
5000 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
5001 (tar_SOURCES): Remove open3.c.
5002 (INCLUDES): Remove -I.., as automake does that.
5003 (OMIT_DEPENDENCIES): ../lib/fnmatch.h -> fnmatch.h. Add localedir.h.
5004
5005 The following changes are to put LOCALEDIR into localedir.h instead
5006 of passing it on the command line.
5007 (DEFS): Remove.
5008 (DISTCLEANFILES): New macro.
5009 (localedir.h): New rule.
5010 (rmt.o tar.o): Now depend on localedir.h.
5011
5012 * tests/delete02.sh, tests/extrac04.sh: New files.
5013
5014 * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
5015 (TESTS): Add extrac04.sh, and restore delete02.sh.
5016 (DEFS): Remove; LOCALEDIR is now done via localedir.h.
5017 (INCLUDES): Remove -I.. as automake does this now.
5018
5019 * src/rtapelib.c (rexec): Don't declare unless using it.
5020 (do_command): Simplify signal-handling code slightly.
5021
5022 * src/delete.c (blocks_needed): Remove. All uses changed to use
5023 blocking_factor - new_blocks.
5024 (acting_as_filter): New var.
5025 (write_record, delete_archive_members): Use acting_as_filter
5026 rather than archive == STDIN_FILENO to detect whether we're acting
5027 as a filter, as open can return STDIN_FILENO in some cases.
5028 (delete_archive_members): Ignore zero blocks if
5029 ignore_zeros_option is nonzero. Fix bug that messed up last
5030 output block: write_eot can't be used here, as it gets confused
5031 when the input is at end of file.
5032
5033 * src/compare.c (diff_archive): Do not impose an arbitrary limit on
5034 symbolic link contents length. Pass directory size to
5035 get_directory_contents.
5036
5037 * m4/decl.m4, m4/error.m4, m4/mbstate_t.m4, m4/prereq.m4,
5038 m4/strerror_r.m4: New files.
5039 * m4/signedchar.m4: Remove this file.
5040 * Makefile.am (ACINCLUDE_INPUTS): Adjust to above changes.
5041 * m4/Makefile.am (EXTRA_DIST): Likewise.
5042
5043 * Makefile.am (DISTCLEANFILES): Add intl/libintl.h.
5044
5045 * po/da.po: New translation file.
5046
5047 * src/mangle.c (extract_mangle):
5048 Fix diagnostic with wrong number of %s'es.
5049
5050 * lib/fnmatch.c (fnmatch):
5051 Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
5052 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
5053
5054 * lib/full-write.c (full_write): Some buggy drivers return 0 when you
5055 fall off a device's end. Detect this.
5056
5057 * src/system.h (IN_CTYPE_DOMAIN): Renamed from CTYPE_DOMAIN. All
5058 uses changed.
5059 (open): Remove macro; we no longer support EMUL_OPEN3. Do not
5060 include <pathmax.h> and directory include files like <dirent.h>;
5061 no longer used. Include <savedir.h> instead.
5062 (closedir, signed_char): remove macro; no longer used.
5063 (bool, false, true): Include <stdbool.h> if you have the include
5064 file, otherwise define.
5065
5066 * src/misc.c:
5067 (is_dot_or_dotdot, closedir_error, closedir_warn, opendir_error,
5068 opendir_warn, readdir_error): Remove; no longer needed.
5069 (safer_rmdir): Strip leading ./ (or .// or ./// or ././ or etc.)
5070 before deciding whether we're trying to remove ".".
5071 (remove_any_file): Try unlink first if we are not root. Use
5072 savedir when recursively removing directories, to avoid exhausting
5073 file descriptors.
5074 (savedir_error, savedir_warn, symlink_error): New functions.
5075
5076 * src/list.c: (read_and): Do not invoke
5077 apply_nonancestor_delayed_set_stat; DO_SOMETHING is now
5078 responsible for that. Do not invoke apply_delayed_set_stat; our
5079 caller is now responsible for that.
5080 (read_header): Use signed char instead of signed_char. Prevent
5081 later references to current_header from mistakenly treating it as
5082 an old GNU header.
5083 (from_header): Quote invalid base-64 strings in diagnostics.
5084 (time_from_header): Do not warn about future timestamps in
5085 archive; check_time now does that.
5086 (print_header): Quote unknown file types.
5087 (skip_member): New function, replacing skip_extended_headers and
5088 now skipping the whole member instead of just the extended
5089 headers. All callers changed. This makes the code handle
5090 extended headers uniformly, and fixes some bugs.
5091
5092 * src/update.c (update_archive): Use skip_member.
5093
5094 * src/extract.c (we_are_root): Now global.
5095 (struct delayed_symlink): New type.
5096 (delayed_symlink_head): New var.
5097 (extr_init, fatal_exit): Invoke extract_finish on fatal errors,
5098 not apply_delayed_set_stat.
5099 (set_mode, set_stat): Pointer args are now const pointers.
5100 (check_time): New function.
5101 (set_stat): Warn if setting a file's timestamp to be the future.
5102 (make_directories): Do not save and restore errno.
5103 (maybe_recoverable): Set errno to ENOENT if we cannot make missing
5104 intermediate directories.
5105 (extract_archive): Invoke apply_nonancestor_delayed_set_stat here,
5106 not in caller. Extract potentially dangerous symbolic links more
5107 carefully, deferring their creation until the end, and using a
5108 regular file placeholder in the meantime. Do not remove trailing
5109 / and /. from file names. Do not bother checking for ".." when
5110 checking whether a directory loops back on itself, as loopbacks
5111 can occur with symlinks too. Also, in that case, do not bother
5112 saving and restoring errno; just set it to EEXIST.
5113 (apply_nonancestor_delayed_set_stat): A prefix is a potential
5114 ancestor if it ends in slash too (as well as ending in a char just
5115 before slash).
5116 (apply_delayed_set_stat): Remove.
5117 (apply_delayed_symlinks, extract_finish): New functions.
5118
5119 * doc/fdl.texi: New file.
5120 * doc/Makefile.am (EXTRA_DIST): Add fdl.texi.
5121 ($(srcdir)/tar.info): Add fdl.texi. Invoke makeinfo with --no-split.
5122 * doc/tar.texi: Add Free Documentation License. New section
5123 "Overwrite Old Files", and revamp that section to make it easier to
5124 follow. "tar" -> "GNU tar" where appropriate. Migrate getdate
5125 documentation into getdate.texi. Fix several minor typos. Describe
5126 TAR_OPTIONS. Describe incompatibility between incremental backups and
5127 --atime-preserve. Describe incompatibility between --verify and other
5128 options. Mention that tar normally removes symbolic links rather than
5129 following them, when extracting a file of the same name.
5130
5131 * THANKS: Add gpoul. Change skip's address.
5132
5133 * po/POTFILES.in: Add lib/human.c.
5134
5135 * src/common.h (namelist, namelast): Remove decls.
5136 (we_are_root, extract_finish, skip_member, savedir_error,
5137 savedir_warn, symlink_error, gnu_list_name): New decls.
5138 (apply_delayed_set_stat, apply_nonancestor_delayed_set_stat,
5139 skip_extended_headers, is_dot_or_dotdot, closedir_error,
5140 closedir_warn, opendir_error, opendir_warn, readdir_error,
5141 readdir_warn): Remove decls.
5142 (get_directory_contents): New off_t arg.
5143 (addname): Now returns struct name *.
5144
5145 * src/tar.h, tests/genfile.c: Fix comments.
5146
5147 * src/create.c: Include hash.h.
5148 (gnu_list_name): Remove decl.
5149 (struct link): Remove "next" member.
5150 (linklist): Remove.
5151 (start_header): Say "leading `FOO'" rather than "`FOO' prefix" for
5152 consistency with other diagnostics.
5153 (deal_with_sparse): Check for I/O error when closing the file.
5154 (create_archive): Do not allocate an array of size PATH_MAX, as
5155 PATH_MAX might be (size_t) -1. Instead, allocate an array with
5156 the size that's needed.
5157 (hash_link, compare_links): New functions.
5158 (dump_file): Do not exhaust open file descriptors when descending
5159 deeply into a directory, by using savedir rather than
5160 opendir/readdir. Do not zero-fill the name buffer unnecessarily.
5161 Hash the set of links already created, instead of using a linked
5162 list. Fix some bugs in outputting sparse files which caused the
5163 sparse tables to be incorrect. When a file unexpectedly shrinks,
5164 output zeros rather than garbage. Do not allocate an array of
5165 size PATH_MAX, as PATH_MAX might be (size_t) -1. Instead,
5166 allocate an array with the size that's needed.
5167
5168 * src/incremen.c: Include hash.h.
5169 (struct directory): Remove "next", "dir_text". Change "name" to
5170 be char[1] with struct hack, not const char *. Add "found".
5171 (directory_list): Remove. Replaced by directory_table.
5172 (directory_table): New var.
5173 (nfs_string): Renamed from nfs.
5174 (hash_directory, compare_directories): New functions.
5175 (note_directory): Now returns struct directory *. First arg is
5176 now const pointer. struct stat arg is now dev_t, ino_t, nfs.
5177 Remove text arg. New "found" arg, basically corresponding to the
5178 old text arg not being null. All callers changed.
5179 (note_directory, find_directory): Use hash table rather than
5180 linked list.
5181 (get_directory_contents): New arg "device". Use savedir to do the
5182 hard work. Save the nfs-ness of stat_data, since it might change
5183 under us. Use note_directory instead of find_directory to save
5184 some work. When adding an "A" record, do it with
5185 add_to_accumulator instead of cheating with strcat.
5186 (read_directory_file): Use "+" flag before device to indicate
5187 whether it was NFS. Fix typo in checking for strtoul error.
5188 (write_directory_file_entry): New function.
5189 (write_directory_file): Use it, and use the hash routines to
5190 traverse the directory table.
5191 (gnu_restore): Use savedir rather than opendir/readdir.
5192
5193 * src/tar.c: Include localedir.h, prepargs.h.
5194 (long_options): Now static.
5195 (long_options, usage, decode_options): -j is now short for
5196 --bzip2, and -I is now an alias for -T.
5197 (decode_options, main): argv is not const pointer now.
5198 (decode_options): Invoke prepend_default_options to support
5199 TAR_OPTIONS. In diagnostic, mention the string that was the
5200 invalid blocking factor, tape length, group, owner, or record
5201 size. --delete is no longer incompatible with -f -, undoing
5202 2000-01-07 change.
5203 (main): Invoke extract_finish at end of extraction.
5204
5205 * src/rmt.c: Include localedir.h.
5206 (main): Update copyright date to 2000.
5207
5208 * doc/getdate.texi: New file, taken from fileutils 4.0.27, with the
5209 following changes: Use @sc where appropriate. Document the ranges of
5210 supported times more precisely. Add Eggert to getdate authors.
5211 Document old Latin 12m/12pm tradition. Remove list of alphabetic time
5212 zone names, as it wasn't correct and people shouldn't be relying on it
5213 anyway. Relative items also account for non-DST adjustments. Fix
5214 some misspellings.
5215
5216 * lib/prepargs.c, lib/prepargs.h, tests/extrac04.sh: New file.
5217
5218 * tests/ignfail.sh: opendir -> savedir in diagnostics.
5219
5220 * tests/preset.in: Set LANGUAGE to the empty string, for some
5221 brain damaged host.
5222
5223 2000-10-20 Paul Eggert <eggert@twinsun.com>
5224
5225 * m4/fnmatch.m4: Mention the GNU C library.
5226
5227 2000-10-19 Paul Eggert <eggert@twinsun.com>
5228
5229 * m4/fnmatch.m4: Add a couple more test cases to catch bugs in
5230 glibc 2.1.95.
5231
5232 2000-10-17 Paul Eggert <eggert@twinsun.com>
5233
5234 * lib/human.c (<limits.h>): Do not include; human.h does it if needed.
5235 (CHAR_BIT): Remove.
5236
5237 * lib/human.h (<limits.h>): Include if HAVE_LIMITS_H.
5238 (CHAR_BIT): Define if not defined.
5239
5240 2000-09-09 Paul Eggert <eggert@twinsun.com>
5241
5242 * lib/quotearg.c: From fileutils: rename ISASCII to IN_CTYPE_DOMAIN.
5243
5244 2000-08-07 Paul Eggert <eggert@twinsun.com>
5245
5246 * lib/xmalloc.c: Memory exhausted -> memory exhausted
5247
5248 * lib/xalloc.h (xalloc_msg_memory_exhausted):
5249 change to array from char *.
5250
5251 2000-08-06 Paul Eggert <eggert@twinsun.com>
5252
5253 * m4/mbstate_t.m4: Define mbstate_t to be int, not char, for
5254 compatibility with glibc 2.1.3 strftime.c.
5255
5256 2000-07-31 Paul Eggert <eggert@twinsun.com>
5257
5258 * lib/quotearg.c (quotearg_n_options):
5259 Don't make the initial slot vector a constant,
5260 since it might get modified.
5261
5262 * lib/quotearg.c: Add support for more than one preallocated slot.
5263
5264 2000-07-30 Paul Eggert <eggert@twinsun.com>
5265
5266 * lib/quotearg.c (quotearg_n_options):
5267 Preallocate a slot 0 buffer, so that the caller
5268 can always quote one small component of a "memory exhausted" message
5269 in slot 0.
5270
5271 2000-07-23 Paul Eggert <eggert@twinsun.com>
5272
5273 * lib/quotearg.c:
5274 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), so that
5275 mbstate_t is always defined.
5276
5277 Do not inspect MB_LEN_MAX, since it's incorrectly defined to be 1 in
5278 some GCC installations, and this configuration error is likely to be
5279 common.
5280
5281 2000-07-22 Paul Eggert <eggert@twinsun.com>
5282
5283 * lib/quotearg.c:
5284 When the system forces us to redefine mbstate_t, shadow its mbsinit
5285 function. From Bruno Haible.
5286
5287 2000-07-14 Paul Eggert <eggert@twinsun.com>
5288
5289 * lib/xmalloc.c: Simplify exhausted message.
5290
5291 * lib/quotearg.h: Update copyright date; from Jim Meyering.
5292
5293 2000-07-13 Paul Eggert <eggert@twinsun.com>
5294
5295 * lib/quotearg.h (enum quoting style):
5296 New constant clocale_quoting_style.
5297
5298 * lib/quotearg.c:
5299 (quoting_style_args, quoting_style_vals, quotearg_buffer_restyled):
5300 Add support for clocale_quoting_style, undoing previous change to
5301 locale_quoting_style.
5302
5303 2000-07-10 Paul Eggert <eggert@twinsun.com>
5304
5305 * lib/quotearg.c:
5306 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX,
5307 since otherwise we don't need it.
5308 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
5309 since we don't do multibytes in that case.
5310 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
5311 invoke multibyte primitives.
5312
5313 * m4/mbstate_t.m4 (AC_MBSTATE_T):
5314 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
5315 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
5316 and mbstate_t, to a single-part test that simply defines mbstate_t.
5317
5318 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
5319 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
5320 to decide whether to define the BeOS workaround macro;
5321 this adjusts to the change to AC_MBSTATE_T.
5322
5323 * m4/strerror_r.m4: New file.
5324
5325 2000-07-05 Paul Eggert <eggert@twinsun.com>
5326
5327 * lib/quotearg.c: Use double-quote to quote.
5328
5329 * lib/quotearg.c (N_): New macro.
5330 (gettext_default): New function.
5331 (quotearg_buffer_restyled): Use gettext_default ("{LEFT QUOTATION MARK}",
5332 "\"") for left quote, and gettext_default ("{RIGHT QUOTATION MARK}", "\"")
5333 for right quote.
5334
5335 * lib/quotearg.c (struct quoting_options):
5336 Simplify quote_these_too dimension.
5337 From Bruno Haible <haible@clisp.cons.org>.
5338
5339 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT):
5340 Test for mbstate_t only if the test
5341 for an object-type mbstate_t fails.
5342
5343 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
5344
5345 2000-07-03 Paul Eggert <eggert@twinsun.com>
5346
5347 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
5348 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
5349
5350 * lib/quotearg.c (mbrtowc):
5351 Assign to *pwc, and return 1 only if result is nonzero.
5352 (iswprint): Define to ISPRINT if we are substituting our own mbrtowc.
5353
5354 2000-07-02 Paul Eggert <eggert@twinsun.com>
5355
5356 * lib/quotearg.c (mbstate_t):
5357 Do not define; it should be defined with AC_CHECK_TYPE.
5358
5359 2000-06-26 Paul Eggert <eggert@twinsun.com>
5360
5361 * m4/mbstate_t.m4: Include stdio.h before wchar.h, to work around
5362 a bug in glibc 2.1.3.
5363
5364 * lib/xmalloc.c: Fix inaccurate comment for xrealloc.
5365
5366 2000-06-19 Paul Eggert <eggert@twinsun.com>
5367
5368 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
5369 inclusion of wctype.h to work around solaris2.6 namespace pollution.
5370 (ISPRINT): Likewise.
5371 Reported by Tom Tromey.
5372
5373 2000-06-15 Paul Eggert <eggert@twinsun.com>
5374
5375 * lib/human.c (adjust_value): New function.
5376 (human_readable_inexact): Apply rounding style even when printing
5377 approximate values.
5378
5379 * lib/human.c: Avoid shadowing warnings.
5380 From Jim Meyering.
5381
5382 2000-06-14 Paul Eggert <eggert@twinsun.com>
5383
5384 * lib/human.c (human_readable_inexact): Allow an input block size
5385 that is not a multiple of the output block size, and vice versa.
5386
5387 * lib/getdate.y (get_date): Apply relative times after time zone
5388 indicator, not before.
5389
5390 2000-05-31 Paul Eggert <eggert@twinsun.com>
5391
5392 * m4/largefile.m4: Rewrite so that we don't need to run getconf,
5393 and thus don't need AC_CANONICAL_HOST.
5394
5395 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
5396 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
5397 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
5398 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY. All uses
5399 changed. Instead of inspecting the output of getconf, try to
5400 compile the test program without and with the macro definition.
5401 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check for
5402 getconf. Instead, check for the needed flags by compiling test
5403 programs.
5404
5405 * configure.in (AC_CANONICAL_HOST): Remove; the largefile stuff no
5406 longer needs it.
5407 * config.guess, config.sub: Remove these files, for similar reasons.
5408
5409 2000-05-03 Paul Eggert <eggert@twinsun.com>
5410
5411 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be
5412 500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3
5413 bug. This avoids a clash when files like regex.c that define
5414 _GNU_SOURCE.
5415
5416 2000-05-02 Paul Eggert <eggert@twinsun.com>
5417
5418 * m4/largefile.m4 (AC_SYS_LARGEFILE):
5419 Define _GNU_SOURCE if this is needed to make
5420 ftello visible (e.g. glibc 2.1.3). Use compile-time test, rather than
5421 inspecting host and OS, to decide whether to define _LARGEFILE_SOURCE.
5422
5423 * lib/quotearg.c (mbrtowc, mbstat_t):
5424 Add definitions if !HAVE_MBSTATE_T_OBJECT.
5425 (<wctype.h>): Include if HAVE_WCTYPE_H.
5426 (iswprint): Define to 1 if we lack it
5427
5428 2000-04-18 Paul Eggert <eggert@twinsun.com>
5429
5430 * m4/mbstate_t.m4: New file.
5431
5432 2000-04-17 Bruno Haible <haible@clisp.cons.org>
5433
5434 * tests/ignfail.sh: Test for uid 0 along with user "root".
5435
5436 2000-04-05 Paul Eggert <eggert@twinsun.com>
5437
5438 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS):
5439 Don't use -n32 on IRIX if the installer said
5440 otherwise.
5441
5442 2000-02-28 Paul Eggert <eggert@twinsun.com>
5443
5444 * lib/quotearg.c (ALERT_CHAR): New macro.
5445 (quotearg_buffer_restyled): Use it.
5446
5447 2000-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5448
5449 * src/list.c (tartime): Fix off-by-one error when copying year if
5450 OLD_CTIME.
5451
5452 2000-02-18 Paul Eggert <eggert@twinsun.com>
5453
5454 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
5455 (textint): New typedef.
5456 (parser_control): Changed from struct parser_control to typedef
5457 (for consistency). Member year changed from int to textint. All
5458 uses changed.
5459 (YYSTYPE): Removed; replaced by %union with int and textint
5460 members.
5461 (tID): Removed; not used.
5462 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE,
5463 tMERIDIAN, tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER,
5464 tUNUMBER, tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
5465 (tSNUMBER, tUNUMBER): Now of type <textintval>.
5466 (date, number, to_year): Use width of number in digits, not its
5467 value, to determine whether it's a 2-digit year, or a 2-digit
5468 time.
5469 (yylex): Store number of digits of numeric tokens. Return '?' for
5470 unknown identifiers, rather than (unused) tID.
5471
5472 2000-01-16 Paul Eggert <eggert@twinsun.com>
5473
5474 * lib/quotearg.c (quotearg_buffer_restyled):
5475 Do not quote alert, backslash, formfeed,
5476 and vertical tab unnecessarily in shell quoting style.
5477
5478 2000-01-15 Paul Eggert <eggert@twinsun.com>
5479
5480 * m4/c-bs-a.m4:
5481 Change quoting to be compatible with future autoconf versions.
5482
5483 2000-01-11 Paul Eggert <eggert@twinsun.com>
5484
5485 * lib/exclude.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove unused macros.
5486
5487 2000-01-07 Paul Eggert <eggert@twinsun.com>
5488
5489 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.17.
5490
5491 Fix bug with fnmatch.h dependency, as follows:
5492 * src/Makefile.am (OMIT_DEPENDENCIES): New macro.
5493 * lib/Makefile.am (OMIT_DEPENDENCIES): New macro.
5494
5495 * src/common.h (apply_nonancestor_delayed_set_stat):
5496 Renamed from apply_delayed_set_stat.
5497 (apply_delayed_set_stat, decode_mode, chmod_error_details,
5498 chown_error_details, close_warn, closedir_warn, mkdir_error,
5499 read_error_details, read_fatal_details, read_warn_details,
5500 seek_error_details, seek_warn_details, utime_error,
5501 write_error_details, write_fatal_details): New decls.
5502
5503 Make diagnostic messages more regular.
5504 * src/create.c (dump_file): Quote file names with colons if possible.
5505 * src/compare.c (diff_archive): Likewise.
5506 * src/extract.c (repair_delayed_set_stat, extract_archive): Likewise.
5507 * src/incremen.c (get_directory_contents, gnu_restore): Likewise.
5508 * src/mangle.c (extract_mangle): Likewise.
5509 * src/misc.c (call_arg_error, call_arg_fatal, call_arg_warn):
5510 Likewise.
5511 * src/buffer.c (archive_write_error, flush_archive, close_archive,
5512 new_volume, xclose):
5513 Use error message functions to report errors consistently.
5514 * src/compare.c (diff_sparse_files, diff_archive): Likewise.
5515 * src/create.c (finish_sparse_file, dump_file): Likewise.
5516 * src/extract.c (set_mode, set_stat, extract_sparse_file,
5517 extract_archive): Likewise.
5518 * src/list.c (list_archive): Likewise.
5519 * src/update.c (append_file): Likewise.
5520 * src/compare.c (diff_init, diff_sparse_files):
5521 Use xalloc_die to report memory exhaustion.
5522 * src/incremen.c (gnu_restore): Likewise.
5523 * src/list.c (read_header): Likewise.
5524 * src/mangle.c (extract_mangle): Likewise.
5525 * src/misc.c (maybe_backup_file): Likewise.
5526 * src/tar.c (decode_options): Likewise.
5527 * src/compare.c (read_and_process, fill_in_sparse_array,
5528 diff_sparse_files):
5529 Use consistent terminology for unexpected-EOF message.
5530 * src/extract.c (extract_sparse_file, extract_archive): Likewise.
5531 * src/list.c (list_archive, read_header, skip_file,
5532 skip_extended_headers): Likewise.
5533 * src/buffer.c (archive_write_error): Add noreturn attribute to decl.
5534 (xdup2): Regularize messages with rest of tar.
5535
5536 * src/buffer.c (flush_read): Don't read past EOF.
5537
5538 * src/extract.c (extr_init):
5539 If we run out of memory, invoke apply_delayed_set_stat.
5540 (prepare_to_extract): Don't complain if we can't remove ".".
5541 (apply_delayed_set_stat): New function.
5542 (apply_nonancestor_delayed_set_stat):
5543 Renamed from apply_delayed_set_stat. All uses changed.
5544 Don't remove head if it doesn't apply.
5545
5546 * src/create.c (find_new_file_size):
5547 Return size instead of storing through pointer.
5548 All callers changed.
5549 (deal_with_sparse): Don't keep reading after read errors.
5550 (finish_sparse_file): Just abort if there is an internal error.
5551 (dump_file): Fix typo: stat_warn and stat_error were interchanged.
5552 Don't restore access times on directories during incremental dumps
5553 until after dealing with the directory.
5554 If ignoring failed reads, count closedir, read, and unknown
5555 file errors as warnings, not errors.
5556 Fix buffer overrun problem when dumping sparse files.
5557
5558 * src/list.c (read_and):
5559 Invoke apply_nonancestor_delayed_set_stat on file names
5560 after handling them.
5561 (decode_mode): Remove; moved to misc.c.
5562
5563 * src/misc.c (safer_rmdir): New function.
5564 (remove_any_file): Use it to avoid problems with rmdir(".").
5565 (maybe_backup_file): Regularize diagnostics.
5566 (undo_backup_file): Likewise.
5567 (decode_mode): Moved here from list.c.
5568 (chmod_error_details, chown_error_details, close_fatal,
5569 close_warn, closedir_warn, mkdir_error, read_error_details,
5570 read_warn_details, read_fatal_details, seek_error_details,
5571 seek_warn_details, utime_error, write_error_details,
5572 write_fatal_details): New functions.
5573
5574 * src/delete.c (save_record): Remove static variable (now local).
5575 (move_archive): Don't position before start of archive.
5576 (write_record): Abort if count is zero at inopportune time.
5577 Plug memory leak.
5578
5579 * src/tar.c (decode_options): --delete and -f - are now
5580 incompatible, since we didn't have time to fix their bugs.
5581
5582 * tests/Makefile.am (TESTS): Remove delete02.sh.
5583 * tests/ignfail.sh: Adjust to new quoting scheme again.
5584
5585 2000-01-06 Paul Eggert <eggert@twinsun.com>
5586
5587 * lib/getdate.y: Sync tm_diff with the GNU C Library.
5588 (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed.
5589 (tm_diff): Renamed from difftm. All uses changed.
5590 Replace body with that taken from GNU C Library 2.1.3pre1.
5591 (get_date): Prefer tm_gmtoff to tm_diff if available.
5592
5593 1999-12-29 "Melissa O'Neill" <oneill@cs.sfu.ca>
5594
5595 * tests/incremen.sh: Invoke stat on newly created file so that its
5596 ctime is updated on Nextstep.
5597
5598 1999-12-21 Machael Stone <mstone@cs.loyola.edu>
5599
5600 * lib/getdate.y (get_date):
5601 Fix typo when checking for time_t overflow in time zone calculations.
5602
5603 1999-12-13 Paul Eggert <eggert@twinsun.com>
5604
5605 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.16.
5606
5607 * README-alpha: New file.
5608 * README: New sections for gzip and bzip2, Solaris.
5609 Remove mention of BACKLOG.
5610
5611 * configure.in (AC_C_BACKSLASH_A): Add.
5612 (AC_CHECK_HEADERS): Add wchar.h.
5613 (AC_CHECK_FUNCS): Add mbrtowc.
5614 (AC_FUNC_CLOSEDIR_VOID): Add.
5615
5616 * tests/Makefile.am (TESTS): Add delete02.sh.
5617 (POSTPONED_TESTS): Remove.
5618 (EXTRA_DIST): Remove $(POSTPONED_TESTS).
5619
5620 * tests/preset.in:
5621 Set LC_ALL rather than LANGUAGE, LANG, and LC_MESSAGES.
5622
5623 * tests/ignfail.sh (err): Adjust to new quoting scheme.
5624
5625 * tests/delete02.sh: Fix typo: need to list archive2, not archive.
5626
5627 * tests/extrac03.sh: Use -P option, so that .. doesn't get diagnosed.
5628
5629 * src/tar.c ("quotearg.h"): New include.
5630 (usage): Now has __attribute__ ((noreturn)).
5631 (confirm): Report errno if we can't open tty.
5632 (confirm, decode_options):
5633 Quote arbitrary strings in diagnostics.
5634 (OVERWRITE_OPTION): New constant.
5635 (long_options, usage, decode_options): New --overwrite option.
5636 (decode_options): --keep-old-files, --overwrite, and --unlink-first
5637 are now mutually exclusive.
5638 Don't assume that gettext preserves errno.
5639 (main): Set default quoting style to escape_quoting_style.
5640
5641 * src/update.c (<quotearg.h>): New include.
5642 (append_file):
5643 Don't assume that gettext preserves errno.
5644 Quote arbitrary strings in diagnostics.
5645 Check for close error.
5646
5647 * src/names.c (<quotearg.h>): New include.
5648 (name_init, name_next, name_close, names_notfound,
5649 collect_and_sort_names): Don't assume that gettext preserves
5650 errno. Quote arbitrary strings in diagnostics.
5651 (excluded_name): Fix typo that caused empty patterns to be
5652 mishandled.
5653
5654 * src/misc.c (<quotearg.h>): New include.
5655 (quote_copy_string): Quote only newline and backslash; the output is no
5656 longer meant for humans, and is locale-independent.
5657 (contains_dot_dot): New function.
5658 (remove_any_file): Don't use lstat; just rmdir the file and then use
5659 unlink if the rmdir fails because the file isn't a directory.
5660 Check for readdir and closedir errors.
5661 (maybe_backup_file): Report "stat" for stat errors.
5662 (maybe_backup_file, chdir_do):
5663 Quote arbitrary strings in diagnostics.
5664 (maybe_backup_file, undo_last_backup):
5665 Don't assume that gettext preserves errno.
5666 (call_arg_error, call_arg_fatal, call_arg_warn,
5667 chdir_fatal, close_error, closedir_error, exec_fatal, mkfifo_error,
5668 mknod_error, open_error, open_fatal, open_warn, opendir_error,
5669 opendir_warn, read_error, read_fatal, readdir_error, readdir_warn,
5670 readlink_error, readlink_warn, seek_error, seek_warn, stat_error,
5671 stat_warn, truncate_error, truncate_warn, unlink_error, waitpid_error,
5672 write_error, write_fatal, xfork, xpipe, quote_n, quote): New functions.
5673
5674 * src/system.h (__attribute__): New macro.
5675 (O_NDELAY, O_NONBLOCK, O_APPEND): Remove.
5676 (S_ISDOOR): New macro.
5677 (closedir): New macro, if CLOSEDIR_VOID.
5678
5679 * src/rmt.c, src/rtapelib.c (decode_oflag):
5680 O_APPEND might not be defined.
5681
5682 * src/list.c: (read_and, list_archive):
5683 Quote arbitrary strings in diagnostics.
5684 (from_header): Use locale_quoting_style to quote diagnostics.
5685 (print_header, print_for_mkdir): Quote with quotearg, not quote_copy_string.
5686
5687 * src/rmt.h (REM_BIAS): Increase from 128 to (1 << 30).
5688
5689 * src/Makefile.am: Use ## for copyright comments.
5690
5691 * src/extract.c (<quotearg.h>): New include.
5692 (enum permstatus): New enum.
5693 (struct delayed_set_stat): file_name is now at end of buffer, to avoid
5694 two mallocs. New members file_name_len, invert_permissions, permstatus.
5695 (extr_init): Remove hack that silently adjusted newdir_umask.
5696 (set_mode, set_stat): New args invert_permissions, permstatus, typeflag.
5697 Use these args to decide whether and how to set modes.
5698 (set_mode, set_stat, prepare_to_extract, extract_sparse_file, extract_archive):
5699 Don't assume that gettext preserves errno.
5700 (set_stat): Remove arg symlink_flag; subsumed by typeflag.
5701 (delay_set_stat, repair_delayed_set_stat): New functions.
5702 (make_directories): Avoid mkdir where last part of path is "..".
5703 Create a struct delayed_set_stat for each directory made.
5704 (prepare_to_extract): Renamed from unlink_destination, and
5705 return 0 immediately if to_stdout_option; all callers changed.
5706 (maybe_recoverable): New parameter interdir_made.
5707 Add support for --overwrite.
5708 (extract_sparse_file, extract_archive):
5709 Quote arbitrary strings in diagnostics.
5710 (extract_archive): By default, warn about ".." in member names, and skip them.
5711 Don't open files with O_NONBLOCK or O_APPEND.
5712 Open with O_TRUNC only if --overwrite; otherwise, use O_EXCL to avoid
5713 overwriting them. Pass only rwxrwxrwx permissions to `open' and `mkdir',
5714 minus the current umask. Keep track of intermediate directories made,
5715 to avoid looping when making x/../x when x doesn't exist; the
5716 earlier code solved this in a different way that didn't fit well
5717 into the new scheme. Don't extract permissions onto existing
5718 directories unless --overwrite is given. Do not add -wx------
5719 permissions to new directories permanently; just do it temporarily.
5720 Remove no-longer-needed hack with MSDOS and directory time stamps.
5721 (apply_delayed_set_stat): New argument specifies which directories to
5722 fix statuses of. Do not wait until the end of extraction to fix
5723 statuses; instead, fix a directory's status once we exit that directory.
5724 This requires less memory and does the right thing in some cases
5725 where the old method didn't.
5726 (fatal_exit): New function.
5727
5728 * src/incremen.c (<quotearg.h>): New include.
5729 (get_directory_contents, gnu_restore):
5730 Check for readdir and closedir errors.
5731 (get_directory_contents, read_directory_file, gnu_restore):
5732 Quote arbitrary strings in diagnostics.
5733 (get_directory_contents, read_directory_file, write_directory_file):
5734 Don't assume that gettext preserves errno.
5735
5736 * src/create.c (<quotearg.h>): New include.
5737 (start_header): Use `member names' to refer to archive member names, not
5738 `archive names'. Warn about `..' in member names.
5739 (finish_sparse_file, dump_file):
5740 Quote arbitrary strings in diagnostics.
5741 (finish_sparse_file, dump_file):
5742 Don't assume that gettext preserves errno.
5743 (dump_file): Don't use `access' to determine whether a directory is readable;
5744 this isn't reliable if tar is setuid. Use `opendir' instead.
5745 Check for readdir and closedir failures.
5746 Don't dump sockets as if they were fifos; just warn and skip.
5747
5748 * src/delete.c (move_archive):
5749 Don't report fatal error merely because sizes don't fit
5750 into struct mtop values; fall back on lseek instead.
5751 Say `Cannot' uniformly, instead of `Could not' sometimes and `Cannot' others.
5752 Say `reposition' instead of `re-position'.
5753 (delete_archive_members):
5754 Set archive to STDOUT_FILENO before outputting trailing buffer.
5755
5756 * src/compare.c (<quotearg.h>): New include.
5757 (diff_init): Use `Cannot' uniformly, instead of `Could not' sometimes
5758 and `Cannot' others.
5759 (report_difference, diff_archive):
5760 Quote arbitrary strings in diagnostics.
5761 (process_rawdata, diff_sparse_files, get_stat_data, diff_archive, seek_warn):
5762 Don't assume that gettext preserves errno.
5763 (diff_archive): Don't open regular files with O_NONBLOCK.
5764 Preserve access times of files if --atime.
5765
5766 * src/common.h (FATAL_ERROR): Use new fatal_exit function to exit.
5767 (FATAL_ERROR, USAGE): Don't return 0.
5768 (enum old files): New enum.
5769 (old_files_option): New variable, replacing keep_old_files_option and
5770 unlink_first_option.
5771 (apply_delayed_set_stat): Now takes char const * param.
5772 (fatal_exit, contains_dot_dot, chdir_fatal, close_error,
5773 closedir_error, exec_fatal, mkfifo_error, mknod_error, open_error,
5774 open_fatal, open_warn, opendir_error, opendir_warn, read_error,
5775 read_fatal, readdir_error, readdir_warn, readlink_error,
5776 readlink_warn, seek_error, seek_warn, stat_error, stat_warn,
5777 truncate_error, truncate_warn, unlink_error, waitpid_error,
5778 write_error, write_fatal, xfork, xpipe, quote, quote_n): New decls.
5779
5780 * src/buffer.c:
5781 (xclose, xdup2, child_open_for_compress, child_open_for_uncompress,
5782 archive_write_error, archive_read_error, flush_archive, close_archive,
5783 init_volume_number, new_volume):
5784 Don't assume that gettext preserves errno.
5785
5786 (xdup2): Don't report errno if dup returns an unexpected nonnegative value.
5787 (open_archive): Reject multivolume verify attempts a bit earlier.
5788 Rename local variable `access', in case it's defined by system header.
5789
5790 (open_archive, backspace_output): Use `Cannot' uniformly, instead of
5791 `Could not' sometimes and `Cannot' others.
5792
5793 (open_archive, flush_read, flush_archive, close_archive, new_volume):
5794 Quote arbitrary strings in diagnostics.
5795
5796 (read_error): Set archive to STDOUT_FILENO temporarily when writing
5797 archive buffer.
5798
5799 (init_volume_number): Check for input and output errors in volno_file.
5800
5801 (new_volume): Use new fatal_exit function to exit, and new xfork
5802 function to fork.
5803
5804 * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4.
5805
5806 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/c-bs-a.m4.
5807
5808 * doc/tar.texi: Add --overwrite.
5809 --absolute-names rejects ".." in names.
5810
5811 * lib/quotearg.c: Add support for multibyte characters.
5812 (ISGRAPH): Remove.
5813 (ISPRINT): New macro.
5814 (<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H.
5815 (isprint, mbrtowc, mbsinit, mbstate_t): New macros,
5816 defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
5817 (quotearg_buffer_restyled): New function, with most of the old
5818 quotearg_buffer's contents.
5819 Major rewrite to support multibyte characters.
5820 (quotearg_buffer): Now just calls quotearg_buffer_restyled.
5821
5822 * m4/c-bs-a.m4: New file.
5823
5824 * lib/Makefile.am: Use ## for copyright notice.
5825
5826 * scripts/Makefile.am: Use ## on copyright notice.
5827
5828 * doc/Makefile.am:
5829 ($(srcdir)/tar.info, tar.dvi): We now use texinfo 4.0.
5830
5831 1999-12-05 Paul Eggert <eggert@twinsun.com>
5832
5833 * doc/ChangeLog, lib/ChangeLog, scripts/ChangeLog,
5834 src/ChangeLog, tests/ChangeLog: Remove these files.
5835 * ChangeLog.1: New file, incorporating the above files, plus old
5836 ChangeLog entries.
5837 * Makefile.am (EXTRA_DIST): Add ChangeLog.1.
5838
5839 1999-12-05 Dale Worley <worley@ariadne.com>
5840
5841 * src/compare.c (<utime.h>, struct utimbuf): Add.
5842 (diff_archive): Restore access times if --atime.
5843 * doc/tar.texi: Explain that --atime also preserves modification time.
5844
5845 1999-12-04 Gerhard Poul <gpoul@gnu.org>
5846
5847 * ABOUT-NLS: Update to latest version from ftp.gnu.org.
5848 * BACKLOG, TODO: Remove.
5849 * Makefile.am (all-local, BABYL, dist-zoo, id, ID): Remove.
5850 * README: Bring up to date.
5851
5852 1999-12-03 Paul Eggert <eggert@twinsun.com>
5853
5854 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.15.
5855
5856 * src/compare.c (diff_archive):
5857 Do not set errno to EPIPE; we no longer use perror.
5858
5859 * src/create.c (dump_file):
5860 If a parent directory said that a file should be there but it is
5861 absent, diagnose it as being removed in the meantime.
5862 Do not pass meaningless errno to ERROR when reporting that the
5863 file changed as we read it.
5864 Report that a file changed if its ctime changes; this is more
5865 sensitive than mtime+size, and more accurate.
5866
5867 * src/incremen.c (enum children): New type.
5868 (struct directory): Change old char allnew member to new enum children
5869 children member.
5870 All uses changed.
5871 (get_directory_contents): When doing an incremental dump that does
5872 not cross filesystem boundaries, dump the mount points, even though
5873 they are in a different filesystem. This is for convenience when
5874 restoring, and for consistency with non-incremental dumps.
5875 This requires a 3-way flag for keeping track of which children we want,
5876 so we use enum children rather than boolean.
5877
5878 * src/open3.c (modes): Remove.
5879 (open3): Remove unportable assumptions about flag encodings.
5880 Use `stat' instead of `access' for testing file existence,
5881 to avoid problems with setuid programs.
5882
5883 * src/names.c (name_next): If file names are given both in the
5884 command line (e.g. via -C) and in a file (via -T), do not
5885 ignore the command-line names.
5886
5887 * m4/uintmax_t.m4: Backport to autoconf 2.13.
5888
5889 * doc/tar.texi: Clarify getdate authorship.
5890
5891 1999-11-23 Paul Eggert <eggert@twinsun.com>
5892
5893 * lib/Makefile.am (DISTCLEANFILES): New macro.
5894
5895 * configure.in (tar_fnmatch_hin):
5896 Remove; it runs afoul of a bug in autoconf 2.13.
5897 Instead, always link fnmatch.h to some file, even if it's a throwaway.
5898
5899 1999-11-19 Paul Eggert <eggert@twinsun.com>
5900
5901 * m4/largefile.m4: Update serial.
5902
5903 1999-11-18 Paul Eggert <eggert@twinsun.com>
5904
5905 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a bug in
5906 the QNX shell, which doesn't propagate exit status of failed
5907 commands inside shell assignments.
5908
5909 1999-11-07 Paul Eggert <eggert@twinsun.com>
5910
5911 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.14.
5912
5913 * configure.in (AC_PREREQ): Bump to 2.13.
5914 (ALL_LINGUAS): Add pt_BR, ja.
5915 (AC_FUNC_FNMATCH): Remove lib/funmatch.h before invoking, not after.
5916 (tar_cv_path_RSH): Prefer a non-symlink rsh to a symlink one,
5917 for AIX crossbuilds.
5918
5919 * doc/tar.texi: New node create options for --ignore-failed-read.
5920 Remove unused version control symbols.
5921 Modernize texinfo usage.
5922
5923 * src/tar.c (usage): Add examples.
5924
5925 * m4/fnmatch.m4 (AC_FUNC_FNMATCH):
5926 Include fnmatch.h when testing fnmatch.
5927
5928 * src/common.h (collect_and_sort_names): New decl.
5929
5930 * src/list.c (from_header):
5931 Handle 32-bit two's complement negative time stamps
5932 even if the leading octal digit is 2 or 3.
5933
5934 * src/extract.c (set_stat): Remove duplicate code.
5935
5936 * src/create.c (to_chars): Remove trailing newline from warning.
5937 (dump_file): Ignore doors.
5938 (finish_header): Report block numbers with origin 0, not origin 1.
5939
5940 * src/rmt.c: Include getopt.h.
5941 (long_opts): New constant.
5942 (usage): New function.
5943 (main): Implement --help and --version.
5944 Output usage message if arguments are bad.
5945
5946 1999-10-10 Paul Eggert <eggert@twinsun.com>
5947
5948 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.13.
5949
5950 * README: Remove --with-dmalloc.
5951 Add --disable-largefile.
5952 Remove old NeXT dirent problems, or AIX valloc problems.
5953 Remove old union wait advice, and old %lld advice.
5954 Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'.
5955
5956 * doc/tar.texi: Clarify documentation for portable file names.
5957
5958 * configure.in (AM_WITH_DMALLOC): Remove.
5959 (ALL_LINGUAS): Add ja.
5960
5961 * src/tar.c (decode_options):
5962 Invalid dates are now treated as (time_t) -1.
5963 Redo version message to conform to GNU standards.
5964
5965 * src/create.c (dump_file):
5966 Fix typo: last two args to dump_file were interchanged.
5967 * src/update.c (update_archive): Likewise.
5968
5969 * src/common.h (tartime): New decl.
5970
5971 * src/list.c (tartime): Now extern.
5972 (read_and): Invalid headers cause errors, not warnings.
5973
5974 1999-10-03 Paul Eggert <eggert@twinsun.com>
5975
5976 * lib/getdate.y (__attribute__):
5977 Don't use if GCC claims to be before 2.8; this is
5978 needed for OPENStep 4.2 cc. Also, don't use if strict ANSI.
5979
5980 1999-09-25 Paul Eggert <eggert@twinsun.com>
5981
5982 * lib/fnmatch.c, lib/fnmatch.hin: Merge changes from latest glibc.
5983 * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Likewise.
5984
5985 * tests/incremen.sh: Add yet another sleep.
5986
5987 1999-09-24 Paul Eggert <eggert@twinsun.com>
5988
5989 * NEWS: A read error now causes a nonzero exit status.
5990
5991 * src/create.c (to_chars): Fix base-256 output.
5992
5993 * src/buffer.c (write_error):
5994 Read error is an error, not just a warning.
5995
5996 1999-09-24 Paul Eggert <eggert@twinsun.com>
5997
5998 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.12.
5999
6000 * src/tar.c (<time.h>): Include.
6001 (time): Declare if not defined.
6002 (confirm): Don't read past EOF.
6003 (long_options, usage): Add --no-same-owner, --no-same-permissions.
6004 (main): Use clock_gettime if available.
6005
6006 * tests/Makefile.am (TESTS): Add incremen.sh
6007 (INCLUDES): Add -I../lib, for fnmatch.h.
6008
6009 * src/update.c (update_archive):
6010 Remove call to name_expand; had no effect.
6011 Use chdir_do to change into directory.
6012 Use deref_stat instead of stat.
6013 Use add_avoided_name to mark names to be avoided; the old method of
6014 setting a bit with the name caused all descendants of that name to
6015 be avoided, in some circumstances.
6016
6017 * tests/incremen.sh: Remove unnecessary sleeps.
6018
6019 * src/names.c (name_next): Go back to using plain chdir.
6020 (name_gather): Use chdir_arg to keep track of arguments to chdir.
6021 (addname): Likewise.
6022 (name_match): Use chdir_do to act on chdir args.
6023 (merge_sort): Moved here from incremen.c.
6024 (compare_names, add_hierarchy_to_namelist, collect_and_sort_names):
6025 Likewise.
6026 (name_expand): Remove.
6027 (name_from_list): Skip fake names.
6028 Use chdir_do to act on chdir args.
6029 (struct avoided_name): New struct.
6030 (avoided_names): New var.
6031 (add_avoided_name, is_avoided_name): New functions.
6032
6033 * src/system.h (stat, lstat): Define in terms of statx on
6034 STX_HIDDEN && !_LARGE_FILES /* AIX */ hosts.
6035 (UCHAR_MAX): New macro.
6036 (TYPE_MAXIMUM): Cast to arg type, for types narrow than int.
6037
6038 * m4/largefile.m4: Work around GCC 2.95.1 bug with HP-UX 10.20.
6039
6040 * src/incremen.c (<time.h>): Remove include; no longer used.
6041 (time): Remove decl.
6042 (time_now): Remove.
6043 (get_directory_contents): Use deref_stat.
6044 Consider a subdirectory to be all new only if
6045 listed_incremental_option or if it its timestamp is newer than the
6046 cutoff.
6047 (add_hierarchy_to_namelist, merge_sort): Move to names.c.
6048 (read_directory_file): Now extern. Do not set time_now.
6049 (write_directory_file): Renamed from write_dir_file.
6050 Use start_time instead of time_now.
6051 (compare_names, collect_and_sort_names): Move to names.c.
6052
6053 * src/mangle.c (<time.h>): Remove; not used.
6054 (time): Do not declare.
6055
6056 * src/misc.c (chdir_from_initial_wd): Remove.
6057 (deref_stat): New function.
6058 (struct wd): New struct.
6059 (wd, wds, wd_alloc): New variables.
6060 (chdir_arg, chdir_do): New function.
6061
6062 * src/compare.c (get_stat_data): Use deref_stat.
6063
6064 * src/common.h (name_expand): Remove.
6065
6066 * src/list.c (time): Declare if not defined.
6067 (base_64_digits): Moved here from create.c.
6068 (base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char)
6069 -1.
6070 (read_and): Don't get time from header unless we need it now;
6071 as getting time can cause duplicate diagnostics if bogus.
6072 Remove "Hmm, " from diagnostic.
6073 Use "Skipping to next header" uniformly.
6074 (from_header): Renamed from from_chars. All uses changed.
6075 Allow different forms for unportable 2's complement numbers.
6076 Don't check for extended forms when parsing checksums.
6077 Parse base-256 output.
6078 (gid_from_header): Renamed from gid_from_chars. All uses changed.
6079 (major_from_header): Renamed from major_from_chars. All uses changed.
6080 (minor_from_header): Renamed from minor_from_chars. All uses changed.
6081 (mode_from_header): Renamed from mode_from_chars. All uses changed.
6082 (off_from_header): Renamed from off_from_chars. All uses changed.
6083 (size_from_header): Renamed from size_from_chars. All uses changed.
6084 (time_from_header): Renamed from time_from_chars. All uses changed.
6085 Warn about future timestamps.
6086 (uid_from_header): Renamed from uid_from_chars. All uses changed.
6087 (uintmax_from_header): Renamed from uintmax_from_chars.
6088 All uses changed.
6089 (tartime): New function, incorporating isotime.
6090 (isotime): Delete.
6091 (print_header): Use tartime.
6092
6093 * src/create.c (to_chars): Fix typo in decl.
6094 Don't assign through char const *.
6095 Rename name_expand back to collect_and_sort_names.
6096
6097 * src/extract.c (<time.h>): No need to include.
6098 (time): No need to declare.
6099 (now): Remove variable.
6100 (extr_init): Don't initialize `now'.
6101 Increment same_permissions_option and same_owner_option if we_are_root
6102 is nonzero; this supports the new --no-same-owner option.
6103 (set_stat): Use start_time instead of `now'.
6104
6105 * src/create.c (struct link): Remove unused linkcount member.
6106 (base_64_digits): Move to list.c.
6107 (base_8_digits): Remove.
6108 (to_octal): New function, with some of old contents of to_base.
6109 (to_base): Remove.
6110 (to_base256): New function.
6111 (to_chars): Use base 256, not base 64, for huge values.
6112 (mode_to_chars): Don't use two's complement in GNU format or POSIX
6113 format.
6114 (dump_file): Interchange last two arguments. If TOP_LEVEL is negative,
6115 it means we have an incremental dump where we don't know whether this
6116 is a top-level call.
6117 Use deref_stat instead of statx / stat / lstat.
6118 Cast result of alloca.
6119 Check for dates if 0 < top_level, not if listed_incremental_option.
6120 Move multiple-link check after directory check.
6121 Do not dump avoided names.
6122 Dump hard links to symbolic names as links, not as separate
6123 symbolic links.
6124 start_header cannot return a null pointer, so don't test for it.
6125 Likewise for find_next_block.
6126
6127 * src/buffer.c, src/common.h (<human.h>): Include.
6128 (read_error): Read error is an error, not just a warning.
6129 (print_total_written): Also print human-readable byte count, and
6130 bytes/s.
6131 (open_archive, flush_write): Use start_time, not current time.
6132 (flush_read): Report about garbage bytes ignored at end of archive,
6133 but act on non-garbage bytes (instead of ignoring them).
6134 (new_volume): Use WARN for warnings.
6135
6136 * doc/Makefile.am:
6137 ($(srcdir)/tar.info): Add -I$(srcdir) so that subdir builds work.
6138
6139 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/fnmatch.m4.
6140
6141 * m4/Makefile.am (EXTRA_DIST): Add fnmatch.m4.
6142
6143 * lib/Makefile.am (noinst_HEADERS):
6144 Rename fnmatch.h to fnmatch.hin; add human.h.
6145 (libtar_a_SOURCES): Add human.c, xstrtoul.c.
6146 (INCLUDES): Remove -I.. -I$(srcdir) -- automake adds this for us.
6147
6148 * src/Makefile.am (rmt_LDADD, tar_LDADD): New macros.
6149
6150 * lib/fnmatch.c (strchrnul):
6151 Define to __strchrnul if _LIBC, to our own replacement otherwise.
6152 Do not define if !_LIBC and if it already exists.
6153 (internal_fnmatch): Use it.
6154
6155 * configure.in (tar_LDADD): New variable, used only when linking tar.
6156 (rmt_LDADD): Similarly, for rmt.
6157 (AC_FUNC_FNMATCH): Link fnnmatch.hin to fnmatch.h if we're using our
6158 fnmatch.c; otherwise, use the system fnmatch.h.
6159
6160 * doc/tar.texi: Add --no-same-owner, --no-same-permissions.
6161 Modernize sample backup script.
6162
6163 * THANKS: Martin Goik's email address has changed.
6164
6165 * m4/fnmatch.m4: New file.
6166
6167 1999-09-03 Paul Eggert <eggert@twinsun.com>
6168
6169 * lib/lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3.
6170 Use EINVAL instead.
6171
6172 1999-08-29 Paul Eggert <eggert@twinsun.com>
6173
6174 * lib/getdate.y (get_date):
6175 Rename outermost local `probe' to `quarter'.
6176 Rename latter local `tm' to probe_tm.
6177 From: Jim Meyering <meyering@ascend.com>
6178 Message-ID: <uryn1vafyyc.fsf@ixi.eng.ascend.com>
6179
6180 1999-08-28 Paul Eggert <eggert@twinsun.com>
6181
6182 * lib/getdate.y (PC): New macro; use it when possible.
6183 (number): Handle `Nov 11 1996' example correctly.
6184 See Risks Digest 20.55 (1999-08-27)
6185 http://catless.ncl.ac.uk/Risks/20.55.html#subj18
6186
6187 1999-08-23 Paul Eggert <eggert@twinsun.com>
6188
6189 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.11.
6190
6191 Remove minor cases of lint from many source files: this includes
6192 unnecessary casts, uses of NULL, etc.
6193
6194 * configure.in (AC_PROG_YACC): Remove.
6195 (YACC): Always use bison.
6196 (AC_STRUCT_TIMEZONE): Add.
6197 (AC_REPLACE_FUNCS): Add strcasecmp, strncasecmp.
6198
6199 * doc/tar.texi: --bzip2 is now -I. Remove obsolete time zone info.
6200 Fix spelling.
6201
6202 * lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c, strncasecmp.c.
6203 ($(srcdir)/getdate.c): Rename y.tab.c to getdate.c only if successful.
6204
6205 * lib/strcasecmp.c, lib/strncasecmp.c: New files.
6206
6207 * src/common.h (merge_sort): Remove decl; no longer exported.
6208
6209 * src/system.h (voidstar): Remove.
6210 (memcpy, memcmp): Cast args.
6211 ("xalloc.h"): Add include.
6212 (xmalloc, xrealloc): Remove decl.
6213
6214 * src/mangle.c (time): Do not declare if defined.
6215 (first_mangle, mangled_num): Remove.
6216
6217 * src/list.c (from_chars): Report out-of-range values more precisely.
6218 (off_from_chars): Do not allow negative offsets.
6219 (uid_from_chars): Allow negative uids.
6220
6221 * src/create.c (linklist): Now static.
6222 (to_chars): Fix wording of message to match from_chars.
6223
6224 * src/misc.c (merge_sort): Move to incremen.c.
6225 * src/incremen.c (merge_sort): Move here from misc.c; now static.
6226 It's too painful to make it both generic and portable.
6227 (read_directory_file): "timestamp" -> "time stamp" in messages.
6228
6229 * src/tar.c (long_options, usage, main): -y is now -I (for --bzip).
6230 (usage): Fix misspelling.
6231 (OPTION_STRING): -y is now -I.
6232 (decode_options): Use -1, not EOF, for getopt_long result.
6233 Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX.
6234 Handle operands after any "--" argument.
6235 (main): Report any output errors.
6236
6237 * src/rmt.c (main): status is ssize_t, not long.
6238
6239 * src/names.c (name_gather): Handle trailing -C option correctly.
6240 (addname): use memcpy, not strncpy, to copy a string of known length.
6241 (name_match): Handle trailing -C option correctly.
6242 Propagate -C option to following files.
6243 (name_match, name_scan): Remove redundant matching code.
6244
6245 * src/buffer.c (open_archive): Use American spelling in diagnostic.
6246
6247 * lib/getdate.y: Major rewrite. Add copyright notice.
6248 (<stdio.h>): Include only if testing.
6249 (ISUPPER): Remove.
6250 (ISLOWER): New macro.
6251 (<string.h>): Include if HAVE_STRING_H, not USG.
6252 (bcopy): Remove.
6253 (yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
6254 bison.
6255 (EPOCH_YEAR): Renamed from EPOCH.
6256 (table): Renamed from TABLE.
6257 (meridian): Now an anonymous enum.
6258 (struct parser_control): New type.
6259 (YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
6260 (yyInput, ..., yyRelYear): Migrated into struct parser_control.
6261 (%pure_parser): Added, so that the parser is pure.
6262 (%union): Removed; the type is now just plain int.
6263 All %type directives removed.
6264 (tLOCAL_ZONE): New %token.
6265 (month_day_table): Renamed from MonthDayTable.
6266 (gmtime, localtime, mktime, time): Declare only if not defined.
6267 (meridian_table): New table.
6268 (dst_table): New table.
6269 (units_table): renamed from UnitsTable.
6270 (relative_time_table): Renamed from OtherTable.
6271 (time_zone_table): Renamed from TimezoneTable. Modernized.
6272 (military_table): Renamed from MilitaryTable.
6273 (to_hour): Renamed from ToHour.
6274 (to_year): Renamed from ToYear.
6275 (lookup_zone): New function.
6276 (LookupWord): Renamed from lookup_word. Use lookup_zone for time
6277 zones.
6278 (yylex): Now reentrant. All callers changed.
6279 (get_date): Add support for local time zone abbreviations.
6280 Make it reentrant.
6281
6282 1999-08-20 Paul Eggert <eggert@twinsun.com>
6283
6284 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.10.
6285
6286 * src/create.c (to_chars): Generate GNU base-64 representation
6287 if we are generating an old or new GNU format tar file for a
6288 number that can't be represented with the POSIX format.
6289
6290 * configure.in (AC_CHECK_FUNCS): Add fchdir.
6291 (AM_FUNC_GETLINE): Add.
6292 (LIBOBJS): Add getline.o to workaround comment.
6293 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/getline.m4.
6294 * m4/Makefile.am (EXTRA_DIST): Add getline.m4.
6295 * lib/Makefile.am (noinst_HEADERS): Add getline.h, save-cwd.h.
6296 (libtar_a_SOURCES): Add save-cwd.c, xgetcwd.c.
6297 * lib/getline.c, lib/getline.h, lib/save-cwd.c,
6298 lib/save-cwd.h, m4/getline.m4: New files.
6299
6300 * src/misc.c (<save-cwd.h>): Include.
6301 (chdir_from_initial_wd): New function.
6302
6303 * src/names.c (name_next): Use chdir_from_initial_wd, not chdir.
6304 (name_gather): Handle `-C x -C y' correctly.
6305 Do not rely on addname to handle -C.
6306 (addname): New CHANGE_DIR parameter. All callers changed.
6307 Remove ugly calls to getcwd; no longer needed.
6308 (name_match, name_from_list): Use chdir_from_initial_wd, not chdir.
6309
6310 * src/incremen.c (listed_incremental_stream): New var.
6311 (read_directory_file): Remove arbitrary limits on file name length.
6312 Do not attempt to get the working directory; we can bypass this
6313 on fchdir hosts. Open the listed_incremental_option file for both
6314 read and write instead of opening it twice. Check for I/O errors
6315 when doing I/O to this file. Check for invalid data in the file,
6316 and report line numbers of invalid data.
6317 (write_dir_file): Likewise.
6318 (collect_and_sort_names): Use chdir_from_initial_wd, not chdir.
6319 Do not invoke write_dir_file; that's our caller's responsibility.
6320
6321 * src/list.c (max): New macro.
6322 (isotime): Now takes time_t, not time_t *. Report the decimal values
6323 of times that can't be broken down.
6324 (print_header): Don't assume that major and minor device numbers can
6325 fit into uintmax_t.
6326
6327 * src/common.h (struct name): change_dir is now char const *.
6328 (write_directory_file): Remove unused decl.
6329 (STRINGIFY_BIGINT): Assume b always points to UINTMAX_STRSIZE_BOUND
6330 chars; the old `sizeof (b)' broke when b was a pointer not an array.
6331 (chdir_from_initial_wd): New decl.
6332 (addname): New 2nd arg.
6333
6334 * THANKS: Torsten Lull -> Catrin Urbanneck
6335
6336 1999-08-18 Paul Eggert <eggert@twinsun.com>
6337
6338 * configure.in (HAVE_GETHOSTENT, HAVE_SETSOCKOPT):
6339 Don't depend on ac_cv_func variables.
6340 From Albert Chin-A-Young <china@thewrittenword.com>.
6341
6342 1999-08-18 Paul Eggert <eggert@twinsun.com>
6343
6344 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.9
6345
6346 * m4/signedchar.m4: New file.
6347 * configure.in (pe_AC_TYPE_SIGNED_CHAR): Add.
6348 * src/system.h (signed_char): New macro.
6349 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/signedchar.m4.
6350 * m4/Makefile.am (EXTRA_DIST): Add signedchar.m4.
6351
6352 * src/create.c (write_eot): Write at least two zero blocks.
6353
6354 * src/extract.c (extract_archive): Fix sparse array bug:
6355 we did not find end of array correctly.
6356
6357 * src/compare.c: (fill_in_sparse_array, diff_sparse_files):
6358 Don't assume find_next_block yields nonnull.
6359 * src/extract.c (extract_sparse_file, extract_archive): Likewise.
6360 * src/list.c (skip_extended_headers): Likewise.
6361
6362 * src/list.c (read_and, list_archive): Simplify code.
6363 (read_header): Fix computation of signed checksums on machines where
6364 char is unsigned.
6365 Do not consider a block to be zero unless all its bytes are zero,
6366 even the checksum bytes. Do not attempt to parse the checksum of
6367 a zero block. Fix memory leak with long names and links.
6368 (from_chars): Accommodate a buggy tar that outputs leading NUL
6369 if the previous field overflows.
6370
6371 * src/misc.c (quote_copy_string): Generate \177 for '\177', not
6372 \?, for portability to non-ASCII hosts.
6373
6374 1999-08-16 Paul Eggert <eggert@twinsun.com>
6375
6376 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.8.
6377
6378 * src/extract.c (make_directories): Do not chown intermediate
6379 directories, even if we are root.
6380
6381 * src/list.c (read_header): Fix bugs when interpreting
6382 POSIX-compliant headers that do not contain null bytes in the
6383 header or link names.
6384
6385 1999-08-14 Paul Eggert <eggert@twinsun.com>
6386
6387 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.7.
6388
6389 * configure.in (AC_CHECK_HEADERS): Remove sys/wait.h.
6390 (AC_HEADER_SYS_WAIT): Add.
6391 (AC_REPLACE_FUNCS): Add waitpid.
6392 (tar_cv_header_union_wait, HAVE_UNION_WAIT): Remove.
6393 * lib/waitpid.c: New file.
6394 * lib/Makefile.am (EXTRA_DIST): Add waitpid.c.
6395 * src/system.h (WCOREDUMP): Remove; no longer used.
6396 (WIFSTOPPED): Likewise.
6397 (WEXITSTATUS, WIFSIGNALED): Default to Solaris 7 versions.
6398 * src/buffer.c (child_open_for_compress): Undo previous change.
6399 (close_archive): Use waitpid, POSIX-style, instead of old BSD style.
6400 (new_volume): Likewise.
6401
6402 * src/buffer.c, src/extract.c, src/incremen.c (time):
6403 Don't declare if defined.
6404 * src/extract.c (extr_init): Remove unneeded cast around 0 arg to time.
6405 * src/incremen.c (read_directory_file):
6406 Invoke `time' the same way everyone else does.
6407 Check validity of --listed-incremental file contents a bit better.
6408 Do not worry about --after-date-option; tar.c now checks this.
6409 * src/list.c (isotime): Report ??? if localtime returns null.
6410 Don't assume years fit into four digits.
6411 Don't append trailing newline.
6412 (print_header): Report ??? if localtime returns null;
6413 Don't assume years fit into four digits.
6414
6415 * src/compare.c (diff_archive): Do not fall back on absolute name
6416 when --absolute-names is not specified.
6417
6418 * src/create.c (start_header):
6419 Include text of ignored filesystem prefix in warning.
6420 (create_archive): Check for excluded names when doing incremental
6421 pass through directory.
6422 (dump_file): Do not dump old files explicitly given on command line
6423 when using --listed-incremental. Do not strip ./ prefix from names.
6424
6425 * src/tar.c: -g now implies after_date_option = 1.
6426 -g and -N are now incompatible options.
6427
6428 * doc/tar.texi: Explain --exclude better. Don't strip leading `./'.
6429
6430 1999-08-11 Jeff Dairiki <dairiki@dairiki.org>
6431
6432 * src/list.c (read_header): Don't parse OLDGNU_FORMAT
6433 incremental headers as POSIX prefixes.
6434
6435 1999-08-11 Paul Eggert <eggert@twinsun.com>
6436
6437 * NEWS, configure.in: Version 1.13.6.
6438
6439 * configure.in (ALL_LINGUAS): Add pt_BR.
6440 * po/pt_BR.po: New file.
6441
6442 * doc/Makefile.am ($(srcdir)/tar.info, $(srcdir)/header.texi):
6443 Renamed from tar.info and header.texi; adjust actions so that
6444 they work in other directories.
6445
6446 * doc/tar.texi: Add -y and --bzip2.
6447 Patterns containing / now exclude only file names whose prefix match.
6448
6449 * lib/exclude.h (excluded_filename): New option parameter.
6450 (add_exclude_file): New ADD_FUNC parameter.
6451 (excluded_pathname): Remove decl.
6452 * lib/exclude.c (_GNU_SOURCE):
6453 Remove; no longer needed since we don't use FNM_ macros.
6454 (excluded_filename): Renamed from excluded_filename_opts.
6455 (excluded_filename, excluded_pathname): Remove.
6456 (add_exclude_file): New ADD_FUNC parameter.
6457
6458 * po/POTFILES.in: Add lib/quotearg.c.
6459
6460 * src/buffer.c (_GNU_SOURCE): Define.
6461 (<fnmatch.h>): Include unconditionally.
6462 (child_open_for_compress): Dup after closing, to avoid possible file
6463 descriptor exhaustion.
6464 (flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
6465 (flush_read): Likewise.
6466
6467 * src/common.h (LG_8, LG_64): New macros.
6468 (excluded_with_slash, excluded_without_slash): New vars.
6469 (excluded): Remove.
6470 (base_64_digits): New decl.
6471 (gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars,
6472 off_to_chars, size_to_chars, time_to_chars, uid_to_chars,
6473 uintmax_to_chars,
6474 GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS,
6475 OFF_TO_CHARS, SIZE_TO_CHARS, TIME_TO_CHARS, UID_TO_CHARS,
6476 UINTMAX_TO_CHARS):
6477 Renamed from gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
6478 off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
6479 GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, OFF_TO_OCT,
6480 SIZE_TO_OCT, TIME_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT,
6481 respectively. All definitions and uses changed.
6482 (excluded_name): New decl.
6483
6484 * src/compare.c (diff_archive):
6485 Open files with O_NONBLOCK instead of O_NDELAY.
6486
6487 * src/create.c (base_64_digits): New constant.
6488 (base_8_digits): New macro.
6489 (MAX_VAL_WITH_DIGITS): New macro.
6490 (to_base): First half of old to_oct. Support base 64 too.
6491 (to_chars): Other half of old to_oct, for 64-bit support.
6492 (GID_NOBODY, UID_NOBODY): Don't define if the headers don't.
6493 (gid_substitute, uid_substitute): Look up names dynamically if
6494 GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails.
6495 (mode_to_chars): Renamed from mode_to_oct.
6496 Support negative values in all the _to_chars functions.
6497 (start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
6498 Abort if archive format is DEFAULT_FORMAT when it shouldn't be.
6499 (dump_file): Inspect entire pathname, not just new file name
6500 component, when deciding whether to exclude it.
6501
6502 * src/extract.c (extract_archive):
6503 Open files with O_NONBLOCK instead of O_NDELAY.
6504
6505 * src/incremen.c (get_directory_contents):
6506 Inspect entire pathname, not just new file name
6507 component, when deciding whether to exclude it.
6508
6509 * src/list.c (<fnmatch.h>): Do not include.
6510 (from_chars): Renamed from from_oct. New parameter specifying
6511 the negative of the minimum allowed value. Support negative
6512 and base-64 values.
6513 (base64_map): New var.
6514 (base64_init): New function.
6515 (print_header): Output numeric uids and gids if numeric_owner_option.
6516
6517 * src/misc.c (quote_copy_string): Use LG_8 instead of constants.
6518
6519 * src/names.c (_GNU_SOURCE): Define.
6520 (<fnmatch.h>): Include unconditionally.
6521 (excluded_name): New function, taking over duties of excluded_pathname.
6522 All uses changed.
6523
6524 * src/rmt.c (decode_oflag): New function.
6525 (main): Use it to support symbolic open flags.
6526
6527 * src/rtapelib.c (encode_oflag): New function.
6528 (rmt_open__): Do not allow newlines in the path.
6529 Propagate errno correctly.
6530 Decode symbolic open flags, if present.
6531
6532 * src/system.h (FILESYSTEM_PREFIX_LEN, ISSLASH, O_ACCMODE, O_NONBLOCK):
6533 New macros.
6534
6535 * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
6536 New -y or --bzip2 option.
6537 (add_filtered_exclude): New function.
6538 (decode_options): Put excluded patterns with / into
6539 excluded_with_slash, and without / into excluded_without_slash.
6540 Compare newer_mtime_option to its new initial value
6541 TYPE_MINIMUM (time_t) when deciding whether more than one
6542 threshold date was specified.
6543
6544 1999-07-20 Paul Eggert <eggert@twinsun.com>
6545
6546 * NEWS, configure.in: Version 1.13.5.
6547
6548 * src/common.h (FATAL_ERROR): Invoke apply_delayed_set_stat
6549 before exiting.
6550 * src/buffer.c (new_volume): Likewise.
6551 * src/incremen.c (read_directory_file): Likewise.
6552 * src/tar.c (decode_options):
6553 ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0,
6554 for consistency.
6555
6556 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.4.
6557 * configure.in (AC_CHECK_FUNCS): Add lstat, readlink, symlink.
6558
6559 * src/system.h (lstat): Define only if !HAVE_LSTAT && !defined lstat.
6560 (S_ISMPB, S_ISMPC, S_ISNWK): Remove unused macros.
6561 (S_ISBLK, S_ISCHR, S_ISCTG, S_ISFIFO, S_ISLNK, S_ISSOCK):
6562 Define to 0 if the corresponding S_IF* macro is not defined.
6563 (mkfifo): Do not define if already defined, or if S_IFIFO
6564 is not defined.
6565
6566 * src/compare.c (diff_archive): Use HAVE_READLINK, not
6567 S_ISLNK, to determine whether to invoke readlink.
6568 * src/create.c (dump_file): Likewise.
6569
6570 * src/extract.c (set_mode):
6571 Do not chmod unless we are root or the -p option was given;
6572 this matches historical practice.
6573 (unlink_destination): New function, which checks for unlink failures.
6574 (maybe_recoverable): Stay quiet if -U.
6575 (extract_archive): Use O_EXCL if unlink_first_option.
6576 Report unlink failures.
6577 Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists.
6578 Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether
6579 mkfifo exists.
6580
6581 * src/incremen.c (get_directory_contents): Depend on
6582 S_ISHIDDEN, not AIX, to determine whether to invoke S_ISHIDDEN.
6583
6584 * src/list.c: Remove S_IS* ifdefs.
6585 * src/misc.c (maybe_backup_file): Likewise.
6586
6587 * src/misc.c (maybe_backup_file):
6588 "Virtual memory exhausted" -> "Memory exhausted",
6589 to conform to the other places this message is issued.
6590
6591 * src/mangle.c (extract_mangle):
6592 Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK.
6593
6594 * src/rtapelib.c (rmt_open__):
6595 Remove typo that caused us to omit the first char
6596 of the basename.
6597
6598 1999-07-16 Paul Eggert <eggert@twinsun.com>
6599
6600 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.13.3.
6601
6602 * doc/tar.texi: A path name is excluded if any of its file name
6603 components matches an excluded pattern, even if the path name was
6604 specified on the command line.
6605 * src/create.c (create_archive): Likewise.
6606 * src/list.c (read_and): Likewise.
6607 * src/update.c (update_archive): Likewise.
6608 * lib/exclude.h (excluded_pathname): New decl.
6609 * lib/exclude.c (_GNU_SOURCE): Define.
6610 (FILESYSTEM_PREFIX_LEN, ISSLASH): New macros.
6611 (excluded_filename_opts): New function.
6612 (excluded_pathname): New function.
6613
6614 * lib/Makefile.am (EXTRA_DIST):
6615 xstrtol.c moved here from libtar_a_SOURCES.
6616 (libtar_a_SOURCES): Move xstrtol.c to EXTRA_DIST.
6617 Remove xstrtoul.c; no longer needed.
6618 * lib/xstrtol.c: Remove.
6619
6620 * src/tar.c (decode_options):
6621 Set newer_time_option to TYPE_MINIMUM, so that
6622 negative timestamps are handled correctly.
6623 Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
6624 uniformity (and so that we don't need to have the other fns).
6625 (main): Remove call to init_total_written; no longer needed.
6626
6627 * configure.in (AC_CHECK_SIZEOF): Remove no-longer-needed
6628 checks for unsigned long and long long.
6629 * src/arith.c: Remove.
6630 * src/Makefile.am (tar_SOURCES): Remove arith.c.
6631 * po/POTFILES.in: Remove src/arith.c.
6632 * src/arith.h: Use double, to simplify configuration gotchas.
6633 (tarlong): Now double.
6634 (TARLONG_FORMAT): New macro.
6635 (BITS_PER_BYTE, BITS_PER_TARLONG, SUPERDIGIT, BITS_PER_SUPERDIGIT,
6636 LONGS_PER_TARLONG, SIZEOF_TARLONG, struct tarlong,
6637 zerop_tarlong_helper, lessp_tarlong_helper, clear_tarlong_helper,
6638 add_to_tarlong_helper, mult_tarlong_helper, print_tarlong_helper,
6639 zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong,
6640 mult_tarlong, print_tarlong): Remove. All callers replaced with
6641 arithmetic ops.
6642
6643 * src/common.h (init_total_written): Remove decl.
6644
6645 * src/buffer.c (total_written):
6646 Remove; replaced with prev_written + bytes_written.
6647 (prev_written): New var.
6648 (init_total_written): Remove.
6649 (print_total_written): Use TARLONG_FORMAT instead of print_tarlong.
6650
6651 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG):
6652 Make sure that we can shift, multiply
6653 and divide unsigned long long values; Ultrix cc can't do it.
6654
6655 * lib/modechange.c (mode_compile): Use uintmax_t, not unsigned long.
6656 Check for any unknown bits, not just unknown bits left of the leftmost
6657 known bit.
6658
6659 * lib/quotearg.c (quotearg_buffer):
6660 Don't quote spaces if C quoting style.
6661 * src/list.c (from_oct):
6662 Use C quoting style for error; omit trailing NULs.
6663
6664 1999-07-14 Paul Eggert <eggert@twinsun.com>
6665
6666 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.2.
6667
6668 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
6669 <inttypes.h> defines strtoumax as a macro (and not as a function).
6670 HP-UX 10.20 does this.
6671
6672 * src/tar.c (usage): tar-bugs@gnu.org -> bug-tar@gnu.org
6673 * PORTS, README, TODO, doc/tar.texi: Likewise.
6674
6675 1999-07-12 Paul Eggert <eggert@twinsun.com>
6676
6677 * configure.in (AM_INIT_AUTOMAKE): Version 1.13.1.
6678 (LIBOBJS): Add mktime.o to automake 1.4 bug workaround.
6679
6680 * src/list.c (decode_header):
6681 Do not assume that S_IFBLK and S_IFCHR are defined.
6682
6683 * src/create.c (start_header): Do not assume S_IFMT is defined.
6684 (dump_file): Remove unnecessary check for screwy apollo lossage.
6685 Do not assume S_IFBLK and S_IFCHR are defined.
6686
6687 * src/extract.c (extract_archive):
6688 Test whether S_IFCHR and S_IFBLK are nonzero,
6689 not whether they are defined, for consistency with other tests.
6690
6691 * src/buffer.c (is_regular_file):
6692 Don't succeed on files that we can't access due to
6693 permissions problems.
6694 (open_archive): Fix wording on fatal error message.
6695 Don't bother to stat /dev/null if the archive is not a character
6696 special device.
6697
6698 * src/compare.c (process_rawdata, diff_sparse_files, diff_archive):
6699 Report an error, not a warning, for I/O errors.
6700 (process_rawdata, process_dumpdir, diff_sparse_files):
6701 Change ungrammatical "Data differs" to "Contents differ".
6702 (get_stat_data): Find hidden files on AIX.
6703 Accept file name as argument; all uses changed.
6704 (get_stat_data, diff_archive): Use system error message for
6705 nonexistent files rather than rolling our own.
6706 (diff_archive): Unknown file types are errors, not warnings.
6707 Normalize spelling of message to "File type differs".
6708 Use get_stat_data to get link status, for consistency.
6709 Do not inspect st_rdev for fifos.
6710 Do not assume st_mode values contain only file types and mode bits.
6711 Check for mode changes and device number changes separately.
6712
6713 * src/update.c (append_file):
6714 Open the file before statting it, to avoid a race.
6715 Complain about file shrinkage only when we reach EOF.
6716
6717 1999-07-08 Paul Eggert <eggert@twinsun.com>
6718
6719 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13 released.
6720
6721 * configure.in (AC_EXEEXT): Add.
6722
6723 * lib/Makefile.am (noinst_HEADERS):
6724 Add basename.h, exclude.h. Remove full-write.h.
6725 (libtar_a_SOURCES): Add exclude.c.
6726
6727 * lib/basename.h, lib/exclude.c, lib/exclude.h, lib/safe-read.h:
6728 New files.
6729 * lib/full-write.c: Include safe-read.h instead of full-write.h.
6730 * lib/safe-read.h (safe_read): New decl.
6731 * src/rmt.c: Include safe-read.h.
6732 * src/rtapelib.c: Include basename.h, save-read.h.
6733 (rmt_open__): Use base_name to compute base name.
6734
6735 * src/common.h:
6736 Include basename.h, exclude.h; don't include full-write.h.
6737 (exclude_option): Remove decl.
6738 (excluded): New decl.
6739 (add_exclude, add_exclude_file, check_exclude): Remove decls.
6740
6741 * src/list.c (read_and):
6742 Use excluded_filename instead of check_exclude.
6743 Check base name of incoming file name, not entire file name, when
6744 deciding whether to exclude it.
6745
6746 * src/create.c (finish_sparse_file):
6747 Use excluded_filename instead of check_exclude.
6748 Don't bother to stat excluded file names.
6749 * src/incremen.c (get_directory_contents): Likewise.
6750
6751 * src/names.c (exclude_pool, exclude_pool_size,
6752 allocated_exclude_pool_size, simple_exclude_array,
6753 simple_excludes, allocated_simple_excludes,
6754 pattern_exclude_array, pattern_excludes,
6755 allocated_pattern_excludes, add_exclude, add_exclude_file,
6756 check_exclude):
6757 Remove; now done in ../lib/exclude.c.
6758
6759 * src/tar.c (decode_options): Initialize `excluded'.
6760 Use new add_exclude_file and add_exclude functions.
6761
6762 1999-07-05 Paul Eggert <eggert@twinsun.com>
6763
6764 * m4/gettext.m4: Use changequote rather than [[ ]].
6765
6766 * lib/safe-read.c: Renamed from lib/full-read.c.
6767 (safe_read): Renamed from full_read. All uses changed.
6768 * lib/safe-read.h, lib/full-write.h: New files.
6769 * lib/Makefile.am (noinst_HEADERS): Add full-write.h, safe-read.h.
6770 (libtar_a_SOURCES): Rename full-read.c to safe-read.c.
6771 * lib/full-write.c: Include full-write.h.
6772 * src/common.h: Include full-write.h, safe-read.h.
6773 * src/system.h: (full_read, full_write): Remove decls.
6774
6775 * src/Makefile.am (datadir): New var; needed for Solaris gettext.
6776
6777 * src/system.h (bindtextdomain, textdomain): undef before
6778 defining, to avoid preprocessor warnings with --disable-nls
6779 on hosts whose locale.h includes libintl.h.
6780
6781 * lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol
6782 expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
6783 (strtol, strtoul): New decls (for pre-ANSI hosts), to replace
6784 the above decl.
6785
6786 1999-07-02 Paul Eggert <eggert@twinsun.com>
6787
6788 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/mktime.m4.
6789 * m4/mktime.m4: New file.
6790 * m4/Makefile.am.in, m4/README: Remove these files.
6791 * m4/Makefile.am (EXTRA_DIST): Add mktime.m4;
6792 remove README, Makefile.am.in.
6793 (Makefile.am): Remove rule; it didn't work in BSD/OS 4.0.
6794 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Invoke AC_FUNC_MKTIME,
6795 not AM_FUNC_MKTIME.
6796
6797 * src/tar.c: Include signal.h.
6798 (SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not.
6799 (main): Ensure SIGCHLD is not ignored.
6800
6801 (BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION,
6802 MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION,
6803 OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION,
6804 RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION,
6805 VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES,
6806 OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR,
6807 OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH,
6808 OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so
6809 they don't overlap with char codes. Use an enum instead of a lot
6810 of #defines.
6811
6812 * src/system.h (ISASCII): Remove.
6813 (CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID,
6814 S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP,
6815 S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW,
6816 MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX,
6817 LONG_MAX): New macros.
6818
6819 * src/incremen.c (ISDIGIT, ISSPACE): Remove; now in system.h.
6820 (read_directory_file): Cast ISSPACE arg to unsigned char.
6821 * src/misc.c (ISPRINT): Remove; now in system.h.
6822 (remove_any_file): Add brackets to pacify gcc -Wall.
6823 * src/list.c: Don't include <ctype.h>; system.h already does this.
6824 (ISODIGIT, ISSPACE): Remove; now in system.h.
6825 (decode_header): No need to AND mode with 07777; MODE_FROM_OCT
6826 does this now.
6827 (from_oct): Cast ISSPACE arg to unsigned char.
6828
6829 * src/create.c (mode_to_oct): Translate modes from internal to
6830 external form.
6831 * src/list.c (mode_from_oct): Translate modes from external to
6832 internal form. Do not complain about unrecognized mode bits.
6833 * src/common.h (TSUID, TSGID, TSVTX, TUREAD, TUWRITE, TUEXEC,
6834 TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs.
6835
6836 * src/extract.c: (extr_init, make_directories, extract_archive):
6837 Do not assume mode bits have traditional Unix values.
6838 * src/list.c (decode_mode): Likewise.
6839 * src/create.c (start_header, dump_file): Likewise.
6840 * src/buffer.c (child_open_for_compress,
6841 child_open_for_uncompress, open_archive, (close_archive): Likewise.
6842 * src/compare.c (diff_archive): Likewise.
6843
6844 * src/extract.c (set_mode): Use %04 not %0.4 format.
6845 (extract_sparse_file): Do not use data_block uninitialized.
6846 Check for lseek failures.
6847
6848 * src/rtapelib.c (rmt_lseek__):
6849 Convert lseek whence values to portable integers on the wire.
6850 * src/rmt.c (main): Likewise. Check for whence values out of range.
6851
6852 * src/create.c (finish_sparse_file): Use lseek whence macros
6853 instead of integers.
6854 * src/buffer.c (backspace_output): Likewise.
6855 * src/compare.c (diff_archive, verify_volume): Likewise.
6856 * src/delete.c (move_archive): Likewise.
6857 * src/extract.c (extract_sparse_file): Likewise.
6858
6859 * src/create.c (dump_file): Do not invoke finish_sparse_file
6860 on a negative file descriptor.
6861
6862 * src/buffer.c: Add braces to pacify gcc -Wall.
6863
6864 * src/compare.c (diff_sparse_files): Report lseek errors.
6865
6866 * configure.in (ALL_LINGUAS): Add cs, es, ru.
6867
6868 * PORTS, TODO: gnu.ai.mit.edu -> gnu.org
6869
6870 * src/arith.c, src/buffer.c (new_volume): Don't put ^G in
6871 message to be internationalized; \a doesn't work with msgfmt.
6872
6873 * src/tar.c (long_options, main, usage, OPTION_STRING):
6874 Remove -E or --ending-file.
6875 * src/list.c (read_and): Likewise.
6876 * src/common.h (ending_file_option): Likewise.
6877 * src/buffer.c (close_archive): Likewise.
6878
6879 * tests/after: Don't run two commands together in a pipeline,
6880 as some old shells mishandle pipeline exit status.
6881
6882 1999-06-28 Paul Eggert <eggert@twinsun.com>
6883
6884 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64015.
6885 * NEWS: Describe changes since 1.12.
6886 * README: Update bug reporting address; move paxutils ref to NEWS.
6887
6888 Handle EINTR correctly.
6889 * lib/Makefile.am (libtar_a_SOURCES): Add full-read.c, full-write.c.
6890 * lib/full-read.c, lib/full-write.c: New files.
6891 * src/buffer.c (child_open_for_compress, child_open_for_uncompress):
6892 Prefer full_read to read and full_write to write.
6893 * src/compare.c (process_rawdata, diff_sparse_files): Likewise.
6894 * src/create.c (deal_with_sparse, finish_sparse_file, dump_file):
6895 Likewise.
6896 * src/extract.c (extract_sparse_file): Likewise.
6897 * src/rmt.c (get_string, main, report_error_message,
6898 report_numbered_error): Likewise.
6899 * src/rmt.h (rmtread, rmtwrite): Likewise.
6900 * src/rtapelib.c (do_command, get_status_string, rmt_read__,
6901 rmt_write__, rmt_ioctl__): Likewise.
6902 * src/update.c (append_file): Likewise.
6903 * src/system.h (full_read, full_write): New decls.
6904
6905 * po/POTFILES.in: Add lib/argmatch.c, lib/error.c lib/getopt.c,
6906 lib/xmalloc.c, src/arith.c, src/misc.c.
6907
6908 * src/system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6909 New macros. All uses of STDIN and STDOUT changed.
6910 * src/rmt.c (prepare_record_buffer, main): Use STDIN_FILENO
6911 instead of 0 and STDOUT_FILENO instead of 1.
6912 * src/rtapelib.c (_rmt_rexec): Use STDIN_FILENO and STDOUT_FILENO
6913 instead of fileno (stdin) and fileno (stdout) or 0 and 1.
6914
6915 * src/rmt.c (private_strerror): Avoid const. Translate results.
6916
6917 * tests/Makefile.am (TESTS): Remove incremen.sh; it doesn't work
6918 in the presence of NFS clock skew.
6919
6920 1999-06-25 Paul Eggert <eggert@twinsun.com>
6921
6922 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64014.
6923
6924 * src/buffer.c (write_archive_buffer): New function.
6925 (child_open_for_compress, flush_write, flush_read): Use it to write
6926 buffers.
6927 (open_archive): Report error if fstat of archive fails.
6928 Improve efficiency of check for /dev/null.
6929 Also, fix some corner cases with remote archives and /dev/null checking.
6930 (close_archive): Test for input fifo only if not remote.
6931 Truncate output archive only if it's not remote.
6932
6933 * src/misc.c (remove_any_file):
6934 Don't terminate if you see . or ..; just skip them.
6935
6936 1999-06-18 Paul Eggert <eggert@twinsun.com>
6937
6938 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64013.
6939
6940 Output sizes using a format that's more compatible with
6941 traditional tar (and with GNU Emacs).
6942 * src/common.h (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT,
6943 MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT):
6944 Don't subtract 1 from size.
6945 * src/create.c (to_oct): Prepend leading zeros, not spaces.
6946 Output a trailing NUL unless the value won't fit without it.
6947 (finish_header): No need to append NUL to chksum, now that
6948 to_oct is doing it.
6949
6950 1999-06-16 Paul Eggert <eggert@twinsun.com>
6951
6952 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64012.
6953
6954 * src/Makefile.am (LDADD): Link libtar.a after @INTLLIBS@, since
6955 @INTLLIBS@ might invoke rpl_realloc.
6956
6957 * src/tar.c (backup_type): Remove decl; backupfile.h now has it.
6958 (intconv): Remove; use xstrto* fns instead.
6959 ("xstrtol.h"): Include.
6960 (check_decimal): Remove.
6961 (long_options, usage, OPTION_STRING, decode_options):
6962 Remove -y, --bzip2, --unbzip2.
6963 (decode_options): Use xget_version instead of get_version.
6964 Check for overflow with -b and -L and RECORD_SIZE_OPTION.
6965 Replace invocations of check_decimal with xstrtoumax.
6966
6967 * tests/preset.in (echo_n, echo_c): Remove.
6968
6969 * tests/after: Don't rely on $echo_c and $echo_n.
6970
6971 * lib/addext.c, lib/dirname.c, lib/lchown.c, lib/lchown.h,
6972 lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c,
6973 lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c,
6974 lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c,
6975 m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4,
6976 m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4,
6977 m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4,
6978 m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4,
6979 m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4,
6980 m4/xstrtoumax.m4: New files.
6981
6982 * configure.in(fp_PROG_ECHO): Remove; no longer needed.
6983 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
6984 (jm_AC_HEADER_INTTYPES_H): Replaces inline code.
6985 (jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add.
6986 (AC_CHECK_FUNCS): Remove lchown.
6987 (AC_REPLACE_FUNCS): Remove basename, dirname.
6988 Add lchown, strtol, strtoul.
6989 (jm_FUNC_MKTIME): Add.
6990 (LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS
6991 are also built via the ANSI2KNR-filtering rules.
6992 Use a no-op line to work around bug in automake 1.4 with malloc and
6993 realloc.
6994 (AC_OUTPUT): Add m4/Makefile.
6995
6996 * lib/Makefile.am (EXTRA_DIST):
6997 Add lchown.c, malloc.c, mktime.c, realloc.c,
6998 strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c.
6999 (noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h.
7000 (libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c,
7001 xstrtoul.c, xstrtoumax.c. Remove getversion.c.
7002 ($(srcdir)/getdate.c:): Remove `expect conflicts' line.
7003
7004 * src/system.h (uintmax_t): Don't declare; configure now does this.
7005
7006 * src/common.h (backup_type): New decl.
7007 * src/common.h, src/misc.c, src/tar.c:
7008 Move include of backupfile.h to common.h.
7009
7010 * src/misc.c (maybe_backup_file):
7011 Pass backup_type to find_backup_file_name.
7012
7013 * src/list.c (print_header): Change sizes of uform and gform from 11 to
7014 UINTMAX_STRSIZE_BOUND.
7015
7016 * doc/tar.texi: Remove --bzip2.
7017 Fix @xref typos reported by latest makeinfo.
7018
7019 * Makefile.am (ACLOCAL_AMFLAGS): New macro.
7020 (SUBDIRS): Add m4.
7021 (M4DIR, ACINCLUDE_INPUTS): New macros.
7022 ($(srcdir)/acinclude.m4): New rule.
7023
7024 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
7025 HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs;
7026 now generated automatically by autoconf.
7027
7028 1999-05-15 Paul Eggert <eggert@twinsun.com>
7029
7030 * doc/tar.texi: Remove -y.
7031
7032 1999-04-09 Paul Eggert <eggert@twinsun.com>
7033
7034 * src/system.h (INT_STRLEN_BOUND): Fix off-by-factor-of-10 typo
7035 (we were allocating too much storage).
7036 (uintmax_t): Don't declare; configure now does this.
7037
7038 * ABOUT-NLS: Update to gettext 0.10.35 edition.
7039
7040 1999-03-22 Paul Eggert <eggert@twinsun.com>
7041
7042 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64010
7043
7044 * acinclude.m4 (AC_LFS_FLAGS):
7045 Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default.
7046 (AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS.
7047 (jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros.
7048
7049 * configure.in (jm_FUNC_MALLOC, jm_FUNC_REALLOC):
7050 New macros; needed for latest GNU xmalloc.c.
7051
7052 * Makefile.am (noinst_HEADERS): Add quotearg.h, xalloc.h.
7053 (libtar_a_SOURCES): Add quotearg.c.
7054 * list.c: Include <quotearg.h>.
7055 (from_oct): Add forward decl.
7056 (read_header): Return HEADER_FAILURE if we can't parse the checksum.
7057 (from_oct): Report an error only if TYPE is nonzero.
7058 Quote any funny characters in bad header.
7059
7060 1999-03-20 Paul Eggert <eggert@twinsun.com>
7061
7062 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64009
7063
7064 * acinclude.m4 (AC_LFS_FLAGS): Add support for IRIX 6.2 and later.
7065 (AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers
7066 changed.
7067 (AC_LFS): Simplify AIX revision number test.
7068
7069 1999-03-17 Paul Eggert <eggert@twinsun.com>
7070
7071 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64008
7072
7073 * configure.in (AC_VALIDATE_CACHED_SYSTEM_TUPLE):
7074 Remove; it doesn't work that well
7075 with AC_CANONICAL_HOST.
7076 (fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc.
7077
7078 * Makefile.am (EXTRA_DIST): Remove AC-PATCHES, AM-PATCHES, BI-PATCHES.
7079
7080 * Makefile.am (EXTRA_DIST): Remove gmalloc.c.
7081
7082 * acinclude.m4 (fp_WITH_INCLUDED_MALLOC): Remove.
7083
7084 * tar.texi: Fix bug-report addr.
7085
7086 * README: Remove --with-included-malloc.
7087 Upgrade version numbers of build software.
7088
7089 1999-03-07 Paul Eggert <eggert@twinsun.com>
7090
7091 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64007.
7092
7093 * acinclude.m4 (AM_WITH_NLS): Port to Solaris 2.5.1,
7094 where bindtextdomain and gettext require -lintl.
7095 (AC_LFS_FLAGS): Simplify so that it only gets the flags;
7096 `no' means it failed.
7097 (AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros.
7098 (AC_LFS): Use them. Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and
7099 _LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need
7100 to add anything to the command line (it's all in config.h).
7101 Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS.
7102
7103 1999-03-01 Paul Eggert <eggert@twinsun.com>
7104
7105 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64006.
7106
7107 * acinclude.m4 (AC_LFS_FLAGS): Port to AIX 4.2.
7108
7109 * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
7110 mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
7111 uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros
7112 like OFF_MAX, which are not reliable
7113 (e.g. OFF_MAX in AIX 4.2 is incorrect).
7114 * src/system.h (GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX,
7115 SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX): Remove; no longer used.
7116
7117 * src/incremen.c (get_directory_contents):
7118 Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2.
7119 Have statx depend on STX_HIDDEN, not AIX.
7120
7121 * src/create.c (to_oct):
7122 New parameter substitute, giving a substitute value to use
7123 when the original value is out of range. Do not append a space to the
7124 output; modern tars don't. When a value is out of range, specify the
7125 maximum value, not the number of bits.
7126 (GID_NOBODY, UID_NOBODY): New macros.
7127 (gid_to_oct, uid_to_oct): Use them as substitutes.
7128 (finish_header): Do not assume that UINTMAX_TO_OCT appends a space.
7129 (dump_file): Check whether the file changed as we read it.
7130
7131 * src/rmt.c (main): Remove suspicious AIX/386 code.
7132
7133 1999-02-19 Paul Eggert <eggert@twinsun.com>
7134
7135 * intl/localealias.c (read_alias_file): Don't assume that memcpy
7136 returns a type compatible with char *; it doesn't on SunOS
7137 4.1.4 with Sun cc, since <string.h> doesn't declare memcpy.
7138
7139 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64005.
7140
7141 * src/tar.c (long_options, usage): Prefer --unbzip2 to --bunzip2.
7142 * doc/tar.texi: Add --bzip2, --unbzip2 options.
7143
7144 * configure.in (AC_CANONICAL_HOST, AC_VALIDATE_CACHED_SYSTEM_TUPLE):
7145 Add.
7146 (AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this.
7147 (AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this.
7148 * acinclude.m4 (AM_WITH_NLS):
7149 Update to latest gettext version (serial 5).
7150 (AC_LFS_FLAGS): New macro
7151 (AC_LFS): Use it. Append to CFLAGS, LDFLAGS, LDLIBS instead of
7152 working only with unset variables. Append to CFLAGS, not CPPFLAGS.
7153 Work properly in cross-compilation scenario, by checking for getconf
7154 with AC_CHECK_TOOL and by ditching uname in favor of
7155 AC_CANONICAL_HOST and $host_os. Add --disable-lfs option.
7156
7157 * lib/getdate.y: Update to fileutils 4.0 getdate.y, with one patch:
7158 replace FORCE_ALLOCA_H with HAVE_ALLOCA_H.
7159 * lib/Makefile.am (AUTOMAKE_OPTIONS): Append ../src/ansi2knr,
7160 since getdate.y now uses ANSI code.
7161
7162 * config.guess, config.sub: New files; taken from automake 1.4.
7163
7164 * intl/Makefile.in, intl/VERSION, intl/bindtextdom.c,
7165 intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c,
7166 intl/explodename.c, intl/finddomain.c, intl/gettext.c,
7167 intl/gettext.h, intl/gettextP.h, intl/hash-string.h,
7168 intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h,
7169 intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c:
7170 Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109.
7171
7172 1999-02-01 Paul Eggert <eggert@twinsun.com>
7173
7174 * src/tar.c: Update copyright.
7175
7176 * NEWS: 1.12.64004
7177
7178 1999-02-01 Paul Eggert <eggert@twinsun.com>
7179
7180 * NEWS, configure.in: Version 1.12.64004
7181
7182 * configure.in (AC_LFS): Use this macro, instead of open-coding it.
7183
7184 * acinclude.m4 (AC_LFS, AM_PROG_CC_STDC): New macros.
7185
7186 * src/extract.c (extract_archive): Fix bug when extracting sparse
7187 files: they were trashing the tar file header.
7188
7189 * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
7190 Add -y or --bzip2 or --bunzip2 option.
7191
7192 1999-01-30 Paul Eggert <eggert@twinsun.com>
7193
7194 * src/names.c (cached_no_such_uname, cached_no_such_gname,
7195 cached_no_such_uid, cached_no_such_gid): New vars.
7196 (uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid):
7197 Cache failures, too.
7198
7199 * src/tar.c (decode_options):
7200 Don't pass names longer than UNAME_FIELD_SIZE to
7201 uname_to_uid, as it messes up the cache. Similarly for gname_to_uid.
7202
7203 1999-01-27 Paul Eggert <eggert@twinsun.com>
7204
7205 * NEWS, configure.in: Version 1.12.64003
7206
7207 * src/buffer.c (backspace_output, close_archive): Cast
7208 rmtlseek position arg to off_t, for benefit of K&R compilers
7209 with long long.
7210 * src/compare.c (verify_volume): Likewise.
7211
7212 * NEWS, configure.in: Version 1.12.64002
7213
7214 * src/create.c (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
7215 off_to_oct, size_to_oct, time_to_oct, uid_to_oct):
7216 Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long.
7217 * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
7218 mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
7219 uid_from_oct): Likewise.
7220
7221 1999-01-25 Paul Eggert <eggert@twinsun.com>
7222
7223 * incremen.sh: Fix timing bug in regression test.
7224
7225 1999-01-22 Paul Eggert <eggert@twinsun.com>
7226
7227 * NEWS, configure.in: Update version
7228
7229 * Makefile.am (localedir): Change to $(datadir)/locale.
7230 (DEFS): New macro, defining LOCALEDIR.
7231 (tar.o, tar._o, rmt.o, rmt._o): Remove.
7232 (INCLUDES): Add -I..
7233
7234 * Makefile.am (localedir): Change to $(datadir)/locale.
7235
7236 1999-01-21 Paul Eggert <eggert@twinsun.com>
7237
7238 * NEWS, README, configure.in: Unofficial version 1.12.64001.
7239
7240 * tests/Makefile.am (localedir): Change to $(datadir)/locale.
7241 * src/Makefile.am (localedir): Likewise.
7242 (DEFS): New macro, defining LOCALEDIR.
7243 (tar.o, tar._o, rmt.o, rmt._o): Remove.
7244 (INCLUDES): Add `-I..'.
7245
7246 * tests/incremen.sh: Fix timing bug.
7247
7248 1999-01-20 Paul Eggert <eggert@twinsun.com>
7249
7250 * NEWS, README, configure.in: Unofficial version 1.12.64000.
7251 `lfs.7' changed to `64000' in version number
7252 to conform to gnits standards.
7253
7254 * COPYING, INSTALL, doc/texinfo.tex, install-sh, missing,
7255 mkinstalldirs, ansi2knr.c: Update to latest public versions.
7256
7257 Rebuild with automake 1.4 and autoconf 2.13, to work around some
7258 porting problems.
7259
7260 1998-12-07 Paul Eggert <eggert@twinsun.com>
7261
7262 * NEWS, README, configure.in: Unofficial version 1.12.lfs.6.
7263
7264 * src/list.c (read_header):
7265 Accept file names as specified by POSIX.1-1996 section 10.1.1.
7266
7267 1998-11-30 Paul Eggert <eggert@twinsun.com>
7268
7269 * configure.in: Quote the output of uname.
7270
7271 * src/extract.c (set_stat): chmod after chown even when not root;
7272 if we are using --same-owner this is needed e.g. on Solaris 2.5.1.
7273
7274 1998-11-15 Paul Eggert <eggert@twinsun.com>
7275
7276 * NEWS, README, configure.in: Unofficial version 1.12.lfs.5.
7277
7278 * configure.in (ac_test_CPPFLAGS, ac_test_LDFLAGS, ac_test_LIBS,
7279 ac_getconfs, ac_result): Special case for HP-UX 10.20 or later.
7280
7281 1998-10-28 Paul Eggert <eggert@twinsun.com>
7282
7283 * NEWS, README, configure.in: Unofficial version 1.12.lfs.4.
7284
7285 * src/system.h (voidstar): Use void * if __STDC__ is defined,
7286 not merely nonzero.
7287
7288 * src/rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC.
7289 On many installations, rexec is disabled.
7290
7291 1998-08-07 Paul Eggert <eggert@twinsun.com>
7292
7293 * NEWS, README, configure.in: Unofficial version 1.12.lfs.3.
7294
7295 * src/names.c (uid_to_uname, gid_to_gname): Don't used cached name
7296 for nameless users and groups.
7297
7298 1998-02-17 Paul Eggert <eggert@twinsun.com>
7299
7300 * NEWS, README, configure.in: Unofficial version 1.12.lfs.2.
7301 * NEWS, README: Add explanation of why this isn't an official version.
7302
7303 1998-02-02 Paul Eggert <eggert@twinsun.com>
7304
7305 * NEWS, README, configure.in: Unofficial version 1.12.lfs.1.
7306 This is an unofficial version.
7307
7308 1997-12-17 Paul Eggert <eggert@twinsun.com>
7309
7310 * src/incremen.c (ST_DEV_MSB): New macro.
7311 (NFS_FILE_STAT): Use most significant bit of st_dev,
7312 even if it's unsigned.
7313
7314 1997-12-08 Paul Eggert <eggert@twinsun.com>
7315
7316 * src/system.h (ST_NBLOCKS): Fix typo in definition.
7317
7318 1997-11-19 Paul Eggert <eggert@twinsun.com>
7319
7320 * configure.in (HAVE_INTTYPES_H):
7321 Don't ignore cache variable if it's already set.
7322
7323 1997-11-10 Paul Eggert <eggert@twinsun.com>
7324
7325 * src/rmt.c (main): Don't assume mt_count is of type daddr_t.
7326 * src/delete.c (records_read): Now off_t.
7327 (move_archive): Don't assume mt_count is of type daddr_t.
7328
7329 1997-10-30 Paul Eggert <eggert@twinsun.com>
7330
7331 * configure.in (CPPFLAGS, LDFLAGS, LIBS):
7332 Set to appropriate values if large file support
7333 needs explicit enabling.
7334 (HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t,
7335 ssize_t):
7336 New macros to configure.
7337 (AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add.
7338
7339 * acconfig.h (daddr_t, HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING,
7340 major_t, minor_t, ssize_t): New macros.
7341
7342 * src/arith.h (TARLONG_FORMAT):
7343 Fix typo: %uld -> %lu. Use unsigned when long long
7344 (%lld -> %llu).
7345 (add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long.
7346 (add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long.
7347
7348 * src/arith.c (add_to_tarlong_helper, mult_tarlong_helper):
7349 2nd arg is now unsigned long.
7350
7351 * src/rmt.c (allocated_size): Now size_t, and now initialized to 0.
7352 (prepare_record_buffer): Arg is now size_t.
7353 Remove now-useless casts.
7354
7355 (main): Use `long' for status, so that it can store ssize_t.
7356 Use daddr_t, mode_t, size_t, off_t when appropriate.
7357 Convert daddr_t and off_t values ourselves, since they might be longer
7358 than long. Convert other types using `long' primitives.
7359 When processing MTIOCTOP, do not try to pass resulting
7360 count back, since it won't work (it could be too large) and it's
7361 not expected anyway.
7362
7363 * src/update.c:
7364 (append_file) Use off_t, size_t, ssize_t when appropriate. Remove
7365 now-useless casts. Use unsigned long to print *_t types, except use
7366 STRINGIFY_BIGINT for off_t.
7367 (update_archive): Cast -1 to dev_t when necessary.
7368
7369 * src/tar.c (check_decimal):
7370 Now returns 1 if successful, 0 otherwise, and returns
7371 uintmax_t value into new arg. Check for arithmetic overflow.
7372 (decode_options): Avoid overflow if record_size fits in size_t but not int.
7373 Check for overflow on user or group ids.
7374
7375 * src/compare.c (diff_init, process_rawdata, read_and_process,
7376 diff_sparse_files, diff_archive):
7377 Use off_t, pid_t, size_t, ssize_t when appropriate.
7378 Remove now-useless casts. Use unsigned long to print *_t types,
7379 except use STRINGIFY_BIGINT for off_t.
7380
7381 (process_noop, process_rawdata, process_dumpdir, read_and_process):
7382 Size arg is now size_t.
7383
7384 (diff_sparse_files): Arg is now off_t. Check for size_t overflow
7385 when allocating buffer.
7386
7387 * src/rtapelib.c:
7388 (do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__):
7389 Use pid_t, size_t, ssize_t when appropriate. Remove now-useless casts.
7390 Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for
7391 off_t.
7392
7393 (get_status_string, get_status_off): New function.
7394 (get_status): Now returns long, so that it can store ssize_t.
7395 Invoke get_status_string to do the real work.
7396 (rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t.
7397 (rmt_lseek__): Now returns off_t, using new get_status_off function.
7398 (rmt_ioctl__): Convert mt_count by hand,
7399 since it might be longer than long.
7400
7401 * src/mangle.c (extract_mangle):
7402 Check for overflow when converting off_t to size_t.
7403 Use off_t, size_t when appropriate. Remove now-useless casts.
7404
7405 * src/system.h (mode_t): Remove; now done by autoconf.
7406 (ST_NBLOCKS): Do not overflow if st_size is near maximum.
7407 Return number of ST_NBLOCKSIZE-byte blocks,
7408 not number of 512-byte blocks;
7409 this also helps to avoid overflow.
7410 (st_blocks): Declare if needed.
7411 (ST_NBLOCKSIZE): New macro.
7412 (<limits.h>, <inttypes.h>): Include if available.
7413 (CHAR_BIT): New macro.
7414 (uintmax_t): New typedef.
7415 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND,
7416 UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX,
7417 OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros.
7418
7419 * src/names.c (name_init):
7420 Fix typo in error message: FILE* was passed, but char*
7421 was wanted.
7422
7423 (read_name_from_file, name_gather, addname, name_match, name_scan,
7424 add_exclude): Use size_t when appropriate. Remove now-useless casts.
7425
7426 (exclude_pool_size, allocated_exclude_pool_size): Now size_t.
7427
7428 * src/extract.c (newdir_umask, current_umask): Now mode_t.
7429 (extract_sparse_file): Args now use off_t.
7430
7431 (set_mode, set_stat, make_directories, extract_sparse_file,
7432 extract_archive): Use off_t, size_t, ssize_t when appropriate. Remove
7433 now-useless casts. Use unsigned long to print *_t types, except use
7434 STRINGIFY_BIGINT for off_t.
7435
7436 * src/misc.c (quote_copy_string):
7437 Use size_t when appropriate. Remove now-useless casts.
7438
7439 * src/list.c (read_and, list_archive, read_header, decode_mode,
7440 print_header, print_for_mkdir):
7441 Use mode_t, off_t, size_t when appropriate. Remove
7442 now-useless casts. Use unsigned long to print *_t types, except use
7443 STRINGIFY_BIGINT for off_t.
7444
7445 (read_header): Check for overflow when converting header size.
7446
7447 (from_oct): Now static. Now returns uintmax_t. `where' arg is now
7448 const char *. Size arg is now size_t. Now takes new type and maxval
7449 args. Compute result using uintmax_t, not long. Report error if
7450 field does not contain octal number in range.
7451 (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
7452 off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
7453 uintmax_from_oct): New functions.
7454
7455 (stringify_uintmax_t_backwards): New function.
7456
7457 (decode_mode, print_for_mkdir): Mode arg is now mode_t.
7458 (skip_file): Offset arg is now off_t.
7459
7460 * src/buffer.c (record_start_block, save_totsize, save_sizeleft,
7461 real_s_totsize, real_s_sizeleft, current_block_ordinal):
7462 Now off_t.
7463 (write_error): Arg is now ssize_t.
7464 (child_pid): Now pid_t.
7465 (available_space_after): Now size_t.
7466
7467 (child_open_for_compress, child_open_for_uncompress, flush_write,
7468 open_archive, flush_write, write_error, flush_read, close_archive):
7469 Use pid_t, ssize_t, size_t when appropriate. Remove now-useless
7470 casts. Use unsigned long to print *_t types, except use
7471 STRINGIFY_BIGINT for off_t.
7472
7473 * src/delete.c (records_read): Now daddr_t.
7474 (move_archive): Arg is now daddr_t. Check for overflow when
7475 computing offset.
7476 (move_archive, delete_archive_members): Use daddr_t, off_t when
7477 appropriate. Remove now-useless casts.
7478
7479 * src/rmt.h (rmt_read__, rmt_write__): Now returns ssize_t.
7480 (rmt_lseek): Now returns off_t.
7481
7482 * src/create.c (to_oct):
7483 Now static. Value arg is now uintmax_t. Accept new args
7484 giving name of type of octal field, for error messages. Report an
7485 error if the value is too large to fit in the field.
7486 (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
7487 size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions.
7488
7489 (write_eot, write_long, finish_header, deal_with_sparse,
7490 finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when
7491 appropriate. Remove now-useless casts. Use unsigned long to print
7492 *_t types, except use STRINGIFY_BIGINT for off_t.
7493
7494 (find_new_file_size): 1st arg is now off_t*.
7495 (finish_sparse_file): Args now use off_t, not long.
7496 Check for lseek error.
7497 (create_archive, dump_file): Cast -1 to dev_t when necessary.
7498 (dump_file): Device arg is now dev_t.
7499 Avoid overflow when testing whether file has holes
7500 by using the new ST_NBLOCKSIZE macro.
7501
7502 * src/incremen.c (struct accumulator, add_to_accumulator,
7503 get_directory_contents, add_hierarchy_to_namelist, gnu_restore):
7504 Use size_t for sizes.
7505 (struct directory, get_directory_contents, add_hierarchy_to_namelist):
7506 Use dev_t, ino_t for devices and inodes.
7507 (gnu_restore): Use off_t for file offsets.
7508 (struct directory): Use char for flags. Add new flag `nfs'.
7509 (nfs): New constant
7510 (NFS_FILE_STAT): New macro.
7511 (note_directory): Accept struct stat * instead of
7512 device and inode number. All callers changed.
7513 (note_directory, get_directory_contents):
7514 Use NFS_FILE_STAT to determine whether directory is an NFS directory.
7515 (write_dir_file): Cast time_t to unsigned long before printing as %lu.
7516
7517 * src/common.h (record_size, struct name, struct sp_array,
7518 available_space_after):
7519 Use size_t for sizes.
7520 (save_sizeleft, save_totsize, current_block_ordinal, skip_file):
7521 Use off_t for file offsets.
7522 (struct name): dir_contents is now const char *, not char *.
7523 (dump_file, get_directory_contents): Use dev_t for devices.
7524 (to_oct): Remove decl.
7525 (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT,
7526 UID_TO_OCT, UINTMAX_TO_OCT, OFF_TO_OCT, TIME_TO_OCT, STRINGIFY_BIGINT,
7527 GID_FROM_OCT, MAJOR_FROM_OCT, MINOR_FROM_OCT, MODE_FROM_OCT,
7528 OFF_FROM_OCT, SIZE_FROM_OCT, TIME_FROM_OCT, UID_FROM_OCT,
7529 UINTMAX_FROM_OCT): New macros.
7530 (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
7531 size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
7532 stringify_uintmax_t_backwards, gid_from_oct, major_from_oct,
7533 minor_from_oct, mode_from_oct, off_from_oct, size_from_oct,
7534 time_from_oct, uid_from_oct, uintmax_from_oct): New decls.
7535 (print_for_mkdir): 2nd arg is now mode_t.
7536
7537 See ChangeLog.1 for earlier changes.
7538
7539
7540 \f
7541 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
7542 Free Software Foundation, Inc.
7543
7544 This file is part of GNU tar.
7545
7546 GNU tar is free software; you can redistribute it and/or modify
7547 it under the terms of the GNU General Public License as published by
7548 the Free Software Foundation; either version 2, or (at your option)
7549 any later version.
7550
7551 GNU tar is distributed in the hope that it will be useful,
7552 but WITHOUT ANY WARRANTY; without even the implied warranty of
7553 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7554 GNU General Public License for more details.
7555
7556 You should have received a copy of the GNU General Public License
7557 along with GNU tar; see the file COPYING. If not, write to
7558 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
7559 Boston, MA 02110-1301, USA.
7560 \f
7561 Local Variables:
7562 mode: change-log
7563 version-control: never
7564 End:
This page took 0.368181 seconds and 5 git commands to generate.