]> Dogcows Code - chaz/tar/blob - ChangeLog
Updated
[chaz/tar] / ChangeLog
1 2003-12-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2
3 * src/names.c (safer_name_suffix): Reverted change made
4 2003-11-14. Reason: Discussion with Paul Eggert and
5 Jean-Louis Martineau. See also ChangeLog entry from
6 1999-08-14.
7 * tests/delete03.sh: Likewise.
8 * tests/extrac04.sh: Likewise.
9 * tests/multiv01.sh: Likewise.
10
11 2003-12-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12
13 * src/incremen.c (write_directory_file): Use sys_truncate
14 * src/list.c (print_header): Use archive_file_size member
15 when printing real file size.
16 * src/sparse.c (sparse_scan_file): Correctly handle files with
17 a hole at the end.
18 (sparse_dump_region,sparse_extract_region): Allow for zero size
19 trailing blocks
20
21 2003-12-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22
23 * configure.ac: Raised version number to 1.13.92
24 * src/list.c (decode_header): Discern between pax and ustar
25 formats
26 Initialize current_stat_info.archive_file_size.
27
28 NOTE: Modifications from this date on are temporarily
29 stored on local CVS on mirddin. This repository will
30 be synchronized with Savannah as soon as the latter
31 becomes operational again.
32
33 2003-12-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34
35 * TODO: Updated
36 * src/sparse.c: Initial implementation of GNU/pax sparse
37 file format.
38 * src/common.h (xheader_store): Changed prototype.
39 * src/create.c: Update calls to xheader_store
40 * src/extract.c (extract_archive): Check reported size vs.
41 archive file size to determine if we have to do with a
42 sparse file.
43 * src/tar.c (usage): Cleaned up the sample argument to --newer
44 option.
45 (decode_options): Allow --sparse for POSIX_FORMAT archives.
46 * src/xheader.c (struct xhdr_tab.coder; all coder function): Added
47 extra argument
48 Implemented GNU.sparse.* keywords.
49
50 2003-11-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51
52 * configure.ac: Check for setlocale. Thanks Bruno Haible for
53 reporting.
54
55 2003-11-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
56
57 * src/create.c (write_gnu_long_link): Use oldgnu
58 magic with @LongLink blocks.
59
60 2003-11-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
61
62 * src/tar.h: Support for star sparse format.
63 * src/sparse.c: Likewise.
64
65 2003-11-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
66
67 * src/sparse.c (sparse_diff_file): New function
68 * src/common.h (sys_compare_uid,sys_compare_gid): New functions
69 (sys_compare_uid_gid): Removed.
70 (sys_compare_links,report_difference): Changed prototype
71 (sparse_diff_file): New function
72 * src/system.c (sys_compare_uid,sys_compare_gid): New functions
73 (sys_compare_uid_gid): Removed.
74 (sys_compare_links): Changed declaration
75 * src/compare.c (diff_archive): Use sparse_diff_file.
76
77 2003-11-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
78
79 Rewritten sparse file handling.
80
81 * src/sparse.c: New file. Provides a universal framework
82 for various methods for sparse files handling.
83 * src/Makefile.am: Added sparse.c
84 * src/common.h (struct sp_array,sparsearray,sp_array_size)
85 (init_sparsearray,fill_in_sparse_array): Removed
86 (enum dump_status): New data type
87 (pad_archive,close_diag,open_diag,read_diag_details)
88 (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
89 functions.
90 (sparse_file_p,sparse_dump_file,sparse_extract_file): New
91 functions.
92 (print_header): Changed prototype declaration.
93 * src/tar.h (struct sp_array): Declaration from common.h
94 (struct tar_stat_info): New members archive_file_size,
95 sparse_map_avail,sparse_map.
96 * src/create.c: Major rewrite.
97 * src/extract.c: Use new sparse file interface.
98 * src/compare.c (diff_sparse_files): Temporary placeholder.
99
100 * src/buffer.c: Minor changes
101 * src/tar.c: Likewise.
102 * src/list.c: Likewise.
103 * src/misc.c (close_diag,open_diag,read_diag_details)
104 (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
105 diagnostics functions.
106 * src/incremen.c: Use new diagnostics functions.
107 * src/names.c: Likewise.
108
109 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
110
111 * configure.ac: Fixed check for setsockopt
112
113 * src/create.c: Do not zero-terminate name field if
114 the name is exactly 100 characters long.
115 (write_ustar_long_name): Fixed cheking for unsplittable
116 names.
117
118 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
119
120 * src/create.c (start_header): Removed debugging hook
121 (dump_file): Fixed handling of linkname field.
122 * src/names.c (safer_name_suffix): If the input
123 file name ends with a slash, output one should do so
124 as well.
125 * doc/tar.texi: Documented --format=ustar
126
127 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
128
129 * src/tar.h (archive_format): USTAR_FORMAT: New type.
130 * src/create.c: Added POSIX.1-1988 support.
131 * src/names.c (safer_name_suffix): Skip leading ./
132 * src/tar.c: New option --format=ustar forces
133 POSIX.1-1988 archive format.
134 * tests/delete03.sh: Updated.
135 * tests/extrac04.sh: Updated.
136 * tests/multiv01.sh: Updated.
137
138 2003-11-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
139
140 * src/list.c (read_and): Initialize current_stat_info
141 and extended_header at the start of the loop.
142 * src/names.c (all_names_found): Check if the argument
143 contains valid filename. Fixes coredump on `not_a_tar_file'
144 * src/xheader.c (atime_decoder,gid_decoder,ctime_decoder)
145 (mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax.
146 Fixes `pax-big-10g' bug.
147
148 2003-11-12 Paul Eggert <eggert@twinsun.com>
149
150 Fix some C compatibility bugs reported by Joerg Schilling.
151
152 * src/common.h (stripped_prefix_len): Fix misspelling
153 "stripped_path_len" in declaration.
154 * src/rmt.c (main): Use "return FOO;" rather than
155 "exit (FOO);"; we no longer have to worry about
156 pre-ANSI hosts that mishandled returned values from "main".
157 * src/tar.c (main): Likewise. This avoids warnings on some
158 compilers.
159 * src/system.c: Include signal.h, for 'kill'.
160 * src/system.h (DEV_BSIZE): Remove.
161 (DEFAULT_ST_BLKSIZE): New macro.
162 (ST_BLKSIZE): Use it, instead of DEV_BSIZE.
163 * src/tar.c (enum): Remove comma just before }.
164
165 2003-11-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
166
167 * src/list.c (decode_header): Initialize st_atime and
168 st_ctime.
169
170 2003-11-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
171
172 * configure.ac (tar_save_LIBS): Bugfix. Thanks Adrian
173 Bunk <bunk@fs.tum.de> for reporting.
174 * doc/tar.texi: Fixed spelling. Thanks Martin Buchholz
175 <martin@xemacs.org> for spotting.
176
177 2003-11-04 Paul Eggert <eggert@twinsun.com>
178
179 * src/xheader.c (xhdr_tab): Make it extern, not static, as C89 and
180 C99 require this.
181
182 2003-10-26 Paul Eggert <eggert@twinsun.com>
183
184 * src/system.c (sys_spawn_shell): Cast trailing null to (char *).
185 Bug reported by Christian Weisgerber.
186
187 2003-10-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
188
189 * AUTHORS: Updated
190 * NEWS: Updated
191 * src/tar.c (decode_options): Removed superfluous archive format
192 check
193 * doc/tar.texi: Documented new features.
194
195 2003-10-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
196
197 * NEWS: Updated
198 * THANKS: Added Wojciech Polak
199 * configure.ac: Added checks for missing functions. Raised
200 version number to indicate alpha release.
201 * lib/Makefile.am: Added missing headers
202 * lib/waitpid.c: Added missing includes.
203 * src/extract.c: Likewise.
204 * src/names.c: Removed spurious includes.
205 * src/xheader.c: Likewise.
206 * src/system.h [MSDOS]: Fixed spelling of EACCES. Added
207 macro overriding broken mkdir prototypes.
208
209 2003-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
210
211 * configure.ac: Check for dev_t and ino_t.
212 * m4/Makefile.am: Added missing files.
213 * src/system.c: New file.
214 * src/Makefile.am: Added system.c
215 * src/common.h: Prototypes for functions from system.c
216 * src/system.h (SET_BINARY_MODE, ERRNO_IS_EACCESS): New defines
217 * src/buffer.c: Moved system dependencies to system.c
218 * src/compare.c: Likewise.
219 * src/create.c: Likewise.
220 * src/delete.c: Likewise.
221 * src/extract.c: Likewise.
222 * src/rtapelib.c: Likewise.
223
224 2003-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
225
226 Implemented --occurrence option.
227
228 * NEWS: Updated.
229 * src/tar.c: New option --occurrence.
230 * src/common.h (occurrence_option): New global
231 (struct name): Changed `found' member to `uintmax_t
232 found_count'.
233 (names_done): Removed
234 (all_names_found): Changed prototype.
235 (ISFOUND,WASFOUND): New macros
236 * src/delete.c (delete_archive_members): Honor --occurrence
237 option.
238 * src/list.c (read_and): Likewise.
239 * src/names.c: Count number of occurrences of each name in the
240 archive.
241 (name_match): Honor --occurrence option.
242 (names_done): Removed
243 (all_names_found,names_notfound): Rewritten.
244
245 2003-10-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
246
247 * src/tar.c: Removed extra precaution regarding
248 subcommand_option == CAT_SUBCOMMAND
249 * lib/Makefile.am: Updated
250
251 2003-10-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
252
253 * src/common.h (names_done): New function.
254 * src/names.c: Likewise.
255 * src/list.c (read_and): Use all_names_found() as `while'
256 condition.
257 * src/tar.c: New option --first-copy
258 * NEWS: Updated
259
260 2003-09-24 Paul Eggert <eggert@twinsun.com>
261
262 * src/rmt.c (main): Don't translate Copyright string; international
263 law says the word "Copyright" should be in English.
264 * src/tar.c (decode_options): Likewise.
265
266 2003-09-22 Paul Eggert <eggert@twinsun.com>
267
268 * doc/tar.texi (extracting untrusted archives): New section.
269
270 * src/common.h (stripped_path_len): Renamed from cut_path_elements.
271 Return size_t, not pointer, so that we don't have to worry about
272 violating the C standard by converting char const * to char *.
273 All callers changed.
274 * src/names.c (stripped_path_len): Likewise. Strip file system
275 prefix, too. Count adjacent slashes as if they were one slash;
276 that is the POSIX standard.
277
278 2003-09-17 Paul Eggert <eggert@twinsun.com>
279
280 * README-alpha: Document maintainer tool assumptions a bit. GNU
281 'sed' is no longer required. For GNU m4 1.4, suggest the patch in
282 Debian bug 211447. Fix minor misspellings/whitespace nits.
283
284 * configure.ac (AC_AIX, AC_MINIX): Remove; subsumed by
285 gl_USE_SYSTEM_EXTENSIONS.
286
287 * lib/.cvsignore: Add exit.h, time_r.c, time_r.h.
288 * m4/.cvsignore: Add restrict.m4, time_r.m4.
289
290 2003-09-17 Paul Eggert <eggert@twinsun.com>
291
292 * bootstrap: Don't use "for option; do";
293 Solaris 8 /bin/sh doesn't like that.
294
295 2003-09-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
296
297 * README-alpha: Updated
298 * bootstrap: Updated
299
300 2003-09-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
301
302 * README-alpha: Updated
303 * bootstrap: Updated
304 * po/POTFILES.in: Added src/xheader.c
305 * src/common.h (cut_path_elements): Added proto.
306
307 2003-09-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
308
309 * src/buffer.c: Use ngettext where appropriate.
310 * src/compare.c: Likewise.
311 * src/create.c: Likewise.
312 * src/misc.c: Likewise.
313 * src/tar.c: Likewise.
314 * src/update.c: Likewise.
315
316 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
317
318 * .cvsignore: Added *.shar.gz
319 * NEWS: Updated
320 * TODO: Updated
321 * src/common.h (strip_path_elements): New variable.
322 * src/extract.c (extract_archive): Implemented --strip-path
323 * src/names.c (cut_path_elements): New functon.
324 * src/tar.c: New option --strip-path=NUM.
325 (decode_options) Assign boolean values to bool variables.
326
327 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
328
329 * src/delete.c: Fixed deletion from the POSIX archives.
330 * src/list.c (read_header): Minor change.
331 * src/tar.c (main): Do not check for volume_label_option
332 if subcommand_option is not CREATE_SUBCOMMAND.
333 * src/xheader.c (xheader_decode): Store the header as
334 well (for eventual delete).
335
336 * tests/incremen.sh: Explicitly request GNU format. This will
337 disappear when GNU extended header keywords are working.
338 * tests/multiv01.sh: Likewise
339 * tests/volume.sh: Likewise
340
341 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
342
343 * src/create.c: Support for "linkpath" extended keyword.
344 * src/xheader.c (decode_record): Reversed the return
345 condition.
346
347 2003-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
348
349 * configure.ac: Allow to redefine the default output format.
350 * src/tar.c: Use DEFAULT_ARCHIVE_FORMAT macro
351 (archive_format_string): New function.
352 (usage): Updated help output.
353 * README: Updated.
354 * NEWS: Updated.
355 * TODO: Updated.
356
357 2003-09-02 Paul Eggert <eggert@twinsun.com>
358
359 * src/common.h (destroy_stat, xheader_decode, xheader_store,
360 xheader_read, xheader_finish, xheader_destroy): Add decls;
361 C99 requires this.
362
363 * src/create.c (write_extended): Remove unused local 'bufsize'.
364
365 * src/delete.c (delete_archive_members): Handle case of
366 HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE.
367 * src/list.c (read_and): Abort if HEADER_SUCCESS_EXTENDED
368 occurs, as it's not possible.
369 * src/update.c (update_archive): Likewise.
370
371 Use "const" when possible in new code.
372 * src/tar.c (struct fmttab.name): Now char const *. All uses changed.
373 (fmttab): Now const. All uses changed.
374 * src/xheader.c (struct xhdr_tab.keyword): Now pointer to const.
375 (struct xhdr_tab.coder, struct xhdr_tab.decoder, locate_handler,
376 decode_record, xheader_store, xheader_print, code_string, code_time,
377 code_num, dummy_coder, dummy_decoder, atime_coder, atime_decoder,
378 gid_coder, gid_decoder, gname_coder, gname_decoder, linkpath_coder,
379 linkpath_decoder, ctime_coder, ctime_decoder, mtime_coder,
380 mtime_decoder, path_coder, path_decoder, size_coder, size_decoder,
381 uid_coder, uid_decoder, uname_coder, uname_decoder):
382 Use pointers to const when possible.
383 (xhdr_tab): Now const.
384
385 * src/tar.c (fmttab): Avoid GCC warning by not eliding initializers.
386 (set_archive_format): Report an error if no format name matches,
387 instead of returning an undefined value.
388
389 * src/xheader.c (struct xhdr_tab.decoder, dummy_decoder,
390 atime_decoder, gid_decoder, gname_decoder, linkpath_decoder,
391 ctime_decoder, mtime_decoder, path_decoder, size_decoder,
392 uid_decoder, uname_decoder): Remove unused keyword arg.
393 All uses changed.
394
395 * src/tar.c (set_archive_format): Now static.
396 * src/xheader.c (xhdr_tab, format_uintmax): Now static.
397
398 * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
399 atime_decoder, gid_coder, gid_decoder, gname_coder, gname_decoder,
400 linkpath_coder, linkpath_decoder, mtime_coder, mtime_decoder,
401 ctime_coder, ctime_decoder, path_coder, path_decoder, size_coder,
402 size_decoder, uid_coder, uid_decoder, uname_coder, uname_decoder):
403 Remove forward decls; no longer needed.
404 (xhdr_tab): Move to end, so that the forward decls aren't needed.
405 Add a forward declaration.
406
407 Use 'bool' in new code, when appropriate.
408 * src/xheader.c (decode_record): Return bool, not int.
409 * src/common.h (read_header): Since it accepts bool, change
410 all callers to use false and true rather than 0 and 1.
411
412 * src/xheader.c (decode_record): Fix misspelling in diagnostic
413 "extended headed" -> "extended header".
414
415 GNU coding style fixes.
416 * src/xheader.c (decode_record, xheader_decode):
417 Do not use decls like "char *p, *q;".
418
419 Minor style fixes.
420 (xheader_store): Avoid parentheses around object operand of sizeof.
421
422 2003-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
423
424 * src/create.c (start_header): Store long file names
425 in "path" keyword of an extended header if in POSIX
426 mode.
427 (finish_header): print header before calling write_extended().
428 * src/list.c (list_archive): Always decode the header. This
429 is necessary so the extended header is processed and the correct
430 filename is printed no matter what the state of verbose_option.
431 * src/xheader.c (xhdr_tab): Reserved GNU keywords (commented out
432 for the time being).
433
434 2003-09-01 Paul Eggert <eggert@twinsun.com>
435
436 Update from gnulib, and correct fnmatch to fnmatch-gnu.
437 * bootstrap (gnulib_modules): Change fnmatch to fnmatch-gnu.
438 Sort.
439 * configure.ac (gl_USE_SYSTEM_EXTENSIONS): Use this instead
440 of AC_GNU_SOURCE.
441 * lib/.cvsignore: Add alloca.h, stdbool.h. Sort. Append newline.
442 * lib/Makefile.am (lib_OBJECTS): New macro, for convenience when
443 copying rules from gnulib module descriptions.
444 (BUILT_SOURCES, EXTRA_DIST, all-local, alloca.h):
445 Update from gnulib modules alloca, fnmatch, getline, stdbool.
446 * m4/.cvsignore: Add utimes-null.m4. Sort.
447
448 2003-09-01 Sergey Poznyakoff
449
450 Added initial support for creating POSIX headers.
451
452 * src/common.h (MAXOCTAL11,MAXOCTAL7): New defines
453 (string_to_chars): New functions
454 (struct xheader): Changed structure
455 (gid_to_gname,gname_to_gid,uid_to_uname,uname_to_uid): Changed
456 prototypes.
457 * src/create.c (string_to_chars): New function.
458 (write_extended): New function
459 (start_header): Create extended POSIX headers if necessary.
460 (finish_header): Likewise.
461 * src/list.c (print_header): Take user/group from
462 current_stat_info.
463 * src/names.c (gid_to_gname,gname_to_gid)
464 (uid_to_uname,uname_to_uid): Changed prototypes.
465 * src/tar.c: New option --format.
466 * src/tar.h (OLDGNU_COMPATIBILITY): Removed
467 (struct extra_header): Removed unused structure.
468 (union block.extra_header): Removed unused member.
469 * src/xheader.c: Implemented coder functions.
470 * bootstrap: Added obstack.
471 * lib/.cvsignore: Likewise.
472 * configure.ac: Added 'gl_OBSTACK'
473 * m4/Makefile.am: Added new files.
474 * m4/.cvsignore: Likewise.
475 * TODO: Minor formatting change
476
477 2003-08-31 Sergey Poznyakoff
478
479 Added initial support for POSIX extended and STAR headers
480 (only for listing/extracting).
481
482 * src/xheader.c: New file.
483 * src/Makefile.am: Added xheader.c
484 * src/tar.h (struct star_header): New datatype
485 (XHDTYPE,XGLTYPE): New defines
486 (enum archive_format:STAR_FORMAT): New member
487 (struct tar_stat_info): New datatype.
488 (union block.star_header): New member.
489 * src/common.h (orig_file_name,current_file_name)
490 (current_trailing_slash,current_link_name): Removed variables.
491 (current_stat_info): New variable
492 (current_stat): Removed
493 (extended_header): New variable
494 (decode_header): Changed prototype.
495 * src/list.c (decode_header): Added initial support for POSIX extended
496 and STAR headers.
497 (skip_member): Check oldgnu_header only if current_format is set
498 to OLDGNU_FORMAT.
499 * src/buffer.c: Use current_stat_info
500 * src/compare.c: Likewise.
501 * src/create.c: Likewise.
502 * src/delete.c: Likewise.
503 * src/incremen.c: Likewise.
504 * src/mangle.c: Likewise.
505 * src/update.c: Likewise.
506 * src/extract.c: Likewise.
507 (make_directories): Improved check for the existence of the directory
508 * src/tar.c (destroy_stat): New function.
509
510 2003-08-29 Paul Eggert <eggert@twinsun.com>
511
512 * NEWS, bootstrap: Drop en_GB locale; it was more trouble than it
513 was worth (e.g., different users in en_GB disagree about -ize
514 versus -ise).
515 * po/en_GB.po: Remove.
516
517 2003-07-28 Sergey Poznyakoff <gray@Mirddin.farlep.net>
518
519 * TODO: Updated
520 * NEWS: Updated
521 * src/tar.c: Removed support for the obsolete command line
522 options.
523 * doc/tar.texi: Removed references to the obsolete command
524 line options.
525
526 2003-07-27 Sergey Poznyakoff <gray@Mirddin.farlep.net>
527
528 * TODO: Updated
529 * NEWS: Updated
530 * doc/tar.texi: Updated
531 * src/common.h (check_links_option): New variable
532 (orig_file_name): New variable
533 (check_links): New proto.
534 * src/create.c (struct link.nlink): New member
535 (link_table): Static for the module.
536 (dump_file): Update `link' member when adding new links
537 to the link_table.
538 (check_links): New function.
539 * src/list.c (print_header): Use orig_file_name.
540 * src/tar.c: New option --check-links. Changed semantics of
541 -o to comply to UNIX98 when extracting and to its previous
542 semantics otherwise.
543 (main): Call check_links if --check-links. was given.
544
545 2003-07-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
546
547 * src/list.c (print_header): Revised
548 * NEWS: Started the entry for 1.13.26
549 * doc/Makefile.am (tar.dvi): Fixed TEXINPUTS value.
550
551 2003-07-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
552
553 * .cvsignore: Added to the repository.
554 * doc/.cvsignore: Likewise.
555 * lib/.cvsignore: Likewise.
556 * m4/.cvsignore: Likewise.
557 * po/.cvsignore: Likewise.
558 * scripts/.cvsignore: Likewise.
559 * src/.cvsignore: Likewise.
560 * tests/.cvsignore: Likewise.
561
562 * lib/Makefile.am: Added exitfail.[hc]
563 * src/misc.c (chdir_do): Fixed call to restore_cwd
564 * src/buffer.c (flush_read): Fixed behavior on short
565 reads right after opening the new archive (multiv01.sh test).
566 (new_volume): Special handling for "-".
567 * src/list.c (print_header): Print trailing slash if
568 current_trailing_slash was set (extrac03.sh,extrac04.sh tests).
569 * tests/multiv01.sh: Minor changes.
570 * m4/Makefile.am: Added missing files.
571
572 2003-07-05 Paul Eggert <eggert@twinsun.com>
573
574 Finish the checkin begin yesterday.
575
576 * NEWS: Document the user-visible changes installed in the last
577 two days.
578
579 * TODO: New file (actually, resurrected; but with new contents).
580
581 * src/list.c (read_and): Give full type for procedure arg.
582 (read_header): Strip trailing slashes, setting current_trailing_slash.
583 (tartime): Avoid int overflow when printing year (!).
584 (print_header): New arg specifying block ordinal. All uses changed.
585 Print link as 'h' type. Give labels for long links and names.
586
587 * src/misc.c (contains_dot_dot): Moved to names.c
588 (must_be_dot_or_slash): New function.
589 (safer_rmdir): Use it.
590 (remove_any_file): Now takes enum as option, not boolean.
591 Check for (Linux) EISDIR as well as (POSIX) EPERM when attempting
592 to unlink a directory.
593 (deref_stat): Accept bool, not int.
594
595 * src/names.c (namelist_match): Allow partial matches only if
596 recursive.
597 (hash_string_hasher): Renamed from hash_avoided_name.
598 (hash_string_compare): Renamed from compare_avoided_anames.
599 (hash_string_insert, hash_string_lookup): New functions.
600 (add_avoided_name, is_avoided_name): Use them.
601 (safer_name_suffix): New function.
602 (contains_dot_dot): Moved here from misc.c. Now returns bool, not int.
603
604 * src/rmt.c: Don't include print-copyr.h.
605 (prepare_input_buffer): New arg FD.
606 Do not read more than INT_MAX bytes at once,
607 since it breaks on some brain damaged Tru64 hosts.
608 Divide size by two
609 when retrying instead of subtracting 1024; for speed.
610 (main): Use gettext to translate (C), not print_copyright.
611
612 * src/system.h: Include <alloca.h> and <stdbool.h> unconditionally,
613 now that gnulib handles this.
614 Include <stddef.h> and <limits.h> unconditionally, now that we assume
615 C89 or better.
616 Assume that offsetof is defined in stddef.h.
617 Do not include <sys/param.h>.
618 (realloc, lseek): Do not declare.
619 (HAVE_DECL_VALLOC): Renamed from HAVE_VALLOC.
620 (CHAR_BIT, CHAR_MAX, UCHAR_MAX, LONG_MAX): Remove
621 declarations, since we now assume C89 or better.
622 (PARAMS): Remove, as we now assume C89. All uses changed.
623 (bindtextdomain, textdomain): Include <gettext.h> to define.
624 Include <unlocked-io.h>.
625 (valloc): Define if not defined, and if valloc is not declared.
626 (xstrdup): Remove decl.
627
628 * src/tar.c: Do not include <print-copyr.h>.
629 Include <getdate.h>.
630 (get_date): Remove decl.
631 (ATIME_PRESERVE_OPTION, CHECKPOINT_OPTION, FORCE_LOCAL_OPTION,
632 IGNORE_FAILED_READ_OPTION, INDEX_FILE_OPTION, NO_OVERWRITE_DIR_OPTION,
633 NUMERIC_OWNER_OPTION, RECURSIVE_UNLINK_OPTION, REMOVE_FILES_OPTION,
634 SHOW_OMITTED_DIRS_OPTION, TOTALS_OPTION): New constants.
635 (long_options, decode_options): Use them.
636 (OVERWRITE_DIR_OPTION): Remove.
637 (long_options): New options --index-file, --no-overwrite-dir.
638 Remove --overwrite-dir option.
639 (usage): Use PACKAGE_BUGREPORT.
640 (decode_options): Terminate new argv properly.
641 Use PACKAGE_NAME, PACKAGE_VERSION.
642 If verbose, report how we grokked any textual date option.
643 (main): Add support for index-file.
644
645 * tests/Makefile.am: Convert to UTF-8.
646 (AUTOMAKE_OPTIONS): Remove.
647 (TESTS): Add delete04.sh, multiv01.sh, options.sh.
648 (INCLUDES): Remove ../intl.
649 (LDADD): Don't link libtar.a twice.
650
651 * tests/genfile.c: Convert to UTF-8.
652 Don't include <print-copyr.h>.
653 (DEFAULT_PATTERN): Renamed from DEFAULT.
654 (ZEROS_PATTERN): Renamed from ZEROS.
655 (main): Use gettext to translate (C), not print_copyright.
656
657 2003-07-04 Paul Eggert <eggert@twinsun.com>
658
659 Revamp to meet current standards of autoconf, automake,
660 gettext, and gnulib, and incorporate new translations.
661
662 * config/config.guess, config/config.sub, config/depcomp,
663 config/install-sh, config/mdate-sh, config/missing,
664 config/mkinstalldirs, config/texinfo.texi:
665 Moved here from parent directory, or from doc.
666 * config.hin: Renamed from config.h.in.
667 * config/config.rpath: New file.
668
669 * intl: Remove this subdirectory.
670
671 * lib/fnmatch_.h: Renamed from lib/fnmatch.hin.
672
673 * lib/getstr.c, lib/getstr.h, lib/msleep.c, lib/print-copyr.c,
674 lib/print-copyr.h, lib/readutmp.c, lib/rename.c, lib/stpcpy.c,
675 lib/strstr.c, lib/strtoimax.c, lib/strtoll.c, lib/strtoull.c,
676 lib/strtoumax.c, lib/unicodeio.c, lib/unicodeio.h,
677 lib/xstrtoimax.c, m4/c-bs-a.m4, m4/ccstdc.m4, m4/check-decl.m4,
678 m4/decl.m4, m4/jm-mktime.m4, m4/prereq.m4, m4/xstrtoimax.m4,
679 stamp-h.in: Remove.
680
681 * lib/alloca_.h, lib/fnmatch_loop.c, lib/gettext.h, lib/pathmax.h,
682 lib/safe-write.c, lib/safe-write.h, lib/stdbool_.h, lib/strcase.h,
683 lib/stripslash.c, lib/unlocked-io.h, lib/xgetcwd.h, m4/alloca.m4,
684 m4/backupfile.m4, m4/bison.m4, m4/chown.m4, m4/dirname.m4,
685 m4/dos.m4, m4/exclude.m4, m4/fileblocks.m4, m4/ftruncate.m4,
686 m4/getdate.m4, m4/getopt.m4, m4/hash.m4, m4/human.m4,
687 m4/intdiv0.m4, m4/intmax_t.m4, m4/inttypes-pri.m4,
688 m4/inttypes_h.m4, m4/isc-posix.m4, m4/lchown.m4, m4/lib-ld.m4,
689 m4/lib-link.m4, m4/lib-prefix.m4, m4/memset.m4, m4/mktime.m4,
690 m4/modechange.m4, m4/nls.m4, m4/onceonly.m4, m4/pathmax.m4,
691 m4/po.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4,
692 m4/safe-read.m4, m4/safe-write.m4, m4/save-cwd.m4, m4/savedir.m4,
693 m4/ssize_t.m4, m4/stdbool.m4, m4/stdint_h.m4, m4/strcase.m4,
694 m4/strtoimax.m4, m4/strtol.m4, m4/strtoll.m4, m4/strtoul.m4,
695 m4/strtoull.m4, m4/strtoumax.m4, m4/tm_gmtoff.m4, m4/uintmax_t.m4,
696 m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4, m4/xstrtol.m4,
697 po/LINGUAS, po/Makevars, po/Rules-quot, po/boldquot.sed,
698 po/en@boldquot.header, po/en@quot.header, po/en_GB.po,
699 po/insert-header.sin, po/remove-potcdate.sin, po/stamp-po: New files.
700
701 * ABOUT-NLS, INSTALL, lib/addext.c, lib/alloca.c, lib/argmatch.c,
702 lib/argmatch.h, lib/backupfile.c, lib/backupfile.h, lib/dirname.c,
703 lib/dirname.h, lib/error.c, lib/exclude.c, lib/exclude.h,
704 lib/fnmatch.h, lib/full-write.c, lib/full-write.h, lib/getdate.h,
705 lib/getdate.y, lib/getline.c, lib/getline.h, lib/getopt.c,
706 lib/getopt.h, lib/getopt1.c, lib/hash.c, lib/hash.h, lib/human.c,
707 lib/human.h, lib/lchown.c, lib/malloc.c, lib/mktime.c,
708 lib/modechange.c, lib/modechange.h, lib/quote.c, lib/quote.h,
709 lib/quotearg.c, lib/quotearg.h, lib/realloc.c, lib/safe-read.c,
710 lib/safe-read.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
711 lib/savedir.h, lib/strcasecmp.c, lib/utime.c, lib/xalloc.h,
712 lib/xgetcwd.c, lib/xmalloc.c, lib/xstrdup.c, lib/xstrtol.c,
713 lib/xstrtol.h, lib/xstrtoumax.c, m4/codeset.m4, m4/d-ino.m4,
714 m4/error.m4, m4/fnmatch.m4, m4/getcwd.m4, m4/getline.m4, m4/gettext.m4,
715 m4/glibc21.m4, m4/iconv.m4, m4/inttypes.m4, m4/lcmessage.m4,
716 m4/longlong.m4, m4/malloc.m4, m4/mbrtowc.m4, m4/mbstate_t.m4,
717 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4, m4/ulonglong.m4,
718 m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4,
719 po/Makefile.in.in:
720 Upgrade to latest version from external source. The file "bootstrap"
721 now grabs these automatically, so we needn't keep track of them
722 in this change long any longer.
723
724 * Makefile.am (AUTOMAKE_OPTIONS): Remove. Now done by configure.ac.
725 (SUBDIRS): Remove intl.
726 * PORTS: Update for star, Macintosh.
727 * README, README-alpha: Suggest Autoconf 2.57, Automake 1.7.5,
728 Bison 1.875, gettext 0.12.1.
729 * THANKS: Add Bernhard Rosenkraenzer, Solar Designer.
730 * configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Convert to modern form.
731 (AC_CONFIG_AUX_DIR): New.
732 (AC_CONFIG_HEADERS): Rename config.h.in to config.hin, to be more
733 like coreutils.
734 (AC_PREREQ): Bump from 2.52 to 2.57.
735 (AC_GNU_SOURCE): New.
736 (AC_PROG_GCC_TRADITIONAL, AM_C_PROTOTYPES, AC_C_CONST): Remove;
737 we no longer support K&R C.
738 (YACC): Remove.
739 (AC_CHECK_HEADERS): Remove limits.h, poll.h, stdbool.h, stropts.h,
740 sys/ioccom.h, sys/param.h, sys/time.h, sys/timeb.h, wchar.h, wctype.h.
741 (AC_MBSTATE_T): Remove.
742 (HAVE_UTIME_H, HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
743 HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
744 HAVE_DECL_STRTOULL, HAVE_MKNOD): Remove our special code.
745 (AM_STDBOOL_H): Add.
746 (AC_HEADER_TIME, AC_STRUCT_TIMEZONE,
747 jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Remove.
748 (AC_CHECK_TYPE): Remove ssize_t.
749 (gt_TYPE_SSIZE_T): Add.
750 (jm_AC_PREREQ_XSTRTOUMAX, jm_PREREQ_ADDEXT, jm_PREREQ_ERROR,
751 jm_PREREQ_HUMAN, jm_PREREQ_QUOTEARG, jm_PREREQ_XGETCWD,
752 AC_FUNC_ALLOCA, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STRERROR_R,
753 AC_FUNC_FNMATCH, AC_FUNC_VPRINTF, AM_FUNC_GETLINE, jm_FUNC_MALLOC,
754 jm_FUNC_MKTIME, jm_FUNC_REALLOC):
755 Remove. Switch to gnulib macros like gl_BACKUPFILE instead.
756 (tar_LDADD): Rename to LIB_CLOCK_GETTIME. All uses changed.
757 (rmt_LDADD): Rename to LIB_SETSOCKOPT. All uses changed.
758 (AC_CHECK_FUNCS): Remove fchdir, ftime, getcwd, isascii, nap,
759 napms, poll, select, strstr, usleep.
760 (AC_REPLACE_FUNCS): Remove ftruncate, lchown, memset, rename,
761 rmdir, strcasecmp, strncasecmp, strtol, strtoul.
762 (AM_GNU_GETTEXT): Use external and need-ngettext options.
763 (AM_GNU_GETTEXT_VERSION): New.
764 (AC_OUTPUT): Remove intl/Makefile.
765
766 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
767 ($(srcdir)/tar.info, tar.dvi): Remove obsolete warnings.
768 * doc/fdl.texi: Update to current GNU version.
769 * doc/gettext.texi: Update to current coreutils version,
770 plus a copyright notice.
771 * doc/tar.texi: Switch to new method for doing copyright notices.
772 Use @acronym instead of @sc where appropriate.
773 Remove empty examples. Give a few more examples.
774
775 * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove.
776 (EXTRA_DIST, libtar_a_SOURCES): Switch to gnulib, so that they
777 are built up in pieces with +=.
778 (noinst_HEADERS, INCLUDES): Remove.
779 (BUILT_SOURCES, MAINTAINERCLEANFILES, MOSTLYCLEANFILES): New.
780 (libtar_a_LIBADD): Use $ rather than @.
781 (all-local, alloca.h, fnmatch.h, stdbool.h): New rules, from gnulib.
782
783 * m4/Makefile.am (EXTRA_DIST): Add alloca.m4, backupfile.m4,
784 bison.m4, chown.m4, dirname.m4, dos.m4, exclude.m4, fileblocks.m4,
785 ftruncate.m4, getdate.m4, getopt.m4, hash.m4, human.m4,
786 intdiv0.m4, intmax_t.m4, inttypes_h.m4, inttypes-pri.m4,
787 isc-posix.m4, lcown.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
788 memset.m4, mktime.m4, modechange.m4, nls.m4, onceonly.m4,
789 pathmax.m4, po.m4, quotearg.m4, quote.m4, rmdir.m4, safe-read.m4,
790 safe-write.m4, save-cwd.m4, savedir.m4, ssize_t.m4, stdbool.m4,
791 stdint_h.m4, strcase.m4, strtoimax.m4, strtoll.m4, strtol.m4,
792 strtoull.m4, strtoul.m4, strtoumax.m4, tm_gmtoff.m4, uintmax_t.m4,
793 unlocked-io.m4, xalloc.m4, xgetcwd.m4, xstrtol.m4.
794 Remove c-bs-a.m4, ccstdc.m4, check-decl.m4, decl.m4, jm-mktime.m4,
795 prereq.m4, xstrtoimax.m4.
796
797 * po/POTFILES.in: Remove tests/genfile.c; it doesn't need to
798 be translated, since it's not a user-visible tool.
799
800 * scripts/Makefile.am (AUTOMAKE_OPTIONS): Remove.
801
802 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove.
803 (INCLUDES): Remove ../intl. Put top-srcdir before ., for
804 consistency with coreutils.
805 (LDADD): Link LIBINTL after libtar.a, since
806 it's now external and should stand by itself.
807
808 * src/buffer.c (print_total_written): Adjust to new human.h
809 interface.
810 (child_open_for_compress): Do not increase size to BLOCKSIZE.
811 (open_archive): Open index file name.
812 Strip trailing slahes from file names.
813 (flush_write): Set size to 0 if not saving names.
814 (flush_write, flush_read): Use safer_name_suffix rather than
815 inline code.
816
817 * src/common.h: Include <quote.h>.
818 (absolute_names_option, atime_preserve_option, backup_option,
819 block_number_option, checkpoint_option, dereference_option,
820 force_local_option, ignore_failed_read_option, ignore_zeros_option,
821 incremental_option, interactive_option, multi_volume_option,
822 numeric_owner_option, one_file_system_option, recursive_unlink_option,
823 read_full_records_option, remove_files_option, same_order_option,
824 show_omitted_dirs_option, sparse_option, starting_file_option,
825 to_stdout_option, totals_option, touch_option, verify_option,
826 dev_null_output, now_verifying, we_are_root): Now bool, not int.
827 (current_trailing_slash, index_file_name, recent_long_name_blocks,
828 recent_long_link_blocks): New vars.
829 (NO_OVERWRITE_DIR_OLD_FILES): New constant.
830 (OVERWRITE_OLD_DIRS): Remove.
831 (enum remove_option): New enum.
832 (remove_any_file): Use it as option arg, not int.
833 (is_avoided_name, contains_dot_dot): Return bool, not int.
834 (safer_name_suffix): New decl.
835
836 * src/compare.c (now_verifying): Now bool, not int.
837 (fill_in_sparse_array): Move to extract.c. Now returns bool;
838 all callers changed to test for failure.
839 (diff_sparse_files): Take size from current_stat, not from param.
840 (diff_archive): Do not count trailing slashes in archives.
841 (verify_volume): Test for header failure after loop, not before.
842
843 * src/create.c (relativize): Remove; replaced by safer_name_suffix.
844 All callers changed.
845 (start_header): Clear devmajor and devminor fields, too.
846 (finish_header): New arg block_ordinal.
847 (init_sparsearray): Now extern. Set sp_array_size to
848 SPARSES_IN_OLDGNU_HEADER if it is zero.
849 (dump_file): Keep link table as a hash.
850 Do not count "file changed as we read it" as a failure.
851
852 * src/delete.c (recent_long_name_blocks, recent_long_link_blocks):
853 Move extern decl to common.h.
854
855 * src/extract.c (we_are_root): Now bool, not int.
856 (check_time): Warn about implausibly old time stamps.
857 (set_stat): Use utimbuf, not stat_info.
858 (prepare_to_extract): New arg DIRECTORY.
859 (fill_in_sparse_array): Moved here from compare.c.
860 (extract_sparse_file): Now returns off_t, giving size left.
861 Truncate file at end.
862 (extract_archive): Use safer_name_suffix rather than rolling our own.
863 Use fill_in_sparse_array rather than rolling our own.
864 Strip trailing slashes more effectively.
865 Check for unsafe names.
866
867 * src/incremen.c (struct directory): nfs and found are now of type
868 bool, not int.
869 (gnu_restore): Now takes directory name as argument, not offset
870 of directory name in a global. All uses changed.
871 (CURRENT_FILE_NAME): Remove.
872
873 New tests.
874 * tests/delete04.sh, tests/multiv01.sh, tests/options.sh: New
875 files.
876
877 2002-09-30 Paul Eggert <eggert@twinsun.com>
878
879 * src/rmt.c (prepare_input_buffer): Renamed form
880 prepare_record_buffer. All uses changed. Do not assume that
881 size_t is the same width as int.
882
883 2002-03-29 Paul Eggert <eggert@twinsun.com>
884
885 * src/incremen.c (get_directory_contents):
886 If ignore_failed_read_option, only warn about
887 get_directory_contents failures. Fix suggested by
888 Mark Costlow.
889
890 2002-01-31 Mark W. Eichin <eichin@thok.org>
891
892 * src/buffer.c (child_open_for_compress): Don't try to read
893 past the end of the buffer.
894
895 2001-10-11 Jim Meyering <meyering@lucent.com>
896
897 * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
898 and quote_n (1, ... to avoid clobbering a buffer.
899
900 2001-09-26 Paul Eggert <eggert@twinsun.com>
901
902 * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.25.
903
904 * src/buffer.c (flush_read): Don't diagnose partial blocks before
905 end of file; just ignore them silently.
906
907 * src/list.c (read_header): Don't keep around extended name
908 and link info indefinitely; keep it only for the next file.
909 This fixes a bug introduced in 1.13.24, and removes the need
910 for some static variables. Set recent_long_name and
911 recent_long_link to zero if there were no long links; this
912 avoids a violation of ANSI C rules for pointers in delete.c.
913 * THANKS: Add Christian Laubscher.
914
915 2001-09-26 Jim Meyering <meyering@lucent.com>
916
917 * doc/tar.texi (Remote Tape Server): is know -> is known
918
919 2001-09-25 Paul Eggert <eggert@twinsun.com>
920
921 * lib/unicodeio.c (EILSEQ): Include <iconv.h> first, since
922 <iconv.h> may define EILSEQ (e.g. libiconv). Define a
923 replacement EILSEQ to be ENOENT, not EINVAL, since callers may
924 want to distinguish EINVAL and EILSEQ.
925
926 2001-09-24 Christophe Kalt <Christophe.Kalt@kbcfp.com>
927
928 * src/extract.c (maybe_recoverable):
929 Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES.
930
931 2001-09-22 Paul Eggert <eggert@twinsun.com>
932
933 * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.24.
934
935 * ABOUT-NLS, intl/*: Update to gettext-0.10.40, replacing LGPL
936 with GPL.
937
938 * INSTALL, mkinstalldirs: Update to autoconf 2.52 version.
939 * PORTS: Add copyright notice, 'star' reference.
940 * README-alpha: Add copyright notice, autoconf 2.52 patch.
941 * THANKS: Add Christophe Kalt.
942 * config.sub: Upgrade to 2001-09-14 version.
943
944 * configure.ac (ALL_LINGUAS): Add ko.
945 * po/ko.po: Resurrected file.
946
947 * doc/convtexi.pl: Add coding advice for Emacs.
948
949 * doc/getdate.texi: Add copyright notice.
950
951 * doc/mdate-sh: Upgrade to automake 1.5 version.
952
953 * doc/tar.texi (extracting files): Mention --to-stdout.
954 (Option Summary, Dealing with Old Files): New option --overwrite-dir.
955 (Overwrite Old Files): Likewise.
956
957 * lib/Makefile.am (noinst_HEADERS):
958 Remove copysym.h. Add print-copyr.h, unicodeio.h.
959 (libtar_a_SOURCES): Remove copysym.c, Add print-copyr.c, unicodeio.c.
960
961 * lib/copysym.c, lib/copysym.h: Remove.
962 * lib/print-copyr.c, lib/print-copyr.h, lib/unicodeio.c,
963 lib/unicodeio.h: New files.
964
965 * lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c,
966 lib/mktime.c, lib/strtoll.c: Switch from LGPL to GPL.
967
968 * lib/quotearg.c (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
969 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
970
971 * m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4.
972 * m4/isc-posix.m4: Remove.
973
974 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit.
975
976 * po/POTFILES.in: Add copyright notice.
977
978 * src/Makefile.am (LDADD): Like libtar.a before @INTLLIBS@ as
979 well as after.
980 * tests/Makefile.am (LDADD): Likewise.
981
982 * src/buffer.c (write_archive_buffer, close_archive):
983 If an archive is a socket, treat it like a FIFO.
984 (records_read, records_written): New vars.
985 (write_archive_to_stdout): Now bool, not int.
986 (open_archive, flush_write, flush_read): Keep records_read and
987 records_written up to date.
988
989 * src/common.h (enum old_files): New value OVERWRITE_OLD_DIRS.
990 (write_archive_to_stdout): Now bool, not int.
991 (enum read_header): New value HEADER_SUCCESS_EXTENDED.
992 (read_header): Now takes bool arg. Existing callers modified
993 to pass 0, unless otherwise specified.
994
995 * src/delete.c (records_read): Remove; now a global.
996 (acting_as_filter): Now bool, not int.
997 (recent_long_name, recent_long_link, recent_long_name_blocks,
998 recent_long_link_blocks, records_read, records_written): New decls.
999 (records_skipped): New var.
1000 (move_archive): Don't divide by zero if arg is 0.
1001 Use the above vars to compute how far to move.
1002 (write_recent_blocks): New function.
1003 (delete_archive_member): Pass 1 to read_header, so that it doesn't
1004 read more than 1 block. Handle resulting HEADER_SUCCESS_EXTENDED code.
1005 Keep track of how many records have been skipped.
1006 Let the buffer code count records.
1007 When copying a header, copy any extended headers that came before it.
1008
1009 * src/extract.c (extract_archive): When marking a directory to be
1010 updated after symlinks, stat all directories after it in the
1011 delayed-set-stat list too, since they will be checked after
1012 symlinks. Add support for --overwrite-dir.
1013
1014 * src/list.c (recent_long_name, recent_long_link,
1015 recent_long_name_blocks, recent_long_link_blocks): New vars.
1016 (read_and): Pass 0 to read_header.
1017 (read_header): New arg RAW_EXTENDED_HEADERS. Store away extended
1018 headers into new vars. Null-terminate incoming symbolic links.
1019
1020 * src/rmt.c: Include print-copyr.h, not copysym.h.
1021 (main): Use print_copyright, not copyright_symbol.
1022 * src/tar.c (decode_options): Likewise.
1023 (OVERWRITE_DIR_OPTION): New constant.
1024 (long_options, usage, decode_options): Add --overwrite-dir.
1025
1026 * src/tar.h: Put copyright notice into documentation.
1027
1028 * tests/Makefile.am (TESTS): Add delete03.sh.
1029 * tests/delete03.sh: New file.
1030
1031 * tests/genfile.c: Include print-copyr.h, not copysym.h.
1032 (main): Use print_copyright, not copyright_symbol.
1033 Include <argmatch.h>.
1034 (pattern_strings): Remove.
1035 (pattern_args, pattern_types): New constants.
1036 (main): Use XARGMATCH, not argmatch.
1037
1038 2001-09-20 Jim Meyering <meyering@lucent.com>
1039
1040 * lib/xstrtol.c (strtoimax): Guard declaration with
1041 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
1042 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
1043 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
1044 (strtoumax): Likewise, for completeness (it wasn't necessary).
1045 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
1046 Check for declaration of strtoimax.
1047 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
1048 Check for declaration of strtoumax.
1049
1050 2001-09-16 Paul Eggert <eggert@twinsun.com>
1051
1052 * fnmatch.m4 (jm_FUNC_FNMATCH): Fix typo in previous patch: yes -> no.
1053
1054 2001-09-14 Paul Eggert <eggert@twinsun.com>
1055
1056 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.23.
1057
1058 * README-alpha: Describe automake patch.
1059
1060 * configure.ac (LIBOBJS):
1061 Remove automake 1.4 workaround, as we're using 1.5 now.
1062 (USE_INCLUDED_LIBINTL): New AC_DEFINE.
1063
1064 * lib/copysym.c: Include stddef.h, for size_t.
1065 Include langinfo.h if needed.
1066 Use locale_charset only if USE_INCLUDED_LIBINTL;
1067 if not, use nl_langinfo (CODESET) if available.
1068
1069 2001-09-13 Paul Eggert <eggert@twinsun.com>
1070
1071 * config.guess, config.sub: Sync with canonical versions.
1072
1073 * configure.ac (jm_PREREQ_XGETCWD): Add.
1074
1075 * lib/Makefile.am (noinst_HEADERS): Add copysym.h.
1076 (libtar_a_SOURCES): Add copysym.c.
1077 * copysym.c, copysym.h: New files.
1078
1079 * lib/error.c: Sync with fileutils version.
1080
1081 * m4/Makefile.am (EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4.
1082 * m4/getcwd.m4: New file.
1083 * m4/uintmax_t.m4: Remove.
1084
1085 * m4/gettext.m4 (AM_WITH_NLS):
1086 Fix bug with calculating version of Bison 1.29.
1087 Reported by Karl Berry.
1088
1089 * src/Makefile.am (datadir): Remove.
1090
1091 * src/rmt.c: Include copysym.h.
1092 (main): Use copyright_symbol to translate copyright notice,
1093 instead of gettext.
1094 * src/tar.c: Likewise.
1095 * tests/genfile.c: Likewise.
1096
1097 * src/system.h (MB_LEN_MAX): New symbol.
1098
1099 2001-09-11 Paul Eggert <eggert@twinsun.com>
1100
1101 * src/extract.c (struct delayed_set_stat): New member
1102 'after_symlinks'.
1103 (delay_set_stat): Initialize it to 0.
1104 (set_mode): New arg current_stat_info. Use it (if nonnull) to avoid
1105 taking an extra stat ourselves. All callers changed.
1106 (set_stat): Likewise.
1107 (apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
1108 If false, stop when encountering a struct whose 'after_symlinks'
1109 member is true. Otherwise, go through all structures but check
1110 them more carefully. All callers changed.
1111 (extract_archive): When extracting a deferred symlink, if its parent
1112 directory's status needs fixing, then mark the directory as needing
1113 to be fixed after symlinks.
1114 (extract_finish): Fix status of ordinary directories, then apply
1115 delayed symlinks, then fix the status of directories that are
1116 ancestors of delayed symlinks.
1117
1118 * src/rtapelib.c (rexec):
1119 Remove declaration; it ran afoul of prototypes on Crays.
1120 Reported by Wendy Palm of Cray.
1121
1122 2001-09-06 Paul Eggert <eggert@twinsun.com>
1123
1124 * lib/strtoimax.c (HAVE_LONG_LONG):
1125 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
1126 (strtoimax): Use sizeof (long), not
1127 sizeof strtol (ptr, endptr, base),
1128 to work around bug in IBM C compiler.
1129
1130 2001-09-04 Paul Eggert <eggert@twinsun.com>
1131
1132 * lib/xgetcwd.c: Include "xalloc.h".
1133 (xgetcwd): Do not return NULL when memory is exhausted; instead,
1134 report an error and exit.
1135
1136 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
1137 (jm_PREREQ): Use it.
1138
1139 2001-09-03 Paul Eggert <eggert@twinsun.com>
1140
1141 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
1142 (jm_PREREQ_XGETCWD): New macro.
1143
1144 * lib/exclude.c (fnmatch_no_wildcards):
1145 Fix typo that caused us to do case-folding
1146 search even when that was not desired. This occurred only in the
1147 no-wildcard case.
1148
1149 * lib/xgetcwd.c: Include pathmax.h if not HAVE_GETCWD.
1150 Do not include xalloc.h.
1151 (INITIAL_BUFFER_SIZE): New symbol.
1152 Do not use xmalloc / xrealloc, since the caller is responsible for
1153 handling errors. Preserve errno around `free' during failure.
1154 Do not overrun buffer when using getwd.
1155
1156 * lib/xgetcwd.c (xgetcwd):
1157 Use HAVE_GETCWD_NULL, not defined __GLIBC__ && __GLIBC__ >= 2,
1158 to decide whether to use getcwd (NULL, 0).
1159
1160 2001-09-02 Paul Eggert <eggert@twinsun.com>
1161
1162 * lib/xgetcwd.c: Fix typo in local var; from Jim Meyering.
1163
1164 2001-09-01 Jim Meyering <meyering@lucent.com>
1165
1166 * exclude.c: Use `""', not `<>' to #include non-system header files.
1167 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
1168 and strncasecmp as r-values. Unixware didn't have declarations.
1169
1170 2001-08-31 Jim Meyering <meyering@lucent.com>
1171
1172 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
1173 Use an initial, malloc'd, buffer of length 128 rather than
1174 a statically allocated one of length 1024.
1175
1176 2001-08-30 Paul Eggert <eggert@twinsun.com>
1177
1178 * lib/utime.c: Include full-write.h.
1179 * lib/xstrtol.c (strtoimax): New decl.
1180
1181 2001-08-29 Paul Eggert <eggert@twinsun.com>
1182
1183 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.22.
1184
1185 * src/create.c (dump_file): Relativize link names before dumping.
1186 This fixes a bug reported by Jose Pedro Oliveira.
1187
1188 * src/create.c (dump_file): Use offsetof when computing sizes for
1189 struct hack; this avoids wasted space in some cases.
1190 * src/incremen.c (note_directory, find_directory): Likewise.
1191 * src/names.c (name_gather, addname): Likewise.
1192
1193 * src/extract.c (extract_archive): Use strcpy, not memcpy,
1194 for consistency with other code that does similar things.
1195 * src/names.c (name_gather): Likewise.
1196
1197 * src/names.c (read_name_from_file, name_next, name_gather,
1198 add_hierarchy_to_namelist): Avoid quadratic behavior when
1199 reallocating buffers. Check for buffer size overflow.
1200 (addname): Avoid unnecessary clearing of memory.
1201
1202 2001-08-29 "Jan D." <Jan.Djarv@mbox200.swipnet.se>
1203
1204 * src/extract.c (delay_set_stat): Fix off-by-one error in file
1205 name size allocation that caused core dumps.
1206
1207 2001-08-28 Paul Eggert <eggert@twinsun.com>
1208
1209 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.21.
1210
1211 * configure.ac (GNU_SOURCE): Define to 1, not /**/.
1212 (major_t, minor_t, ssize_t): Use new-style AC_CHECK_TYPE.
1213 (daddr_t): Remove; no longer used.
1214 (jm_PREREQ_HUMAN): Add.
1215
1216 * acconfig.h: Remove; no longer needed.
1217
1218 * config.guess, config.sub:
1219 New files, from automake 1.5. Gettext 0.10.39 needs them.
1220 * depcomp, missing, mkinstalldirs: Upgrade to automake 1.5.
1221
1222 * Makefile.am (AUTOMAKE_OPTIONS): Add dist-bzip2.
1223 (SUBDIRS): Put intl before lib, as gettext requires.
1224
1225 * ABOUT-NLS: Upgrade to gettext 0.10.39.
1226 * intl: Upgrade entire directory to gettext 0.10.39.
1227 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4:
1228 New files, from gettext 0.10.39.
1229 * m4/gettext.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4,
1230 Upgrade to gettext 0.10.39,
1231 * po/Makefile.in.in: Likewise, except fix a typo in its copying
1232 permissions.
1233 * po/cat-id-tbl.c, po/stamp-cat-id:
1234 Remove; no longer used by gettext 0.10.39.
1235 * po/ChangeLog: New file.
1236
1237 * doc/Makefile.am (EXTRA_DIST): Add freemanuals.texi.
1238 $(srcdir)/tar.texi: Likewise.
1239 * doc/freemanuals.texi: New file.
1240 * doc/tar.texi (Free Software Needs Free Documentation): New appendix.
1241 `fileds' -> `fields'
1242 * doc/texinfo.tex: Upgrade to version 2001-07-25.07.
1243
1244 * lib/Makefile.am (EXTRA_DIST): Add strtoll.c, strtoimax.c.
1245 (noinst_HEADERS): Add quote.h.
1246 (libtar_a_SOURCES): Add quote.c, xstrtoimax.c.
1247
1248 * lib/exclude.c: Fix typo in '#include <stdint.h>' directive.
1249
1250 * lib/full-write.c, lib/savedir.c: Comment fix.
1251
1252 * lib/pathmax.h: Remove.
1253
1254 * lib/quote.c, lib/quote.h: New files.
1255
1256 * lib/xgetcwd.c: Don't include pathmax.h.
1257 Include stdlib.h and unistd.h if available.
1258 Include xalloc.h.
1259 (xmalloc, xstrdup, free): Remove decls.
1260 (xgetcwd): Don't assume sizes fit in unsigned.
1261 Check for overflow when computing sizes.
1262 Simplify reallocation code.
1263
1264 * lib/xmalloc.c: Quote failure tests.
1265
1266 * lib/strtoumax.c, lib/xstrtoimax.c: New files.
1267
1268 * lib/strtoimax.c: Renamed from strtouxmax.c. Make it more
1269 similar to strtol.c.
1270 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
1271 (verify): New macro.
1272 (strtoumax, uintmax_t, strtoull, strtol): Remove.
1273 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
1274 (strtoimax): Renamed from strtoumax. All uses of unsigned values
1275 changed to signed values. Check sizes at compile-time, not
1276 run-time. Prefer strtol to strtoll if both work.
1277 (main): Remove.
1278
1279 * lib/xstrtol.h (xstrtoimax): New decl.
1280
1281 * m4/Makefile.am (EXTRA_DIST):
1282 Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4,
1283 longlong.m4, xstrtoimax.m4.
1284
1285 * m4/inttypes.m4 (jm_AC_HEADER_INTTYPES_H):
1286 Remove; now done by autoconf.
1287 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with
1288 Use AC_CHECK_TYPE instead of merely looking for the header.
1289
1290 * m4/uintmax_t.m4: Use shorter comment.
1291
1292 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
1293 Quote first arg of AC_DEFUN.
1294 Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they
1295 is needed to parse the include file.
1296 Simplify logic behind the args to AC_REPLACE.
1297
1298 * src/Makefile.am (OMIT_DEPENDENCIES): Remove.
1299
1300 * src/ansi2knr.1, src/ansi2knr.c: Remove; wasn't being used.
1301
1302 * src/rmt.c (main):
1303 Use "Copyright %d" to simplify the translator's job in the future.
1304 Advise translator about circle-C.
1305 * src/tar.c: (decode_options): Likewise.
1306 * tests/genfile.c (main): Likewise.
1307
1308 2001-08-28 Jim Meyering <meyering@lucent.com>
1309
1310 * lib/argmatch.c: Include "quote.h".
1311 (argmatch_invalid): Quote the context.
1312
1313 * lib/dirname.c (dir_name): Fix typo on PC platforms.
1314
1315 * lib/backupfile.c, lib/basename.c, lib/dirname.c, lib/strtoul.c:
1316 Use single-quote for local .h files.
1317
1318 * lib/error.h (__attribute__): Don't depend on __STRICT_ANSI__.
1319
1320 * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Upgrade to recent
1321 glibc versions.
1322
1323 * lib/getdate.y (get_date): Initialize tm_isdst to -1 before
1324 invoking mktime the last time.
1325
1326 * lib/pathmax.h: Use #if rather than #ifdef for HAVE_UNISTD_H.
1327
1328 * lib/rename.c: Major rewrite by Volker Borchert to use system
1329 rename function, but to work around problems with trailing
1330 slashes.
1331
1332 * lib/strtoll.c: New file, from glibc.
1333 * lib/strtoul.c: Update from glibc.
1334
1335 * lib/strtouxmax.c: Renamed from lib/strtoumax.c.
1336 Add support for signed numbers, too.
1337 (strtoul, strtoull): Do not declare if STRTOUXMAX_UNSIGNED
1338 is not defined.
1339 (strtol, strtoll): Declare as needed, if STRTOUXMAX_UNSIGNED is
1340 not defined.
1341 (strtoumax, uintmax_t, strtoull, strtoul): New macros.
1342 (main): Use generic names in debugging output.
1343 * lib/strtoimax.c: Plus add the following changes of my own:
1344 (main): Use accurate names in debugging output.
1345
1346 * lib/xgetcwd.c (xgetcwd): Use getcwd if glibc 2 or later.
1347 Don't use PATH_MAX.
1348
1349 * m4/c-bs-a.m4, m4/check-decl.m4, m4/d-ino.m4, m4/error.m4,
1350 m4/getline.m4, m4/jm-mktime.m4, m4/malloc.m4, m4/mbrtowc.m4,
1351 m4/mbstate_t.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/utimbuf.m4,
1352 m4/utime.m4, m4/utimes.m4:
1353 Quote the first argument in each use of AC_DEFUN.
1354
1355 * m4/getline.m4: Don't use string.h.
1356
1357 * m4/inttypes.m4, m4/longlong.m4, m4/xstrtoimax.m4: New files.
1358
1359 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): @%:@ -> #.
1360
1361 2001-08-27 Paul Eggert <eggert@twinsun.com>
1362
1363 * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.20.
1364
1365 The biggest change is the new --exclude semantics and options.
1366 The basic idea was suggested by Gerhard Poul; thanks!
1367
1368 * NEWS: Describe new --exclude semantics and options, and bug fixes.
1369 * README: ignfail.sh fails on some NFS hosts.
1370 * NEWS, README, lib/xstrtol.h: Add copyright notice.
1371
1372 * Makefile.am (ACLOCAL_AMFLAGS): Add -I m4.
1373 (M4DIR, ACINCLUDE_INPUTS, $(srcdir)/acinclude.m4):
1374 Remove; the automake bug has been fixed.
1375 * acinclude.m4: Remove.
1376
1377 * configure.ac: Renamed from configure.in.
1378 (AC_PREREQ): Bump from 2.13 to 2.52.
1379 (ALL_LINGUAS): Add id, tr. Remove ko, as po/ko.po (dated
1380 1997-05-30) has an encoding error.
1381 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf.
1382 (AC_FUNC_FNMATCH): Use AC_CONFIG_LINKS, not AC_LINK_FILES.
1383
1384 * doc/fdl.texi: Update to current GNU version.
1385
1386 * doc/tar.texi: Put leading '*' in direntry.
1387 Accommodate new gfdl sectioning.
1388 New option --recursion (the default) that is the inverse of
1389 --no-recursion.
1390
1391 New options --anchored, --ignore-case, --wildcards,
1392 --wildcards-match-slash, and their negations (e.g., --no-anchored).
1393 Along with --recursion and --no-recursion, these control how exclude
1394 patterns are interpreted. The default interpretation of exclude
1395 patterns is now --no-anchored --no-ignore-case --recursion
1396 --wildcards --wildcards-match-slash.
1397
1398 * lib/Makefile.am (OMIT_DEPENDENCIES): Remove.
1399
1400 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
1401 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
1402 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
1403 Include if available.
1404 (<xalloc.h>): Include
1405 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
1406 (verify): New macro. Use it to verify that EXCLUDE macros do not
1407 collide with FNM macros.
1408 (struct patopts): New struct.
1409 (struct exclude): Use it, as exclude patterns now come with options.
1410 (new_exclude): Support above changes.
1411 (new_exclude, add_exclude_file):
1412 Initial size must now be a power of two to simplify overflow checking.
1413 (free_exclude, fnmatch_no_wildcards): New function.
1414 (excluded_filename): No longer requires options arg, as the options
1415 are determined by add_exclude. Now returns bool, not int.
1416 (excluded_filename, add_exclude):
1417 Add support for the fancy new exclusion options.
1418 (add_exclude, add_exclude_file): Now takes int options arg.
1419 Check for arithmetic overflow when computing sizes.
1420 (add_exclude_file): xrealloc might modify errno, so don't
1421 realloc until after errno might be used.
1422
1423 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
1424 New macros.
1425 (free_exclude): New decl.
1426 (add_exclude, add_exclude_file): Now takes int options arg.
1427 (excluded_filename): No longer requires options arg, as the options
1428 are determined by add_exclude. Now returns bool, not int.
1429
1430 * lib/prepargs.c: Include <string.h>; required for C99 since
1431 we use strlen.
1432
1433 * lib/quotearg.c:
1434 BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.
1435
1436 * lib/xstrtol.h (_DECLARE_XSTRTOL): Improve quality of
1437 diagnostic for LONGINT_INVALID_SUFFIX_CHAR.
1438
1439 * m4/Makefile.am (EXTRA_DIST): Add check-decl.m4, mbrtowc.m4.
1440 Remove inttypes_h.m4, largefile.m4, mktime.m4.
1441
1442 * m4/inttypes_h.m4, m4/largefile.m4, m4/mktime.m4: Remove;
1443 subsumed by Autoconf 2.50.
1444
1445 * m4/error.m4: Upgrade to serial 2.
1446
1447 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Upgrade to serial 4, but
1448 remove test for GNU C library. It's not correct, as some
1449 older glibcs are buggy.
1450
1451 * m4/getline.m4, m4/malloc.m4: Upgrade to serial 4.
1452
1453 * m4/prereq.m4: Upgrade to serial 20, but then:
1454 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
1455 (jm_PREREQ_EXCLUDE): New macro.
1456 (jm_PREREQ_HUMAN): Remove jm_AC_HEADER_INTTYPES_H, as it is subsumed
1457 by autoconf 2.5x.
1458
1459 * m4/realloc.m4: Upgrade to serial 4.
1460
1461 * m4/strerror_r.m4: Revert to serial 1002.
1462
1463 * m4/uintmax_t.m4: Upgrade to autoconf 2.5x.
1464
1465 * m4/utimes.m4: Upgrade to latest version (still "serial 3").
1466
1467 * m4/xstrtoumax.m4: Upgrade to serial 3, but then:
1468 (jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as
1469 it is now subsumed by autoconf. Add inttypes.h.
1470
1471 * po/cs.po, po/da.po, po/de.po, po/es.po, po/et.po, po/fr.po,
1472 po/it.po, po/pl.po, po/sl.po, po/sv.po: Sync with translation project.
1473
1474 * src/buffer.c (new_volume): Stop if the script exits with an error.
1475
1476 * src/common.h (excluded_with_slash, excluded_without_slash):
1477 Remove, replacing by:
1478 (excluded): New decl.
1479 (link_error): New decl.
1480 (excluded_name): Now returns bool.
1481
1482 * src/extract.c:
1483 (struct delayed_symlinks, extract_archive, apply_delayed_symlinks):
1484 Support hard links to symbolic links.
1485
1486 (struct delayed_symlink): Remove 'names' member, replacing it with
1487 'sources' and 'target' member. All uses changed.
1488
1489 (struct string_list): New type.
1490
1491 (delayed_set_stat, extract_archive): Use offsetof when computing sizes
1492 for struct hack; this avoids wasted space in some cases.
1493
1494 (extract_archive): Fix test for absolute pathnames and/or "..".
1495 Use link_error to report errors for links.
1496 Remove redundant trailing '/' at "really_dir", for all uses, not
1497 just before invoking mkdir.
1498 If overwriting old files, do not worry so much about existing
1499 directories.
1500 Fix mode computation in the case where the directory exists.
1501
1502 (apply_delayed_symlinks): If we can't make a hard link to a symbolic
1503 link, make a copy of the symbolic link.
1504
1505 * src/incremen.c (get_directory_contents):
1506 If ignore_failed_read_option, only warn about
1507 stat failures.
1508
1509 * src/list.c (from_header): Do not issue a diagnostic if TYPE is zero.
1510 However, check for error even for '-' or '+' case.
1511
1512 (print_header): Try parsing uids and gids as unsigned integers first,
1513 and as a uid_t or gid_t only if that fails. This adds support for
1514 listing positive uids and gids that are greater than UID_MAX and
1515 GID_MAX.
1516
1517 * src/misc.c (link_error): New function.
1518
1519 * src/names.c (collect_and_sort_names):
1520 If ignore_failed_read_option, only warn about
1521 stat errors.
1522
1523 (excluded_name): Now returns bool. Simplify, as the fancy
1524 features are now all in excluded_filename.
1525
1526 * src/rtapelib.c (base_name): Remove decl, as system.h now
1527 declares it.
1528
1529 * src/system.h: Include stddef.h if available.
1530 (offsetof): Declare if stddef.h doesn't.
1531
1532 Include <dirname.h>.
1533 (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now defined by dirname.h.
1534
1535 * src/tar.c (ANCHORED_OPTION, IGNORE_CASE_OPTION,
1536 NO_ANCHORED_OPTION, NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION,
1537 NO_WILDCARDS_MATCH_SLASH_OPTION, WILDCARDS_OPTION,
1538 WILDCARDS_MATCH_SLASH_OPTION):
1539 New enum values.
1540
1541 (long_options, usage, decode_options): Add support for --anchored,
1542 --ignore-case, --no-anchored, --no-ignore-case, --no-wildcards,
1543 --no-wildcards-match-slash, --recursion, --wildcards,
1544 --wildcards-match-slash.
1545
1546 (decode_options): Implement the new way of interpreting exclude
1547 patterns.
1548
1549 (usage): --newer-mtime takes a DATE operand. DATE may be a file name.
1550
1551 (OPTION_STRING, decode_options): Add -I, -y. Currently these options
1552 just print error messages suggesting alternatives.
1553
1554 (add_filtered_exclude): Remove.
1555
1556 * tests/Makefile.am (TESTS): Alphabetize, except put version.sh first.
1557
1558 * tests/extrac04.sh (out): Remove
1559 directory/subdirectory/file1, as the new semantics for
1560 --exclude exclude it.
1561
1562 * tests/genfile.c (main): Don't use non-ASCII char in msgid.
1563
1564 2001-08-12 Paul Eggert <eggert@twinsun.com>
1565
1566 * lib/addext.c (<errno.h>): Include.
1567 (errno): Declare if not defined.
1568 (addext): Work correctly on the Hurd, where pathconf returns -1 and
1569 leaves errno alone, because there is no limit. Also, work even if
1570 size_t is narrower than long.
1571
1572 2001-07-08 Paul Eggert <eggert@twinsun.com>
1573
1574 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
1575
1576 2001-05-10 Paul Eggert <eggert@twinsun.com>
1577
1578 * lib/addext.c (ISSLASH, base_name): Remove decls; now in dirname.h.
1579 Include <backupfile.h> and <dirname.h> after size_t is defined.
1580 (addext): Use base_len to trim redundant trailing slashes instead of
1581 doing it ourselves.
1582
1583 * lib/backupfile.c (ISSLASH, base_name):
1584 Remove decls; now in dirname.h.
1585 Include <argmatch.h>, <backupfile.h>, <dirname.h> after size_t
1586 is defined.
1587 (find_backup_file_name): Rename locals to avoid new functions.
1588 Use base_len instead of rolling it ourselves.
1589 Work even if dirlen is 0.
1590 Use a dir of '.' if given the empty string.
1591
1592 * lib/basename.c:
1593 Do not include <stdio.h>, <assert.h>; no longer needed.
1594 (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
1595 Include <string.h>, <dirname.h>.
1596 (base_name): Allow file names ending in slashes, other than names
1597 that are all slashes. In this case, return the basename followed
1598 by the slashes.
1599
1600 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
1601 (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
1602 (dir_len): Renamed from dirlen.
1603 All callers changed.
1604
1605 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
1606 New macros.
1607 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
1608
1609 2001-02-16 Paul Eggert <eggert@twinsun.com>
1610
1611 * lib/quotearg.c (mbrtowc, mbrtowc, mbsinit):
1612 Do not declare or define if HAVE_MBRTOWC,
1613 since the test for HAVE_MBRTOWC now requires proper declarations.
1614
1615 * lib/alloca.c (malloc): Undef before defining.
1616
1617 2001-02-13 Paul Eggert <eggert@twinsun.com>
1618
1619 * src/compare.c (read_and_process): Use off_t for size.
1620 From Maciej W. Rozycki.
1621
1622 2001-01-26 Paul Eggert <eggert@twinsun.com>
1623
1624 * lib/quotearg.c: Include stddef.h. From Jim Meyering.
1625
1626 2001-01-12 Paul Eggert <eggert@twinsun.com>
1627
1628 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.19.
1629
1630 * lib/savedir.h (savedir): Remove size arg.
1631
1632 * doc/tar.texi: Add @setchapternewpage odd.
1633 Remove -I as an alias for -T, for now.
1634 Add @dircategory.
1635 Update copyright. Remove "Published by".
1636 Dates beginning with / or . are taken to be file names.
1637
1638 * src/tar.c (<time.h>): Do not include;
1639 (time): Do not declare.
1640 (usage): Remove -I as an alias for -T.
1641 (OPTION_STRING): Remove -I.
1642 (decode_options): Dates that look like an absolute path name,
1643 or that start with '.', are presumed to be file names whose
1644 dates are taken.
1645 Remove 'I' as an aliase for 'T'.
1646 Update copyright.
1647
1648 * src/extract.c (<time.h>): Do not include; system.h now does this.
1649 (make_directories): Skip filesystem prefixes.
1650 Don't assume '/' is the only separator.
1651 (extract_sparse_file): Use new full_write semantics.
1652 On write error, return instead of invoking skip_file.
1653 Do not free sparsearray; caller does this now.
1654 (apply_nonancestor_delayed_set_stat): Do not assume '/' is the only
1655 separator.
1656 (extract_archive): Don't assume file name lengths fit in int.
1657 Report what got stripped from member name; it might be more than '/'.
1658 Use new full_write semantics.
1659 Do not pass redundant trailing "/" to mkdir, as POSIX does not allow
1660 mkdir to ignore it.
1661 Do not report mkdir error if old_files_option == KEEP_OLD_FILES.
1662
1663 * src/buffer.c (<time.h>): Do not include; system.h now does this.
1664 (time): Remove decl; likewise.
1665 (child_open_for_uncompress): Use new full_write semantics.
1666 (flush_write): Use ISSLASH instead of testing for '/'.
1667 (flush_read): Likewise.
1668
1669 * src/rmt.h (_remdev): Look for / anywhere in Path.
1670
1671 * src/misc.c (contains_dot_dot): Skip filesystem prefix.
1672 Don't assume '/' is the only separator.
1673 (safer_rmdir): Don't assume '/' is the only separator.
1674
1675 * src/compare.c (diff_archive): Don't assume '/' is the only separator.
1676
1677 * lib/dirname.h (dirlen): New decl.
1678
1679 * src/incremen.c (get_directory_contents):
1680 Remove path_size arg; all callers changed.
1681 Don't assume '/' is the only directory separator.
1682 (gnu_restore): Work even if file name length doesn't fit in int.
1683
1684 * lib/addext.c (ISSLASH): New macro.
1685 (addext): Trim any redundant trailing slashes.
1686
1687 * src/names.c (name_next):
1688 Don't assume '/' is the only directory separator.
1689 (namelist_match): Likewise.
1690 (add_hierarchy_to_namelist): Remove dirsize arg.
1691 Do not assume '/' is the only directory separator.
1692 (new_name): Likewise.
1693
1694 * lib/Makefile.am (noinst_HEADERS): Add dirname.h, full-write.h.
1695 (libtar_a_SOURCES): Add dirname.c.
1696
1697 * src/create.c (relativize):
1698 New function, with much of old start_header's guts.
1699 Handle filesystem prefixes.
1700 (start_header): Use this new function.
1701 (init_sparsearray): Don't bother to zero out the new array;
1702 it's not needed.
1703 (deal_with_sparse): Fix array allocation bug.
1704 (create_archive): Don't assume '/' is the only separator.
1705 (dump_file): Likewise.
1706 Don't worry about leading / in symlink targets.
1707
1708 * lib/savedir.c (savedir):
1709 Remove size arg; it wasn't portable. All callers changed.
1710
1711 * lib/utime.c (utime_null): Adjust to new full_write convention.
1712
1713 * configure.in (YACC): Avoid portability problem with Ultrix sh.
1714
1715 * lib/backupfile.c: Include <dirname.h>.
1716 (ISSLASH): New macro.
1717 (find_backup_file_name): Use dirlen to calculate directory lengths.
1718 (max_backup_version): Strip redundant trailing slashes.
1719
1720 * src/common.h: Include <full-write.h>.
1721 (get_directory_contents): No longer has size arg.
1722 (gnu_restore): Arg is size_t, not int.
1723
1724 * src/system.h: Include <time.h>.
1725 (time): Declare if not defined.
1726
1727 * lib/full-write.c: Include full-write.h, not safe-read.h.
1728 full_write returns size_t, with short writes meaning failure.
1729 All callers changed.
1730
1731 * src/rtapelib.c: Include full-write.h.
1732
1733 * src/rmt.c: Include full-write.h.
1734 (main): Update copyright.
1735
1736 * doc/getdate.texi: Mention that only English is supported.
1737 Show how to use "date" so that the output is acceptable to getdate.
1738 Mention Z as an abbreviation for UTC.
1739
1740 * lib/full-write.h: New file.
1741
1742 * src/list.c: system.h now does time.h stuff.
1743
1744 * lib/dirname.c:
1745 Use HAVE_STDLIB_H, not STDC_HEADERS, to decide whether to include
1746 stdlib.h.
1747 Do not include string.h, strings.h, or assert.h; no longer needed.
1748 (strrchr, memrchr, malloc): Remove decls; no longer needed.
1749 Include <xalloc.h>.
1750 (base_name): New decl.
1751 (BACKSLASH_IS_PATH_SEPARATOR): Remove.
1752 (dir_name_r): Remove.
1753 (dirlen): New function.
1754 (dir_name): Use dirlen instead of dir_name_r.
1755 (<string.h>, <strings.h>): Include only if test program.
1756 (main): Use "return 0", not "exit (0)".
1757
1758 2000-12-08 Paul Eggert <eggert@twinsun.com>
1759
1760 * lib/dirname.h: New file.
1761
1762 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
1763
1764 * lib/fnmatch.c: Do not comment out all the code if we are using
1765 the GNU C library, because in some cases we are replacing buggy
1766 code in the GNU C library itself.
1767
1768 2000-10-30 Paul Eggert <eggert@twinsun.com>
1769
1770 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
1771
1772 2000-10-29 Paul Eggert <eggert@twinsun.com>
1773
1774 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.18.
1775
1776 * src/tar.c: Include <fnmatch.h>, for FNM_LEADING_DIR.
1777
1778 2000-10-28 Paul Eggert <eggert@twinsun.com>
1779
1780 * doc/tar.texi: --no-recursion now applies to extraction, too.
1781 * src/create.c (dump_file): no_recurse_option -> ! recursion_option
1782 * src/names.c (namelist_match, excluded_name):
1783 Do not match subfiles of a directory
1784 if --no-recursion is specified.
1785 * src/tar.c (NO_RECURSE_OPTION): Remove.
1786 (long_options): Have getopt set the --no-recursion flag.
1787 (decode_options): Initialize recursion_option to FNM_LEADING_DIR.
1788 Remove case for NO_RECURSE_OPTION.
1789 * src/common.h (recursion_option):
1790 Renamed from no_recurse_option, with sense
1791 negated, and with FNM_LEADING_DIR being the nonzero value.
1792
1793 * names.c (namelist_match): New function.
1794 (name_match, name_scan): Use it to eliminate duplicate code.
1795 (names_notfound): Remove special case for Amiga.
1796
1797 2000-10-27 Paul Eggert <eggert@twinsun.com>
1798
1799 * src/misc.c (read_error_details, read_warn_details,
1800 read_fatal_details): Don't assume size_t is unsigned long.
1801
1802 * src/buffer.c (flush_read): If read_full_records_option, try to
1803 fill the input buffer, as --delete -f - needs this.
1804
1805 2000-10-24 Paul Eggert <eggert@twinsun.com>
1806
1807 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Port to autoconf 2.13.
1808
1809 * src/buffer.c (check_label_pattern):
1810 Make sure header name is a string before
1811 passing it to fnmatch.
1812 (init_volume_number): Check for global_volno overflow.
1813 (new_volume): Check for global_volno overflow.
1814
1815 * src/tar.c (decode_options):
1816 Check that volume label is not too long to overflow
1817 name in tar header block.
1818
1819 * Makefile.am (EXTRA_DIST): Remove rebox.el.
1820
1821 * configure.in (HAVE_DECL_STRERROR_R): Remove our handwritten code.
1822 (AC_FUNC_STRERROR_R): Use this instead.
1823
1824 2000-10-23 Paul Eggert <eggert@twinsun.com>
1825
1826 * src/extract.c: Include <time.h>, since we invoke "time".
1827
1828 * lib/prepargs.c (prepend_default_options):
1829 Don't use NULL, for portability.
1830
1831 * m4/fnmatch.m4: Add "working" to message.
1832
1833 * src/names.c: (_GNU_SOURCE): Remove; autoconf now does this.
1834 Include <hash.h>.
1835 (getpwuid, getgrgid): Declare only if system headers don't.
1836 (gid_to_gname): Don't invoke setgrent.
1837 (namelist): Now static, not global.
1838 (nametail): New var. All uses of namelast changed to use
1839 nametail, with one extra level of indirection.
1840 (name_gather): Use memcpy instead of strncpy + assignment of NUL.
1841 (name_match): Set nametail too, when setting namelist to null.
1842 (add_hierarchy_to_namelist): Change type of dir arg from char * to
1843 struct name *, so that we don't have to look up the name again
1844 here. Get change_dir from dir rather than as a separate arg. Add
1845 dirsize arg, and pass it along to get_directory_contents. Remove
1846 unnecessary check of directory type.
1847 (new_name): Do not append a slash if PATH already ends in one.
1848 (avoided_names, struct avoided_name): Remove.
1849 (avoided_name_table): New var, replacing avoided_names.
1850 (hash_avoided_name, compare_avoided_names): New function.
1851 (add_avoided_name, is_avoided_name): Use hash table rather than
1852 linked list.
1853
1854 * src/buffer.c (_GNU_SOURCE): Remove; autoconf now does this.
1855 (child_open_for_compress, child_open_for_uncompress,
1856 close_archive): Propagate any failure of the compression process
1857 back to "tar".
1858 (open_archive, flush_write, flush_read, close_archive): Do not
1859 allocate an array of size PATH_MAX, as PATH_MAX might be (size_t)
1860 -1. Instead, allocate an array with the size that's needed.
1861 (open_archive): Don't bother checking S_ISCHR of /dev/null.
1862 (backspace_output): Don't try to backspace past start of archive.
1863 (close_archive): Remove special case for DELETE_SUBCOMMAND.
1864
1865 * acconfig.h (_GNU_SOURCE, DEFAULT_ARCHIVE, DEFAULT_BLOCKING,
1866 DENSITY_LETTER, DEVICE_PREFIX, EMUL_OPEN3, HAVE_GETGRGID,
1867 HAVE_GETPWUID, HAVE_MKNOD, HAVE_RTAPELIB, HAVE_ST_FSTYPE_STRING,
1868 HAVE_UNION_WAIT, HAVE_UTIME_H, HAVE_VALLOC, MTIO_CHECK_FIELD, PACKAGE,
1869 PROTOTYPES, REMOTE_SHELL, STD_INC_PATH, VERSION, WITH_CATALOGS,
1870 WITH_DMALLOC, WITH_REGEX):
1871 Remove; now generated automatically.
1872
1873 * configure.in (_GNU_SOURCE): Define to empty, not 1, for
1874 compatibility for glibc fragments.
1875 (_GNU_SOURCE, HAVE_UTIME_H, MTIO_CHECK_FIELD,
1876 HAVE_ST_FSTYPE_STRING, HAVE_MKNOD, REMOTE_SHELL, DENSITY_LETTER,
1877 DEVICE_PREFIX, DEFAULT_ARCHIVE, DEFAULT_BLOCKING): Add comment so
1878 that we needn't put an entry into acconfig.h.
1879 (ALL_LINGUAS): Add da.
1880 (AC_C_BACKSLASH_A): Remove; jm_PREREQ_QUOTEARG now does this.
1881 (AC_CHECK_HEADERS): Add stdbool.h (for hash.h users), wctype.h
1882 (for strtol.c).
1883 (AC_MBSTATE_T): Add.
1884 (RMT): Append $(EXEEXT).
1885 (HAVE_GETGRGID, HAVE_GETPWUID, pe_AC_TYPE_SIGNED_CHAR): Remove.
1886 (HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
1887 HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
1888 HAVE_DECL_STRTOULL, HAVE_DECL_STRERROR_R): New macros.
1889 (jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, jm_PREREQ_QUOTEARG): Add.
1890 (AC_REPLACE_FUNCS): Remove execlp; no longer needed.
1891 (AC_CHECK_FUNCS): Add clock_gettime; AC_SEARCH_LIBS wasn't enough.
1892 Remove mbrtowc; jm_PREREQ_QUOTEARG now does this.
1893 (EMUL_OPEN3): Remove; no longer needed.
1894 (DENSITY_LETTER, DEVICE_PREFIX): Simplify m4 quoting.
1895
1896 * m4/fnmatch.m4 (AC_FUNC_FNMATCH): Detect d*/*1 vs d/s/1 bug.
1897
1898 * src/common.h: Do not include basename.h.
1899 * src/rtapelib.c (base_name): Do not include basename.h;
1900 declare base_name instead.
1901
1902 * lib/basename.h, lib/execlp.c, lib/getpagesize.h, lib/mkdir.c:
1903 Remove these files.
1904 * lib/getstr.c, lib/getstr.h, lib/hash.h, lib/hash.h, lib/prepargs.c,
1905 lib/prepargs.h, lib/savedir.c, lib/savedir.h: New files.
1906 * lib/Makefile.am (EXTRA_DIST, noinst_HEADERS, libtar_a_SOURCES):
1907 Adjust to the above changes.
1908
1909 * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove ../src/ansi2knr.
1910
1911 * src/open3.c: Remove.
1912
1913 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
1914 (tar_SOURCES): Remove open3.c.
1915 (INCLUDES): Remove -I.., as automake does that.
1916 (OMIT_DEPENDENCIES): ../lib/fnmatch.h -> fnmatch.h. Add localedir.h.
1917
1918 The following changes are to put LOCALEDIR into localedir.h instead
1919 of passing it on the command line.
1920 (DEFS): Remove.
1921 (DISTCLEANFILES): New macro.
1922 (localedir.h): New rule.
1923 (rmt.o tar.o): Now depend on localedir.h.
1924
1925 * tests/delete02.sh, tests/extrac04.sh: New files.
1926
1927 * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
1928 (TESTS): Add extrac04.sh, and restore delete02.sh.
1929 (DEFS): Remove; LOCALEDIR is now done via localedir.h.
1930 (INCLUDES): Remove -I.. as automake does this now.
1931
1932 * src/rtapelib.c (rexec): Don't declare unless using it.
1933 (do_command): Simplify signal-handling code slightly.
1934
1935 * src/delete.c (blocks_needed): Remove. All uses changed to use
1936 blocking_factor - new_blocks.
1937 (acting_as_filter): New var.
1938 (write_record, delete_archive_members): Use acting_as_filter
1939 rather than archive == STDIN_FILENO to detect whether we're acting
1940 as a filter, as open can return STDIN_FILENO in some cases.
1941 (delete_archive_members): Ignore zero blocks if
1942 ignore_zeros_option is nonzero. Fix bug that messed up last
1943 output block: write_eot can't be used here, as it gets confused
1944 when the input is at end of file.
1945
1946 * src/compare.c (diff_archive): Do not impose an arbitrary limit on
1947 symbolic link contents length. Pass directory size to
1948 get_directory_contents.
1949
1950 * m4/decl.m4, m4/error.m4, m4/mbstate_t.m4, m4/prereq.m4,
1951 m4/strerror_r.m4: New files.
1952 * m4/signedchar.m4: Remove this file.
1953 * Makefile.am (ACINCLUDE_INPUTS): Adjust to above changes.
1954 * m4/Makefile.am (EXTRA_DIST): Likewise.
1955
1956 * Makefile.am (DISTCLEANFILES): Add intl/libintl.h.
1957
1958 * po/da.po: New translation file.
1959
1960 * src/mangle.c (extract_mangle):
1961 Fix diagnostic with wrong number of %s'es.
1962
1963 * lib/fnmatch.c (fnmatch):
1964 Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
1965 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
1966
1967 * lib/full-write.c (full_write): Some buggy drivers return 0 when you
1968 fall off a device's end. Detect this.
1969
1970 * src/system.h (IN_CTYPE_DOMAIN): Renamed from CTYPE_DOMAIN. All
1971 uses changed.
1972 (open): Remove macro; we no longer support EMUL_OPEN3. Do not
1973 include <pathmax.h> and directory include files like <dirent.h>;
1974 no longer used. Include <savedir.h> instead.
1975 (closedir, signed_char): remove macro; no longer used.
1976 (bool, false, true): Include <stdbool.h> if you have the include
1977 file, otherwise define.
1978
1979 * src/misc.c:
1980 (is_dot_or_dotdot, closedir_error, closedir_warn, opendir_error,
1981 opendir_warn, readdir_error): Remove; no longer needed.
1982 (safer_rmdir): Strip leading ./ (or .// or ./// or ././ or etc.)
1983 before deciding whether we're trying to remove ".".
1984 (remove_any_file): Try unlink first if we are not root. Use
1985 savedir when recursively removing directories, to avoid exhausting
1986 file descriptors.
1987 (savedir_error, savedir_warn, symlink_error): New functions.
1988
1989 * src/list.c: (read_and): Do not invoke
1990 apply_nonancestor_delayed_set_stat; DO_SOMETHING is now
1991 responsible for that. Do not invoke apply_delayed_set_stat; our
1992 caller is now responsible for that.
1993 (read_header): Use signed char instead of signed_char. Prevent
1994 later references to current_header from mistakenly treating it as
1995 an old GNU header.
1996 (from_header): Quote invalid base-64 strings in diagnostics.
1997 (time_from_header): Do not warn about future timestamps in
1998 archive; check_time now does that.
1999 (print_header): Quote unknown file types.
2000 (skip_member): New function, replacing skip_extended_headers and
2001 now skipping the whole member instead of just the extended
2002 headers. All callers changed. This makes the code handle
2003 extended headers uniformly, and fixes some bugs.
2004
2005 * src/update.c (update_archive): Use skip_member.
2006
2007 * src/extract.c (we_are_root): Now global.
2008 (struct delayed_symlink): New type.
2009 (delayed_symlink_head): New var.
2010 (extr_init, fatal_exit): Invoke extract_finish on fatal errors,
2011 not apply_delayed_set_stat.
2012 (set_mode, set_stat): Pointer args are now const pointers.
2013 (check_time): New function.
2014 (set_stat): Warn if setting a file's timestamp to be the future.
2015 (make_directories): Do not save and restore errno.
2016 (maybe_recoverable): Set errno to ENOENT if we cannot make missing
2017 intermediate directories.
2018 (extract_archive): Invoke apply_nonancestor_delayed_set_stat here,
2019 not in caller. Extract potentially dangerous symbolic links more
2020 carefully, deferring their creation until the end, and using a
2021 regular file placeholder in the meantime. Do not remove trailing
2022 / and /. from file names. Do not bother checking for ".." when
2023 checking whether a directory loops back on itself, as loopbacks
2024 can occur with symlinks too. Also, in that case, do not bother
2025 saving and restoring errno; just set it to EEXIST.
2026 (apply_nonancestor_delayed_set_stat): A prefix is a potential
2027 ancestor if it ends in slash too (as well as ending in a char just
2028 before slash).
2029 (apply_delayed_set_stat): Remove.
2030 (apply_delayed_symlinks, extract_finish): New functions.
2031
2032 * doc/fdl.texi: New file.
2033 * doc/Makefile.am (EXTRA_DIST): Add fdl.texi.
2034 ($(srcdir)/tar.info): Add fdl.texi. Invoke makeinfo with --no-split.
2035 * doc/tar.texi: Add Free Documentation License. New section
2036 "Overwrite Old Files", and revamp that section to make it easier to
2037 follow. "tar" -> "GNU tar" where appropriate. Migrate getdate
2038 documentation into getdate.texi. Fix several minor typos. Describe
2039 TAR_OPTIONS. Describe incompatibility between incremental backups and
2040 --atime-preserve. Describe incompatibility between --verify and other
2041 options. Mention that tar normally removes symbolic links rather than
2042 following them, when extracting a file of the same name.
2043
2044 * THANKS: Add gpoul. Change skip's address.
2045
2046 * po/POTFILES.in: Add lib/human.c.
2047
2048 * src/common.h (namelist, namelast): Remove decls.
2049 (we_are_root, extract_finish, skip_member, savedir_error,
2050 savedir_warn, symlink_error, gnu_list_name): New decls.
2051 (apply_delayed_set_stat, apply_nonancestor_delayed_set_stat,
2052 skip_extended_headers, is_dot_or_dotdot, closedir_error,
2053 closedir_warn, opendir_error, opendir_warn, readdir_error,
2054 readdir_warn): Remove decls.
2055 (get_directory_contents): New off_t arg.
2056 (addname): Now returns struct name *.
2057
2058 * src/tar.h, tests/genfile.c: Fix comments.
2059
2060 * src/create.c: Include hash.h.
2061 (gnu_list_name): Remove decl.
2062 (struct link): Remove "next" member.
2063 (linklist): Remove.
2064 (start_header): Say "leading `FOO'" rather than "`FOO' prefix" for
2065 consistency with other diagnostics.
2066 (deal_with_sparse): Check for I/O error when closing the file.
2067 (create_archive): Do not allocate an array of size PATH_MAX, as
2068 PATH_MAX might be (size_t) -1. Instead, allocate an array with
2069 the size that's needed.
2070 (hash_link, compare_links): New functions.
2071 (dump_file): Do not exhaust open file descriptors when descending
2072 deeply into a directory, by using savedir rather than
2073 opendir/readdir. Do not zero-fill the name buffer unnecessarily.
2074 Hash the set of links already created, instead of using a linked
2075 list. Fix some bugs in outputting sparse files which caused the
2076 sparse tables to be incorrect. When a file unexpectedly shrinks,
2077 output zeros rather than garbage. Do not allocate an array of
2078 size PATH_MAX, as PATH_MAX might be (size_t) -1. Instead,
2079 allocate an array with the size that's needed.
2080
2081 * src/incremen.c: Include hash.h.
2082 (struct directory): Remove "next", "dir_text". Change "name" to
2083 be char[1] with struct hack, not const char *. Add "found".
2084 (directory_list): Remove. Replaced by directory_table.
2085 (directory_table): New var.
2086 (nfs_string): Renamed from nfs.
2087 (hash_directory, compare_directories): New functions.
2088 (note_directory): Now returns struct directory *. First arg is
2089 now const pointer. struct stat arg is now dev_t, ino_t, nfs.
2090 Remove text arg. New "found" arg, basically corresponding to the
2091 old text arg not being null. All callers changed.
2092 (note_directory, find_directory): Use hash table rather than
2093 linked list.
2094 (get_directory_contents): New arg "device". Use savedir to do the
2095 hard work. Save the nfs-ness of stat_data, since it might change
2096 under us. Use note_directory instead of find_directory to save
2097 some work. When adding an "A" record, do it with
2098 add_to_accumulator instead of cheating with strcat.
2099 (read_directory_file): Use "+" flag before device to indicate
2100 whether it was NFS. Fix typo in checking for strtoul error.
2101 (write_directory_file_entry): New function.
2102 (write_directory_file): Use it, and use the hash routines to
2103 traverse the directory table.
2104 (gnu_restore): Use savedir rather than opendir/readdir.
2105
2106 * src/tar.c: Include localedir.h, prepargs.h.
2107 (long_options): Now static.
2108 (long_options, usage, decode_options): -j is now short for
2109 --bzip2, and -I is now an alias for -T.
2110 (decode_options, main): argv is not const pointer now.
2111 (decode_options): Invoke prepend_default_options to support
2112 TAR_OPTIONS. In diagnostic, mention the string that was the
2113 invalid blocking factor, tape length, group, owner, or record
2114 size. --delete is no longer incompatible with -f -, undoing
2115 2000-01-07 change.
2116 (main): Invoke extract_finish at end of extraction.
2117
2118 * src/rmt.c: Include localedir.h.
2119 (main): Update copyright date to 2000.
2120
2121 * doc/getdate.texi: New file, taken from fileutils 4.0.27, with the
2122 following changes: Use @sc where appropriate. Document the ranges of
2123 supported times more precisely. Add Eggert to getdate authors.
2124 Document old Latin 12m/12pm tradition. Remove list of alphabetic time
2125 zone names, as it wasn't correct and people shouldn't be relying on it
2126 anyway. Relative items also account for non-DST adjustments. Fix
2127 some misspellings.
2128
2129 * lib/prepargs.c, lib/prepargs.h, tests/extrac04.sh: New file.
2130
2131 * tests/ignfail.sh: opendir -> savedir in diagnostics.
2132
2133 * tests/preset.in: Set LANGUAGE to the empty string, for some
2134 brain damaged host.
2135
2136 2000-10-20 Paul Eggert <eggert@twinsun.com>
2137
2138 * m4/fnmatch.m4: Mention the GNU C library.
2139
2140 2000-10-19 Paul Eggert <eggert@twinsun.com>
2141
2142 * m4/fnmatch.m4: Add a couple more test cases to catch bugs in
2143 glibc 2.1.95.
2144
2145 2000-10-17 Paul Eggert <eggert@twinsun.com>
2146
2147 * lib/human.c (<limits.h>): Do not include; human.h does it if needed.
2148 (CHAR_BIT): Remove.
2149
2150 * lib/human.h (<limits.h>): Include if HAVE_LIMITS_H.
2151 (CHAR_BIT): Define if not defined.
2152
2153 2000-09-09 Paul Eggert <eggert@twinsun.com>
2154
2155 * lib/quotearg.c: From fileutils: rename ISASCII to IN_CTYPE_DOMAIN.
2156
2157 2000-08-07 Paul Eggert <eggert@twinsun.com>
2158
2159 * lib/xmalloc.c: Memory exhausted -> memory exhausted
2160
2161 * lib/xalloc.h (xalloc_msg_memory_exhausted):
2162 change to array from char *.
2163
2164 2000-08-06 Paul Eggert <eggert@twinsun.com>
2165
2166 * m4/mbstate_t.m4: Define mbstate_t to be int, not char, for
2167 compatibility with glibc 2.1.3 strftime.c.
2168
2169 2000-07-31 Paul Eggert <eggert@twinsun.com>
2170
2171 * lib/quotearg.c (quotearg_n_options):
2172 Don't make the initial slot vector a constant,
2173 since it might get modified.
2174
2175 * lib/quotearg.c: Add support for more than one preallocated slot.
2176
2177 2000-07-30 Paul Eggert <eggert@twinsun.com>
2178
2179 * lib/quotearg.c (quotearg_n_options):
2180 Preallocate a slot 0 buffer, so that the caller
2181 can always quote one small component of a "memory exhausted" message
2182 in slot 0.
2183
2184 2000-07-23 Paul Eggert <eggert@twinsun.com>
2185
2186 * lib/quotearg.c:
2187 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), so that
2188 mbstate_t is always defined.
2189
2190 Do not inspect MB_LEN_MAX, since it's incorrectly defined to be 1 in
2191 some GCC installations, and this configuration error is likely to be
2192 common.
2193
2194 2000-07-22 Paul Eggert <eggert@twinsun.com>
2195
2196 * lib/quotearg.c:
2197 When the system forces us to redefine mbstate_t, shadow its mbsinit
2198 function. From Bruno Haible.
2199
2200 2000-07-14 Paul Eggert <eggert@twinsun.com>
2201
2202 * lib/xmalloc.c: Simplify exhausted message.
2203
2204 * lib/quotearg.h: Update copyright date; from Jim Meyering.
2205
2206 2000-07-13 Paul Eggert <eggert@twinsun.com>
2207
2208 * lib/quotearg.h (enum quoting style):
2209 New constant clocale_quoting_style.
2210
2211 * lib/quotearg.c:
2212 (quoting_style_args, quoting_style_vals, quotearg_buffer_restyled):
2213 Add support for clocale_quoting_style, undoing previous change to
2214 locale_quoting_style.
2215
2216 2000-07-10 Paul Eggert <eggert@twinsun.com>
2217
2218 * lib/quotearg.c:
2219 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX,
2220 since otherwise we don't need it.
2221 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
2222 since we don't do multibytes in that case.
2223 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
2224 invoke multibyte primitives.
2225
2226 * m4/mbstate_t.m4 (AC_MBSTATE_T):
2227 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
2228 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
2229 and mbstate_t, to a single-part test that simply defines mbstate_t.
2230
2231 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
2232 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
2233 to decide whether to define the BeOS workaround macro;
2234 this adjusts to the change to AC_MBSTATE_T.
2235
2236 * m4/strerror_r.m4: New file.
2237
2238 2000-07-05 Paul Eggert <eggert@twinsun.com>
2239
2240 * lib/quotearg.c: Use double-quote to quote.
2241
2242 * lib/quotearg.c (N_): New macro.
2243 (gettext_default): New function.
2244 (quotearg_buffer_restyled): Use gettext_default ("{LEFT QUOTATION MARK}",
2245 "\"") for left quote, and gettext_default ("{RIGHT QUOTATION MARK}", "\"")
2246 for right quote.
2247
2248 * lib/quotearg.c (struct quoting_options):
2249 Simplify quote_these_too dimension.
2250 From Bruno Haible <haible@clisp.cons.org>.
2251
2252 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT):
2253 Test for mbstate_t only if the test
2254 for an object-type mbstate_t fails.
2255
2256 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
2257
2258 2000-07-03 Paul Eggert <eggert@twinsun.com>
2259
2260 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
2261 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
2262
2263 * lib/quotearg.c (mbrtowc):
2264 Assign to *pwc, and return 1 only if result is nonzero.
2265 (iswprint): Define to ISPRINT if we are substituting our own mbrtowc.
2266
2267 2000-07-02 Paul Eggert <eggert@twinsun.com>
2268
2269 * lib/quotearg.c (mbstate_t):
2270 Do not define; it should be defined with AC_CHECK_TYPE.
2271
2272 2000-06-26 Paul Eggert <eggert@twinsun.com>
2273
2274 * m4/mbstate_t.m4: Include stdio.h before wchar.h, to work around
2275 a bug in glibc 2.1.3.
2276
2277 * lib/xmalloc.c: Fix inaccorate comment for xrealloc.
2278
2279 2000-06-19 Paul Eggert <eggert@twinsun.com>
2280
2281 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
2282 inclusion of wctype.h to work around solaris2.6 namespace pollution.
2283 (ISPRINT): Likewise.
2284 Reported by Tom Tromey.
2285
2286 2000-06-15 Paul Eggert <eggert@twinsun.com>
2287
2288 * lib/human.c (adjust_value): New function.
2289 (human_readable_inexact): Apply rounding style even when printing
2290 approximate values.
2291
2292 * lib/human.c: Avoid shadowing warnings.
2293 From Jim Meyering.
2294
2295 2000-06-14 Paul Eggert <eggert@twinsun.com>
2296
2297 * lib/human.c (human_readable_inexact): Allow an input block size
2298 that is not a multiple of the output block size, and vice versa.
2299
2300 * lib/getdate.y (get_date): Apply relative times after time zone
2301 indicator, not before.
2302
2303 2000-05-31 Paul Eggert <eggert@twinsun.com>
2304
2305 * m4/largefile.m4: Rewrite so that we don't need to run getconf,
2306 and thus don't need AC_CANONICAL_HOST.
2307
2308 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
2309 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
2310 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
2311 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY. All uses
2312 changed. Instead of inspecting the output of getconf, try to
2313 compile the test program without and with the macro definition.
2314 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check for
2315 getconf. Instead, check for the needed flags by compiling test
2316 programs.
2317
2318 * configure.in (AC_CANONICAL_HOST): Remove; the largefile stuff no
2319 longer needs it.
2320 * config.guess, config.sub: Remove these files, for similar reasons.
2321
2322 2000-05-03 Paul Eggert <eggert@twinsun.com>
2323
2324 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be
2325 500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3
2326 bug. This avoids a clash when files like regex.c that define
2327 _GNU_SOURCE.
2328
2329 2000-05-02 Paul Eggert <eggert@twinsun.com>
2330
2331 * m4/largefile.m4 (AC_SYS_LARGEFILE):
2332 Define _GNU_SOURCE if this is needed to make
2333 ftello visible (e.g. glibc 2.1.3). Use compile-time test, rather than
2334 inspecting host and OS, to decide whether to define _LARGEFILE_SOURCE.
2335
2336 * lib/quotearg.c (mbrtowc, mbstat_t):
2337 Add definitions if !HAVE_MBSTATE_T_OBJECT.
2338 (<wctype.h>): Include if HAVE_WCTYPE_H.
2339 (iswprint): Define to 1 if we lack it
2340
2341 2000-04-18 Paul Eggert <eggert@twinsun.com>
2342
2343 * m4/mbstate_t.m4: New file.
2344
2345 2000-04-17 Bruno Haible <haible@clisp.cons.org>
2346
2347 * tests/ignfail.sh: Test for uid 0 along with user "root".
2348
2349 2000-04-05 Paul Eggert <eggert@twinsun.com>
2350
2351 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS):
2352 Don't use -n32 on IRIX if the installer said
2353 otherwise.
2354
2355 2000-02-28 Paul Eggert <eggert@twinsun.com>
2356
2357 * lib/quotearg.c (ALERT_CHAR): New macro.
2358 (quotearg_buffer_restyled): Use it.
2359
2360 2000-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2361
2362 * src/list.c (tartime): Fix off-by-one error when copying year if
2363 OLD_CTIME.
2364
2365 2000-02-18 Paul Eggert <eggert@twinsun.com>
2366
2367 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
2368 (textint): New typedef.
2369 (parser_control): Changed from struct parser_control to typedef
2370 (for consistency). Member year changed from int to textint. All
2371 uses changed.
2372 (YYSTYPE): Removed; replaced by %union with int and textint
2373 members.
2374 (tID): Removed; not used.
2375 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE,
2376 tMERIDIAN, tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER,
2377 tUNUMBER, tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
2378 (tSNUMBER, tUNUMBER): Now of type <textintval>.
2379 (date, number, to_year): Use width of number in digits, not its
2380 value, to determine whether it's a 2-digit year, or a 2-digit
2381 time.
2382 (yylex): Store number of digits of numeric tokens. Return '?' for
2383 unknown identifiers, rather than (unused) tID.
2384
2385 2000-01-16 Paul Eggert <eggert@twinsun.com>
2386
2387 * lib/quotearg.c (quotearg_buffer_restyled):
2388 Do not quote alert, backslash, formfeed,
2389 and vertical tab unnecessarily in shell quoting style.
2390
2391 2000-01-15 Paul Eggert <eggert@twinsun.com>
2392
2393 * m4/c-bs-a.m4:
2394 Change quoting to be compatible with future autoconf versions.
2395
2396 2000-01-11 Paul Eggert <eggert@twinsun.com>
2397
2398 * lib/exclude.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove unused macros.
2399
2400 2000-01-07 Paul Eggert <eggert@twinsun.com>
2401
2402 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.17.
2403
2404 Fix bug with fnmatch.h dependency, as follows:
2405 * src/Makefile.am (OMIT_DEPENDENCIES): New macro.
2406 * lib/Makefile.am (OMIT_DEPENDENCIES): New macro.
2407
2408 * src/common.h (apply_nonancestor_delayed_set_stat):
2409 Renamed from apply_delayed_set_stat.
2410 (apply_delayed_set_stat, decode_mode, chmod_error_details,
2411 chown_error_details, close_warn, closedir_warn, mkdir_error,
2412 read_error_details, read_fatal_details, read_warn_details,
2413 seek_error_details, seek_warn_details, utime_error,
2414 write_error_details, write_fatal_details): New decls.
2415
2416 Make diagnostic messages more regular.
2417 * src/create.c (dump_file): Quote file names with colons if possible.
2418 * src/compare.c (diff_archive): Likewise.
2419 * src/extract.c (repair_delayed_set_stat, extract_archive): Likewise.
2420 * src/incremen.c (get_directory_contents, gnu_restore): Likewise.
2421 * src/mangle.c (extract_mangle): Likewise.
2422 * src/misc.c (call_arg_error, call_arg_fatal, call_arg_warn):
2423 Likewise.
2424 * src/buffer.c (archive_write_error, flush_archive, close_archive,
2425 new_volume, xclose):
2426 Use error message functions to report errors consistently.
2427 * src/compare.c (diff_sparse_files, diff_archive): Likewise.
2428 * src/create.c (finish_sparse_file, dump_file): Likewise.
2429 * src/extract.c (set_mode, set_stat, extract_sparse_file,
2430 extract_archive): Likewise.
2431 * src/list.c (list_archive): Likewise.
2432 * src/update.c (append_file): Likewise.
2433 * src/compare.c (diff_init, diff_sparse_files):
2434 Use xalloc_die to report memory exhaustion.
2435 * src/incremen.c (gnu_restore): Likewise.
2436 * src/list.c (read_header): Likewise.
2437 * src/mangle.c (extract_mangle): Likewise.
2438 * src/misc.c (maybe_backup_file): Likewise.
2439 * src/tar.c (decode_options): Likewise.
2440 * src/compare.c (read_and_process, fill_in_sparse_array,
2441 diff_sparse_files):
2442 Use consistent terminology for unexpected-EOF message.
2443 * src/extract.c (extract_sparse_file, extract_archive): Likewise.
2444 * src/list.c (list_archive, read_header, skip_file,
2445 skip_extended_headers): Likewise.
2446 * src/buffer.c (archive_write_error): Add noreturn attribute to decl.
2447 (xdup2): Regularize messages with rest of tar.
2448
2449 * src/buffer.c (flush_read): Don't read past EOF.
2450
2451 * src/extract.c (extr_init):
2452 If we run out of memory, invoke apply_delayed_set_stat.
2453 (prepare_to_extract): Don't complain if we can't remove ".".
2454 (apply_delayed_set_stat): New function.
2455 (apply_nonancestor_delayed_set_stat):
2456 Renamed from apply_delayed_set_stat. All uses changed.
2457 Don't remove head if it doesn't apply.
2458
2459 * src/create.c (find_new_file_size):
2460 Return size instead of storing through pointer.
2461 All callers changed.
2462 (deal_with_sparse): Don't keep reading after read errors.
2463 (finish_sparse_file): Just abort if there is an internal error.
2464 (dump_file): Fix typo: stat_warn and stat_error were interchanged.
2465 Don't restore access times on directories during incremental dumps
2466 until after dealing with the directory.
2467 If ignoring failed reads, count closedir, read, and unknown
2468 file errors as warnings, not errors.
2469 Fix buffer overrun problem when dumping sparse files.
2470
2471 * src/list.c (read_and):
2472 Invoke apply_nonancestor_delayed_set_stat on file names
2473 after handling them.
2474 (decode_mode): Remove; moved to misc.c.
2475
2476 * src/misc.c (safer_rmdir): New function.
2477 (remove_any_file): Use it to avoid problems with rmdir(".").
2478 (maybe_backup_file): Regularize diagnostics.
2479 (undo_backup_file): Likewise.
2480 (decode_mode): Moved here from list.c.
2481 (chmod_error_details, chown_error_details, close_fatal,
2482 close_warn, closedir_warn, mkdir_error, read_error_details,
2483 read_warn_details, read_fatal_details, seek_error_details,
2484 seek_warn_details, utime_error, write_error_details,
2485 write_fatal_details): New functions.
2486
2487 * src/delete.c (save_record): Remove static variable (now local).
2488 (move_archive): Don't position before start of archive.
2489 (write_record): Abort if count is zero at inopportune time.
2490 Plug memory leak.
2491
2492 * src/tar.c (decode_options): --delete and -f - are now
2493 incompatible, since we didn't have time to fix their bugs.
2494
2495 * tests/Makefile.am (TESTS): Remove delete02.sh.
2496 * tests/ignfail.sh: Adjust to new quoting scheme again.
2497
2498 2000-01-06 Paul Eggert <eggert@twinsun.com>
2499
2500 * lib/getdate.y: Sync tm_diff with the GNU C Library.
2501 (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed.
2502 (tm_diff): Renamed from difftm. All uses changed.
2503 Replace body with that taken from GNU C Library 2.1.3pre1.
2504 (get_date): Prefer tm_gmtoff to tm_diff if available.
2505
2506 1999-12-29 "Melissa O'Neill" <oneill@cs.sfu.ca>
2507
2508 * tests/incremen.sh: Invoke stat on newly created file so that its
2509 ctime is updated on Nextstep.
2510
2511 1999-12-21 Machael Stone <mstone@cs.loyola.edu>
2512
2513 * lib/getdate.y (get_date):
2514 Fix typo when checking for time_t overflow in time zone calculations.
2515
2516 1999-12-13 Paul Eggert <eggert@twinsun.com>
2517
2518 * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.16.
2519
2520 * README-alpha: New file.
2521 * README: New sections for gzip and bzip2, Solaris.
2522 Remove mention of BACKLOG.
2523
2524 * configure.in (AC_C_BACKSLASH_A): Add.
2525 (AC_CHECK_HEADERS): Add wchar.h.
2526 (AC_CHECK_FUNCS): Add mbrtowc.
2527 (AC_FUNC_CLOSEDIR_VOID): Add.
2528
2529 * tests/Makefile.am (TESTS): Add delete02.sh.
2530 (POSTPONED_TESTS): Remove.
2531 (EXTRA_DIST): Remove $(POSTPONED_TESTS).
2532
2533 * tests/preset.in:
2534 Set LC_ALL rather than LANGUAGE, LANG, and LC_MESSAGES.
2535
2536 * tests/ignfail.sh (err): Adjust to new quoting scheme.
2537
2538 * tests/delete02.sh: Fix typo: need to list archive2, not archive.
2539
2540 * tests/extrac03.sh: Use -P option, so that .. doesn't get diagnosed.
2541
2542 * src/tar.c ("quotearg.h"): New include.
2543 (usage): Now has __attribute__ ((noreturn)).
2544 (confirm): Report errno if we can't open tty.
2545 (confirm, decode_options):
2546 Quote arbitrary strings in diagnostics.
2547 (OVERWRITE_OPTION): New constant.
2548 (long_options, usage, decode_options): New --overwrite option.
2549 (decode_options): --keep-old-files, --overwrite, and --unlink-first
2550 are now mutually exclusive.
2551 Don't assume that gettext preserves errno.
2552 (main): Set default quoting style to escape_quoting_style.
2553
2554 * src/update.c (<quotearg.h>): New include.
2555 (append_file):
2556 Don't assume that gettext preserves errno.
2557 Quote arbitrary strings in diagnostics.
2558 Check for close error.
2559
2560 * src/names.c (<quotearg.h>): New include.
2561 (name_init, name_next, name_close, names_notfound,
2562 collect_and_sort_names): Don't assume that gettext preserves
2563 errno. Quote arbitrary strings in diagnostics.
2564 (excluded_name): Fix typo that caused empty patterns to be
2565 mishandled.
2566
2567 * src/misc.c (<quotearg.h>): New include.
2568 (quote_copy_string): Quote only newline and backslash; the output is no
2569 longer meant for humans, and is locale-independent.
2570 (contains_dot_dot): New function.
2571 (remove_any_file): Don't use lstat; just rmdir the file and then use
2572 unlink if the rmdir fails because the file isn't a directory.
2573 Check for readdir and closedir errors.
2574 (maybe_backup_file): Report "stat" for stat errors.
2575 (maybe_backup_file, chdir_do):
2576 Quote arbitrary strings in diagnostics.
2577 (maybe_backup_file, undo_last_backup):
2578 Don't assume that gettext preserves errno.
2579 (call_arg_error, call_arg_fatal, call_arg_warn,
2580 chdir_fatal, close_error, closedir_error, exec_fatal, mkfifo_error,
2581 mknod_error, open_error, open_fatal, open_warn, opendir_error,
2582 opendir_warn, read_error, read_fatal, readdir_error, readdir_warn,
2583 readlink_error, readlink_warn, seek_error, seek_warn, stat_error,
2584 stat_warn, truncate_error, truncate_warn, unlink_error, waitpid_error,
2585 write_error, write_fatal, xfork, xpipe, quote_n, quote): New functions.
2586
2587 * src/system.h (__attribute__): New macro.
2588 (O_NDELAY, O_NONBLOCK, O_APPEND): Remove.
2589 (S_ISDOOR): New macro.
2590 (closedir): New macro, if CLOSEDIR_VOID.
2591
2592 * src/rmt.c, src/rtapelib.c (decode_oflag):
2593 O_APPEND might not be defined.
2594
2595 * src/list.c: (read_and, list_archive):
2596 Quote arbitrary strings in diagnostics.
2597 (from_header): Use locale_quoting_style to quote diagnostics.
2598 (print_header, print_for_mkdir): Quote with quotearg, not quote_copy_string.
2599
2600 * src/rmt.h (REM_BIAS): Increase from 128 to (1 << 30).
2601
2602 * src/Makefile.am: Use ## for copyright comments.
2603
2604 * src/extract.c (<quotearg.h>): New include.
2605 (enum permstatus): New enum.
2606 (struct delayed_set_stat): file_name is now at end of buffer, to avoid
2607 two mallocs. New members file_name_len, invert_permissions, permstatus.
2608 (extr_init): Remove hack that silently adjusted newdir_umask.
2609 (set_mode, set_stat): New args invert_permissions, permstatus, typeflag.
2610 Use these args to decide whether and how to set modes.
2611 (set_mode, set_stat, prepare_to_extract, extract_sparse_file, extract_archive):
2612 Don't assume that gettext preserves errno.
2613 (set_stat): Remove arg symlink_flag; subsumed by typeflag.
2614 (delay_set_stat, repair_delayed_set_stat): New functions.
2615 (make_directories): Avoid mkdir where last part of path is "..".
2616 Create a struct delayed_set_stat for each directory made.
2617 (prepare_to_extract): Renamed from unlink_destination, and
2618 return 0 immediately if to_stdout_option; all callers changed.
2619 (maybe_recoverable): New parameter interdir_made.
2620 Add support for --overwrite.
2621 (extract_sparse_file, extract_archive):
2622 Quote arbitrary strings in diagnostics.
2623 (extract_archive): By default, warn about ".." in member names, and skip them.
2624 Don't open files with O_NONBLOCK or O_APPEND.
2625 Open with O_TRUNC only if --overwrite; otherwise, use O_EXCL to avoid
2626 overwriting them. Pass only rwxrwxrwx permissions to `open' and `mkdir',
2627 minus the current umask. Keep track of intermediate directories made,
2628 to avoid looping when making x/../x when x doesn't exist; the
2629 earlier code solved this in a different way that didn't fit well
2630 into the new scheme. Don't extract permissions onto existing
2631 directories unless --overwrite is given. Do not add -wx------
2632 permissions to new directories permanently; just do it temporarily.
2633 Remove no-longer-needed hack with MSDOS and directory time stamps.
2634 (apply_delayed_set_stat): New argument specifies which directories to
2635 fix statuses of. Do not wait until the end of extraction to fix
2636 statuses; instead, fix a directory's status once we exit that directory.
2637 This requires less memory and does the right thing in some cases
2638 where the old method didn't.
2639 (fatal_exit): New function.
2640
2641 * src/incremen.c (<quotearg.h>): New include.
2642 (get_directory_contents, gnu_restore):
2643 Check for readdir and closedir errors.
2644 (get_directory_contents, read_directory_file, gnu_restore):
2645 Quote arbitrary strings in diagnostics.
2646 (get_directory_contents, read_directory_file, write_directory_file):
2647 Don't assume that gettext preserves errno.
2648
2649 * src/create.c (<quotearg.h>): New include.
2650 (start_header): Use `member names' to refer to archive member names, not
2651 `archive names'. Warn about `..' in member names.
2652 (finish_sparse_file, dump_file):
2653 Quote arbitrary strings in diagnostics.
2654 (finish_sparse_file, dump_file):
2655 Don't assume that gettext preserves errno.
2656 (dump_file): Don't use `access' to determine whether a directory is readable;
2657 this isn't reliable if tar is setuid. Use `opendir' instead.
2658 Check for readdir and closedir failures.
2659 Don't dump sockets as if they were fifos; just warn and skip.
2660
2661 * src/delete.c (move_archive):
2662 Don't report fatal error merely because sizes don't fit
2663 into struct mtop values; fall back on lseek instead.
2664 Say `Cannot' uniformly, instead of `Could not' sometimes and `Cannot' others.
2665 Say `reposition' instead of `re-position'.
2666 (delete_archive_members):
2667 Set archive to STDOUT_FILENO before outputting trailing buffer.
2668
2669 * src/compare.c (<quotearg.h>): New include.
2670 (diff_init): Use `Cannot' uniformly, instead of `Could not' sometimes
2671 and `Cannot' others.
2672 (report_difference, diff_archive):
2673 Quote arbitrary strings in diagnostics.
2674 (process_rawdata, diff_sparse_files, get_stat_data, diff_archive, seek_warn):
2675 Don't assume that gettext preserves errno.
2676 (diff_archive): Don't open regular files with O_NONBLOCK.
2677 Preserve access times of files if --atime.
2678
2679 * src/common.h (FATAL_ERROR): Use new fatal_exit function to exit.
2680 (FATAL_ERROR, USAGE): Don't return 0.
2681 (enum old files): New enum.
2682 (old_files_option): New variable, replacing keep_old_files_option and
2683 unlink_first_option.
2684 (apply_delayed_set_stat): Now takes char const * param.
2685 (fatal_exit, contains_dot_dot, chdir_fatal, close_error,
2686 closedir_error, exec_fatal, mkfifo_error, mknod_error, open_error,
2687 open_fatal, open_warn, opendir_error, opendir_warn, read_error,
2688 read_fatal, readdir_error, readdir_warn, readlink_error,
2689 readlink_warn, seek_error, seek_warn, stat_error, stat_warn,
2690 truncate_error, truncate_warn, unlink_error, waitpid_error,
2691 write_error, write_fatal, xfork, xpipe, quote, quote_n): New decls.
2692
2693 * src/buffer.c:
2694 (xclose, xdup2, child_open_for_compress, child_open_for_uncompress,
2695 archive_write_error, archive_read_error, flush_archive, close_archive,
2696 init_volume_number, new_volume):
2697 Don't assume that gettext preserves errno.
2698
2699 (xdup2): Don't report errno if dup returns an unexpected nonnegative value.
2700 (open_archive): Reject multivolume verify attempts a bit earlier.
2701 Rename local variable `access', in case it's defined by system header.
2702
2703 (open_archive, backspace_output): Use `Cannot' uniformly, instead of
2704 `Could not' sometimes and `Cannot' others.
2705
2706 (open_archive, flush_read, flush_archive, close_archive, new_volume):
2707 Quote arbitrary strings in diagnostics.
2708
2709 (read_error): Set archive to STDOUT_FILENO temporarily when writing
2710 archive buffer.
2711
2712 (init_volume_number): Check for input and output errors in volno_file.
2713
2714 (new_volume): Use new fatal_exit function to exit, and new xfork
2715 function to fork.
2716
2717 * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4.
2718
2719 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/c-bs-a.m4.
2720
2721 * doc/tar.texi: Add --overwrite.
2722 --absolute-names rejects ".." in names.
2723
2724 * lib/quotearg.c: Add support for multibyte characters.
2725 (ISGRAPH): Remove.
2726 (ISPRINT): New macro.
2727 (<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H.
2728 (isprint, mbrtowc, mbsinit, mbstate_t): New macros,
2729 defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
2730 (quotearg_buffer_restyled): New function, with most of the old
2731 quotearg_buffer's contents.
2732 Major rewrite to support multibyte characters.
2733 (quotearg_buffer): Now just calls quotearg_buffer_restyled.
2734
2735 * m4/c-bs-a.m4: New file.
2736
2737 * lib/Makefile.am: Use ## for copyright notice.
2738
2739 * scripts/Makefile.am: Use ## on copyright notice.
2740
2741 * doc/Makefile.am:
2742 ($(srcdir)/tar.info, tar.dvi): We now use texinfo 4.0.
2743
2744 1999-12-05 Paul Eggert <eggert@twinsun.com>
2745
2746 * doc/ChangeLog, lib/ChangeLog, scripts/ChangeLog,
2747 src/ChangeLog, tests/ChangeLog: Remove these files.
2748 * ChangeLog.1: New file, incorporating the above files, plus old
2749 ChangeLog entries.
2750 * Makefile.am (EXTRA_DIST): Add ChangeLog.1.
2751
2752 1999-12-05 Dale Worley <worley@ariadne.com>
2753
2754 * src/compare.c (<utime.h>, struct utimbuf): Add.
2755 (diff_archive): Restore access times if --atime.
2756 * doc/tar.texi: Explain that --atime also preserves modification time.
2757
2758 1999-12-04 Gerhard Poul <gpoul@gnu.org>
2759
2760 * ABOUT-NLS: Update to latest version from ftp.gnu.org.
2761 * BACKLOG, TODO: Remove.
2762 * Makefile.am (all-local, BABYL, dist-zoo, id, ID): Remove.
2763 * README: Bring up to date.
2764
2765 1999-12-03 Paul Eggert <eggert@twinsun.com>
2766
2767 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.15.
2768
2769 * src/compare.c (diff_archive):
2770 Do not set errno to EPIPE; we no longer use perror.
2771
2772 * src/create.c (dump_file):
2773 If a parent directory said that a file should be there but it is
2774 absent, diagnose it as being removed in the meantime.
2775 Do not pass meaningless errno to ERROR when reporting that the
2776 file changed as we read it.
2777 Report that a file changed if its ctime changes; this is more
2778 sensitive than mtime+size, and more accurate.
2779
2780 * src/incremen.c (enum children): New type.
2781 (struct directory): Change old char allnew member to new enum children
2782 children member.
2783 All uses changed.
2784 (get_directory_contents): When doing an incremental dump that does
2785 not cross filesystem boundaries, dump the mount points, even though
2786 they are in a different filesystem. This is for convenience when
2787 restoring, and for consistency with non-incremental dumps.
2788 This requires a 3-way flag for keeping track of which children we want,
2789 so we use enum children rather than boolean.
2790
2791 * src/open3.c (modes): Remove.
2792 (open3): Remove unportable assumptions about flag encodings.
2793 Use `stat' instead of `access' for testing file existence,
2794 to avoid problems with setuid programs.
2795
2796 * src/names.c (name_next): If file names are given both in the
2797 command line (e.g. via -C) and in a file (via -T), do not
2798 ignore the command-line names.
2799
2800 * m4/uintmax_t.m4: Backport to autoconf 2.13.
2801
2802 * doc/tar.texi: Clarify getdate authorship.
2803
2804 1999-11-23 Paul Eggert <eggert@twinsun.com>
2805
2806 * lib/Makefile.am (DISTCLEANFILES): New macro.
2807
2808 * configure.in (tar_fnmatch_hin):
2809 Remove; it runs afoul of a bug in autoconf 2.13.
2810 Instead, always link fnmatch.h to some file, even if it's a throwaway.
2811
2812 1999-11-19 Paul Eggert <eggert@twinsun.com>
2813
2814 * m4/largefile.m4: Update serial.
2815
2816 1999-11-18 Paul Eggert <eggert@twinsun.com>
2817
2818 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a bug in
2819 the QNX shell, which doesn't propagate exit status of failed
2820 commands inside shell assignments.
2821
2822 1999-11-07 Paul Eggert <eggert@twinsun.com>
2823
2824 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.14.
2825
2826 * configure.in (AC_PREREQ): Bump to 2.13.
2827 (ALL_LINGUAS): Add pt_BR, ja.
2828 (AC_FUNC_FNMATCH): Remove lib/funmatch.h before invoking, not after.
2829 (tar_cv_path_RSH): Prefer a non-symlink rsh to a symlink one,
2830 for AIX crossbuilds.
2831
2832 * doc/tar.texi: New node create options for --ignore-failed-read.
2833 Remove unused version control symbols.
2834 Modernize texinfo usage.
2835
2836 * src/tar.c (usage): Add examples.
2837
2838 * m4/fnmatch.m4 (AC_FUNC_FNMATCH):
2839 Include fnmatch.h when testing fnmatch.
2840
2841 * src/common.h (collect_and_sort_names): New decl.
2842
2843 * src/list.c (from_header):
2844 Handle 32-bit two's complement negative time stamps
2845 even if the leading octal digit is 2 or 3.
2846
2847 * src/extract.c (set_stat): Remove duplicate code.
2848
2849 * src/create.c (to_chars): Remove trailing newline from warning.
2850 (dump_file): Ignore doors.
2851 (finish_header): Report block numbers with origin 0, not origin 1.
2852
2853 * src/rmt.c: Include getopt.h.
2854 (long_opts): New constant.
2855 (usage): New function.
2856 (main): Implement --help and --version.
2857 Output usage message if arguments are bad.
2858
2859 1999-10-10 Paul Eggert <eggert@twinsun.com>
2860
2861 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.13.
2862
2863 * README: Remove --with-dmalloc.
2864 Add --disable-largefile.
2865 Remove old NeXT dirent problems, or AIX valloc problems.
2866 Remove old union wait advice, and old %lld advice.
2867 Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'.
2868
2869 * doc/tar.texi: Clarify documentation for portable file names.
2870
2871 * configure.in (AM_WITH_DMALLOC): Remove.
2872 (ALL_LINGUAS): Add ja.
2873
2874 * src/tar.c (decode_options):
2875 Invalid dates are now treated as (time_t) -1.
2876 Redo version message to conform to GNU standards.
2877
2878 * src/create.c (dump_file):
2879 Fix typo: last two args to dump_file were interchanged.
2880 * src/update.c (update_archive): Likewise.
2881
2882 * src/common.h (tartime): New decl.
2883
2884 * src/list.c (tartime): Now extern.
2885 (read_and): Invalid headers cause errors, not warnings.
2886
2887 1999-10-03 Paul Eggert <eggert@twinsun.com>
2888
2889 * lib/getdate.y (__attribute__):
2890 Don't use if GCC claims to be before 2.8; this is
2891 needed for OPENStep 4.2 cc. Also, don't use if strict ANSI.
2892
2893 1999-09-25 Paul Eggert <eggert@twinsun.com>
2894
2895 * lib/fnmatch.c, lib/fnmatch.hin: Merge changes from latest glibc.
2896 * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Likewise.
2897
2898 * tests/incremen.sh: Add yet another sleep.
2899
2900 1999-09-24 Paul Eggert <eggert@twinsun.com>
2901
2902 * NEWS: A read error now causes a nonzero exit status.
2903
2904 * src/create.c (to_chars): Fix base-256 output.
2905
2906 * src/buffer.c (write_error):
2907 Read error is an error, not just a warning.
2908
2909 1999-09-24 Paul Eggert <eggert@twinsun.com>
2910
2911 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.12.
2912
2913 * src/tar.c (<time.h>): Include.
2914 (time): Declare if not defined.
2915 (confirm): Don't read past EOF.
2916 (long_options, usage): Add --no-same-owner, --no-same-permissions.
2917 (main): Use clock_gettime if available.
2918
2919 * tests/Makefile.am (TESTS): Add incremen.sh
2920 (INCLUDES): Add -I../lib, for fnmatch.h.
2921
2922 * src/update.c (update_archive):
2923 Remove call to name_expand; had no effect.
2924 Use chdir_do to change into directory.
2925 Use deref_stat instead of stat.
2926 Use add_avoided_name to mark names to be avoided; the old method of
2927 setting a bit with the name caused all descendants of that name to
2928 be avoided, in some circumstances.
2929
2930 * tests/incremen.sh: Remove unnecessary sleeps.
2931
2932 * src/names.c (name_next): Go back to using plain chdir.
2933 (name_gather): Use chdir_arg to keep track of arguments to chdir.
2934 (addname): Likewise.
2935 (name_match): Use chdir_do to act on chdir args.
2936 (merge_sort): Moved here from incremen.c.
2937 (compare_names, add_hierarchy_to_namelist, collect_and_sort_names):
2938 Likewise.
2939 (name_expand): Remove.
2940 (name_from_list): Skip fake names.
2941 Use chdir_do to act on chdir args.
2942 (struct avoided_name): New struct.
2943 (avoided_names): New var.
2944 (add_avoided_name, is_avoided_name): New functions.
2945
2946 * src/system.h (stat, lstat): Define in terms of statx on
2947 STX_HIDDEN && !_LARGE_FILES /* AIX */ hosts.
2948 (UCHAR_MAX): New macro.
2949 (TYPE_MAXIMUM): Cast to arg type, for types narrow than int.
2950
2951 * m4/largefile.m4: Work around GCC 2.95.1 bug with HP-UX 10.20.
2952
2953 * src/incremen.c (<time.h>): Remove include; no longer used.
2954 (time): Remove decl.
2955 (time_now): Remove.
2956 (get_directory_contents): Use deref_stat.
2957 Consider a subdirectory to be all new only if
2958 listed_incremental_option or if it its timestamp is newer than the
2959 cutoff.
2960 (add_hierarchy_to_namelist, merge_sort): Move to names.c.
2961 (read_directory_file): Now extern. Do not set time_now.
2962 (write_directory_file): Renamed from write_dir_file.
2963 Use start_time instead of time_now.
2964 (compare_names, collect_and_sort_names): Move to names.c.
2965
2966 * src/mangle.c (<time.h>): Remove; not used.
2967 (time): Do not declare.
2968
2969 * src/misc.c (chdir_from_initial_wd): Remove.
2970 (deref_stat): New function.
2971 (struct wd): New struct.
2972 (wd, wds, wd_alloc): New variables.
2973 (chdir_arg, chdir_do): New function.
2974
2975 * src/compare.c (get_stat_data): Use deref_stat.
2976
2977 * src/common.h (name_expand): Remove.
2978
2979 * src/list.c (time): Declare if not defined.
2980 (base_64_digits): Moved here from create.c.
2981 (base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char)
2982 -1.
2983 (read_and): Don't get time from header unless we need it now;
2984 as getting time can cause duplicate diagnostics if bogus.
2985 Remove "Hmm, " from diagnostic.
2986 Use "Skipping to next header" uniformly.
2987 (from_header): Renamed from from_chars. All uses changed.
2988 Allow different forms for unportable 2's complement numbers.
2989 Don't check for extended forms when parsing checksums.
2990 Parse base-256 output.
2991 (gid_from_header): Renamed from gid_from_chars. All uses changed.
2992 (major_from_header): Renamed from major_from_chars. All uses changed.
2993 (minor_from_header): Renamed from minor_from_chars. All uses changed.
2994 (mode_from_header): Renamed from mode_from_chars. All uses changed.
2995 (off_from_header): Renamed from off_from_chars. All uses changed.
2996 (size_from_header): Renamed from size_from_chars. All uses changed.
2997 (time_from_header): Renamed from time_from_chars. All uses changed.
2998 Warn about future timestamps.
2999 (uid_from_header): Renamed from uid_from_chars. All uses changed.
3000 (uintmax_from_header): Renamed from uintmax_from_chars.
3001 All uses changed.
3002 (tartime): New function, incorporating isotime.
3003 (isotime): Delete.
3004 (print_header): Use tartime.
3005
3006 * src/create.c (to_chars): Fix typo in decl.
3007 Don't assign through char const *.
3008 Rename name_expand back to collect_and_sort_names.
3009
3010 * src/extract.c (<time.h>): No need to include.
3011 (time): No need to declare.
3012 (now): Remove variable.
3013 (extr_init): Don't initialize `now'.
3014 Increment same_permissions_option and same_owner_option if we_are_root
3015 is nonzero; this supports the new --no-same-owner option.
3016 (set_stat): Use start_time instead of `now'.
3017
3018 * src/create.c (struct link): Remove unused linkcount member.
3019 (base_64_digits): Move to list.c.
3020 (base_8_digits): Remove.
3021 (to_octal): New function, with some of old contents of to_base.
3022 (to_base): Remove.
3023 (to_base256): New function.
3024 (to_chars): Use base 256, not base 64, for huge values.
3025 (mode_to_chars): Don't use two's complement in GNU format or POSIX
3026 format.
3027 (dump_file): Interchange last two arguments. If TOP_LEVEL is negative,
3028 it means we have an incremental dump where we don't know whether this
3029 is a top-level call.
3030 Use deref_stat instead of statx / stat / lstat.
3031 Cast result of alloca.
3032 Check for dates if 0 < top_level, not if listed_incremental_option.
3033 Move multiple-link check after directory check.
3034 Do not dump avoided names.
3035 Dump hard links to symbolic names as links, not as separate
3036 symbolic links.
3037 start_header cannot return a null pointer, so don't test for it.
3038 Likewise for find_next_block.
3039
3040 * src/buffer.c, src/common.h (<human.h>): Include.
3041 (read_error): Read error is an error, not just a warning.
3042 (print_total_written): Also print human-readable byte count, and
3043 bytes/s.
3044 (open_archive, flush_write): Use start_time, not current time.
3045 (flush_read): Report about garbage bytes ignored at end of archive,
3046 but act on non-garbage bytes (instead of ignoring them).
3047 (new_volume): Use WARN for warnings.
3048
3049 * doc/Makefile.am:
3050 ($(srcdir)/tar.info): Add -I$(srcdir) so that subdir builds work.
3051
3052 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/fnmatch.m4.
3053
3054 * m4/Makefile.am (EXTRA_DIST): Add fnmatch.m4.
3055
3056 * lib/Makefile.am (noinst_HEADERS):
3057 Rename fnmatch.h to fnmatch.hin; add human.h.
3058 (libtar_a_SOURCES): Add human.c, xstrtoul.c.
3059 (INCLUDES): Remove -I.. -I$(srcdir) -- automake adds this for us.
3060
3061 * src/Makefile.am (rmt_LDADD, tar_LDADD): New macros.
3062
3063 * lib/fnmatch.c (strchrnul):
3064 Define to __strchrnul if _LIBC, to our own replacement otherwise.
3065 Do not define if !_LIBC and if it already exists.
3066 (internal_fnmatch): Use it.
3067
3068 * configure.in (tar_LDADD): New variable, used only when linking tar.
3069 (rmt_LDADD): Similarly, for rmt.
3070 (AC_FUNC_FNMATCH): Link fnnmatch.hin to fnmatch.h if we're using our
3071 fnmatch.c; otherwise, use the system fnmatch.h.
3072
3073 * doc/tar.texi: Add --no-same-owner, --no-same-permissions.
3074 Modernize sample backup script.
3075
3076 * THANKS: Martin Goik's email address has changed.
3077
3078 * m4/fnmatch.m4: New file.
3079
3080 1999-09-03 Paul Eggert <eggert@twinsun.com>
3081
3082 * lib/lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3.
3083 Use EINVAL instead.
3084
3085 1999-08-29 Paul Eggert <eggert@twinsun.com>
3086
3087 * lib/getdate.y (get_date):
3088 Rename outermost local `probe' to `quarter'.
3089 Rename latter local `tm' to probe_tm.
3090 From: Jim Meyering <meyering@ascend.com>
3091 Message-ID: <uryn1vafyyc.fsf@ixi.eng.ascend.com>
3092
3093 1999-08-28 Paul Eggert <eggert@twinsun.com>
3094
3095 * lib/getdate.y (PC): New macro; use it when possible.
3096 (number): Handle `Nov 11 1996' example correctly.
3097 See Risks Digest 20.55 (1999-08-27)
3098 http://catless.ncl.ac.uk/Risks/20.55.html#subj18
3099
3100 1999-08-23 Paul Eggert <eggert@twinsun.com>
3101
3102 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.11.
3103
3104 Remove minor cases of lint from many source files: this includes
3105 unnecessary casts, uses of NULL, etc.
3106
3107 * configure.in (AC_PROG_YACC): Remove.
3108 (YACC): Always use bison.
3109 (AC_STRUCT_TIMEZONE): Add.
3110 (AC_REPLACE_FUNCS): Add strcasecmp, strncasecmp.
3111
3112 * doc/tar.texi: --bzip2 is now -I. Remove obsolete time zone info.
3113 Fix spelling.
3114
3115 * lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c, strncasecmp.c.
3116 ($(srcdir)/getdate.c): Rename y.tab.c to getdate.c only if successful.
3117
3118 * lib/strcasecmp.c, lib/strncasecmp.c: New files.
3119
3120 * src/common.h (merge_sort): Remove decl; no longer exported.
3121
3122 * src/system.h (voidstar): Remove.
3123 (memcpy, memcmp): Cast args.
3124 ("xalloc.h"): Add include.
3125 (xmalloc, xrealloc): Remove decl.
3126
3127 * src/mangle.c (time): Do not declare if defined.
3128 (first_mangle, mangled_num): Remove.
3129
3130 * src/list.c (from_chars): Report out-of-range values more precisely.
3131 (off_from_chars): Do not allow negative offsets.
3132 (uid_from_chars): Allow negative uids.
3133
3134 * src/create.c (linklist): Now static.
3135 (to_chars): Fix wording of message to match from_chars.
3136
3137 * src/misc.c (merge_sort): Move to incremen.c.
3138 * src/incremen.c (merge_sort): Move here from misc.c; now static.
3139 It's too painful to make it both generic and portable.
3140 (read_directory_file): "timestamp" -> "time stamp" in messages.
3141
3142 * src/tar.c (long_options, usage, main): -y is now -I (for --bzip).
3143 (usage): Fix misspelling.
3144 (OPTION_STRING): -y is now -I.
3145 (decode_options): Use -1, not EOF, for getopt_long result.
3146 Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX.
3147 Handle operands after any "--" argument.
3148 (main): Report any output errors.
3149
3150 * src/rmt.c (main): status is ssize_t, not long.
3151
3152 * src/names.c (name_gather): Handle trailing -C option correctly.
3153 (addname): use memcpy, not strncpy, to copy a string of known length.
3154 (name_match): Handle trailing -C option correctly.
3155 Propagate -C option to following files.
3156 (name_match, name_scan): Remove redundant matching code.
3157
3158 * src/buffer.c (open_archive): Use American spelling in diagnostic.
3159
3160 * lib/getdate.y: Major rewrite. Add copyright notice.
3161 (<stdio.h>): Include only if testing.
3162 (ISUPPER): Remove.
3163 (ISLOWER): New macro.
3164 (<string.h>): Include if HAVE_STRING_H, not USG.
3165 (bcopy): Remove.
3166 (yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
3167 bison.
3168 (EPOCH_YEAR): Renamed from EPOCH.
3169 (table): Renamed from TABLE.
3170 (meridian): Now an anonymous enum.
3171 (struct parser_control): New type.
3172 (YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
3173 (yyInput, ..., yyRelYear): Migrated into struct parser_control.
3174 (%pure_parser): Added, so that the parser is pure.
3175 (%union): Removed; the type is now just plain int.
3176 All %type directives removed.
3177 (tLOCAL_ZONE): New %token.
3178 (month_day_table): Renamed from MonthDayTable.
3179 (gmtime, localtime, mktime, time): Declare only if not defined.
3180 (meridian_table): New table.
3181 (dst_table): New table.
3182 (units_table): renamed from UnitsTable.
3183 (relative_time_table): Renamed from OtherTable.
3184 (time_zone_table): Renamed from TimezoneTable. Modernized.
3185 (military_table): Renamed from MilitaryTable.
3186 (to_hour): Renamed from ToHour.
3187 (to_year): Renamed from ToYear.
3188 (lookup_zone): New function.
3189 (LookupWord): Renamed from lookup_word. Use lookup_zone for time
3190 zones.
3191 (yylex): Now reentrant. All callers changed.
3192 (get_date): Add support for local time zone abbreviations.
3193 Make it reentrant.
3194
3195 1999-08-20 Paul Eggert <eggert@twinsun.com>
3196
3197 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.10.
3198
3199 * src/create.c (to_chars): Generate GNU base-64 representation
3200 if we are generating an old or new GNU format tar file for a
3201 number that can't be represented with the POSIX format.
3202
3203 * configure.in (AC_CHECK_FUNCS): Add fchdir.
3204 (AM_FUNC_GETLINE): Add.
3205 (LIBOBJS): Add getline.o to workaround comment.
3206 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/getline.m4.
3207 * m4/Makefile.am (EXTRA_DIST): Add getline.m4.
3208 * lib/Makefile.am (noinst_HEADERS): Add getline.h, save-cwd.h.
3209 (libtar_a_SOURCES): Add save-cwd.c, xgetcwd.c.
3210 * lib/getline.c, lib/getline.h, lib/save-cwd.c,
3211 lib/save-cwd.h, m4/getline.m4: New files.
3212
3213 * src/misc.c (<save-cwd.h>): Include.
3214 (chdir_from_initial_wd): New function.
3215
3216 * src/names.c (name_next): Use chdir_from_initial_wd, not chdir.
3217 (name_gather): Handle `-C x -C y' correctly.
3218 Do not rely on addname to handle -C.
3219 (addname): New CHANGE_DIR parameter. All callers changed.
3220 Remove ugly calls to getcwd; no longer needed.
3221 (name_match, name_from_list): Use chdir_from_initial_wd, not chdir.
3222
3223 * src/incremen.c (listed_incremental_stream): New var.
3224 (read_directory_file): Remove arbitrary limits on file name length.
3225 Do not attempt to get the working directory; we can bypass this
3226 on fchdir hosts. Open the listed_incremental_option file for both
3227 read and write instead of opening it twice. Check for I/O errors
3228 when doing I/O to this file. Check for invalid data in the file,
3229 and report line numbers of invalid data.
3230 (write_dir_file): Likewise.
3231 (collect_and_sort_names): Use chdir_from_initial_wd, not chdir.
3232 Do not invoke write_dir_file; that's our caller's responsibility.
3233
3234 * src/list.c (max): New macro.
3235 (isotime): Now takes time_t, not time_t *. Report the decimal values
3236 of times that can't be broken down.
3237 (print_header): Don't assume that major and minor device numbers can
3238 fit into uintmax_t.
3239
3240 * src/common.h (struct name): change_dir is now char const *.
3241 (write_directory_file): Remove unused decl.
3242 (STRINGIFY_BIGINT): Assume b always points to UINTMAX_STRSIZE_BOUND
3243 chars; the old `sizeof (b)' broke when b was a pointer not an array.
3244 (chdir_from_initial_wd): New decl.
3245 (addname): New 2nd arg.
3246
3247 * THANKS: Torsten Lull -> Catrin Urbanneck
3248
3249 1999-08-18 Paul Eggert <eggert@twinsun.com>
3250
3251 * configure.in (HAVE_GETHOSTENT, HAVE_SETSOCKOPT):
3252 Don't depend on ac_cv_func variables.
3253 From Albert Chin-A-Young <china@thewrittenword.com>.
3254
3255 1999-08-18 Paul Eggert <eggert@twinsun.com>
3256
3257 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.9
3258
3259 * m4/signedchar.m4: New file.
3260 * configure.in (pe_AC_TYPE_SIGNED_CHAR): Add.
3261 * src/system.h (signed_char): New macro.
3262 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/signedchar.m4.
3263 * m4/Makefile.am (EXTRA_DIST): Add signedchar.m4.
3264
3265 * src/create.c (write_eot): Write at least two zero blocks.
3266
3267 * src/extract.c (extract_archive): Fix sparse array bug:
3268 we did not find end of array correctly.
3269
3270 * src/compare.c: (fill_in_sparse_array, diff_sparse_files):
3271 Don't assume find_next_block yields nonnull.
3272 * src/extract.c (extract_sparse_file, extract_archive): Likewise.
3273 * src/list.c (skip_extended_headers): Likewise.
3274
3275 * src/list.c (read_and, list_archive): Simplify code.
3276 (read_header): Fix computation of signed checksums on machines where
3277 char is unsigned.
3278 Do not consider a block to be zero unless all its bytes are zero,
3279 even the checksum bytes. Do not attempt to parse the checksum of
3280 a zero block. Fix memory leak with long names and links.
3281 (from_chars): Accommodate a buggy tar that outputs leading NUL
3282 if the previous field overflows.
3283
3284 * src/misc.c (quote_copy_string): Generate \177 for '\177', not
3285 \?, for portability to non-ASCII hosts.
3286
3287 1999-08-16 Paul Eggert <eggert@twinsun.com>
3288
3289 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.8.
3290
3291 * src/extract.c (make_directories): Do not chown intermediate
3292 directories, even if we are root.
3293
3294 * src/list.c (read_header): Fix bugs when interpreting
3295 POSIX-compliant headers that do not contain null bytes in the
3296 header or link names.
3297
3298 1999-08-14 Paul Eggert <eggert@twinsun.com>
3299
3300 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.7.
3301
3302 * configure.in (AC_CHECK_HEADERS): Remove sys/wait.h.
3303 (AC_HEADER_SYS_WAIT): Add.
3304 (AC_REPLACE_FUNCS): Add waitpid.
3305 (tar_cv_header_union_wait, HAVE_UNION_WAIT): Remove.
3306 * lib/waitpid.c: New file.
3307 * lib/Makefile.am (EXTRA_DIST): Add waitpid.c.
3308 * src/system.h (WCOREDUMP): Remove; no longer used.
3309 (WIFSTOPPED): Likewise.
3310 (WEXITSTATUS, WIFSIGNALED): Default to Solaris 7 versions.
3311 * src/buffer.c (child_open_for_compress): Undo previous change.
3312 (close_archive): Use waitpid, POSIX-style, instead of old BSD style.
3313 (new_volume): Likewise.
3314
3315 * src/buffer.c, src/extract.c, src/incremen.c (time):
3316 Don't declare if defined.
3317 * src/extract.c (extr_init): Remove unneeded cast around 0 arg to time.
3318 * src/incremen.c (read_directory_file):
3319 Invoke `time' the same way everyone else does.
3320 Check validity of --listed-incremental file contents a bit better.
3321 Do not worry about --after-date-option; tar.c now checks this.
3322 * src/list.c (isotime): Report ??? if localtime returns null.
3323 Don't assume years fit into four digits.
3324 Don't append trailing newline.
3325 (print_header): Report ??? if localtime returns null;
3326 Don't assume years fit into four digits.
3327
3328 * src/compare.c (diff_archive): Do not fall back on absolute name
3329 when --absolute-names is not specified.
3330
3331 * src/create.c (start_header):
3332 Include text of ignored filesystem prefix in warning.
3333 (create_archive): Check for excluded names when doing incremental
3334 pass through directory.
3335 (dump_file): Do not dump old files explicitly given on command line
3336 when using --listed-incremental. Do not strip ./ prefix from names.
3337
3338 * src/tar.c: -g now implies after_date_option = 1.
3339 -g and -N are now incompatible options.
3340
3341 * doc/tar.texi: Explain --exclude better. Don't strip leading `./'.
3342
3343 1999-08-11 Jeff Dairiki <dairiki@dairiki.org>
3344
3345 * src/list.c (read_header): Don't parse OLDGNU_FORMAT
3346 incremental headers as POSIX prefixes.
3347
3348 1999-08-11 Paul Eggert <eggert@twinsun.com>
3349
3350 * NEWS, configure.in: Version 1.13.6.
3351
3352 * configure.in (ALL_LINGUAS): Add pt_BR.
3353 * po/pt_BR.po: New file.
3354
3355 * doc/Makefile.am ($(srcdir)/tar.info, $(srcdir)/header.texi):
3356 Renamed from tar.info and header.texi; adjust actions so that
3357 they work in other directories.
3358
3359 * doc/tar.texi: Add -y and --bzip2.
3360 Patterns containing / now exclude only file names whose prefix match.
3361
3362 * lib/exclude.h (excluded_filename): New option parameter.
3363 (add_exclude_file): New ADD_FUNC parameter.
3364 (excluded_pathname): Remove decl.
3365 * lib/exclude.c (_GNU_SOURCE):
3366 Remove; no longer needed since we don't use FNM_ macros.
3367 (excluded_filename): Renamed from excluded_filename_opts.
3368 (excluded_filename, excluded_pathname): Remove.
3369 (add_exclude_file): New ADD_FUNC parameter.
3370
3371 * po/POTFILES.in: Add lib/quotearg.c.
3372
3373 * src/buffer.c (_GNU_SOURCE): Define.
3374 (<fnmatch.h>): Include unconditionally.
3375 (child_open_for_compress): Dup after closing, to avoid possible file
3376 descriptor exhaustion.
3377 (flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
3378 (flush_read): Likewise.
3379
3380 * src/common.h (LG_8, LG_64): New macros.
3381 (excluded_with_slash, excluded_without_slash): New vars.
3382 (excluded): Remove.
3383 (base_64_digits): New decl.
3384 (gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars,
3385 off_to_chars, size_to_chars, time_to_chars, uid_to_chars,
3386 uintmax_to_chars,
3387 GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS,
3388 OFF_TO_CHARS, SIZE_TO_CHARS, TIME_TO_CHARS, UID_TO_CHARS,
3389 UINTMAX_TO_CHARS):
3390 Renamed from gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
3391 off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
3392 GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, OFF_TO_OCT,
3393 SIZE_TO_OCT, TIME_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT,
3394 respectively. All definitions and uses changed.
3395 (excluded_name): New decl.
3396
3397 * src/compare.c (diff_archive):
3398 Open files with O_NONBLOCK instead of O_NDELAY.
3399
3400 * src/create.c (base_64_digits): New constant.
3401 (base_8_digits): New macro.
3402 (MAX_VAL_WITH_DIGITS): New macro.
3403 (to_base): First half of old to_oct. Support base 64 too.
3404 (to_chars): Other half of old to_oct, for 64-bit support.
3405 (GID_NOBODY, UID_NOBODY): Don't define if the headers don't.
3406 (gid_substitute, uid_substitute): Look up names dynamically if
3407 GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails.
3408 (mode_to_chars): Renamed from mode_to_oct.
3409 Support negative values in all the _to_chars functions.
3410 (start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
3411 Abort if archive format is DEFAULT_FORMAT when it shouldn't be.
3412 (dump_file): Inspect entire pathname, not just new file name
3413 component, when deciding whether to exclude it.
3414
3415 * src/extract.c (extract_archive):
3416 Open files with O_NONBLOCK instead of O_NDELAY.
3417
3418 * src/incremen.c (get_directory_contents):
3419 Inspect entire pathname, not just new file name
3420 component, when deciding whether to exclude it.
3421
3422 * src/list.c (<fnmatch.h>): Do not include.
3423 (from_chars): Renamed from from_oct. New parameter specifying
3424 the negative of the minimum allowed value. Support negative
3425 and base-64 values.
3426 (base64_map): New var.
3427 (base64_init): New function.
3428 (print_header): Output numeric uids and gids if numeric_owner_option.
3429
3430 * src/misc.c (quote_copy_string): Use LG_8 instead of constants.
3431
3432 * src/names.c (_GNU_SOURCE): Define.
3433 (<fnmatch.h>): Include unconditionally.
3434 (excluded_name): New function, taking over duties of excluded_pathname.
3435 All uses changed.
3436
3437 * src/rmt.c (decode_oflag): New function.
3438 (main): Use it to support symbolic open flags.
3439
3440 * src/rtapelib.c (encode_oflag): New function.
3441 (rmt_open__): Do not allow newlines in the path.
3442 Propagate errno correctly.
3443 Decode symbolic open flags, if present.
3444
3445 * src/system.h (FILESYSTEM_PREFIX_LEN, ISSLASH, O_ACCMODE, O_NONBLOCK):
3446 New macros.
3447
3448 * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
3449 New -y or --bzip2 option.
3450 (add_filtered_exclude): New function.
3451 (decode_options): Put excluded patterns with / into
3452 excluded_with_slash, and without / into excluded_without_slash.
3453 Compare newer_mtime_option to its new initial value
3454 TYPE_MINIMUM (time_t) when deciding whether more than one
3455 threshold date was specified.
3456
3457 1999-07-20 Paul Eggert <eggert@twinsun.com>
3458
3459 * NEWS, configure.in: Version 1.13.5.
3460
3461 * src/common.h (FATAL_ERROR): Invoke apply_delayed_set_stat
3462 before exiting.
3463 * src/buffer.c (new_volume): Likewise.
3464 * src/incremen.c (read_directory_file): Likewise.
3465 * src/tar.c (decode_options):
3466 ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0,
3467 for consistency.
3468
3469 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.4.
3470 * configure.in (AC_CHECK_FUNCS): Add lstat, readlink, symlink.
3471
3472 * src/system.h (lstat): Define only if !HAVE_LSTAT && !defined lstat.
3473 (S_ISMPB, S_ISMPC, S_ISNWK): Remove unused macros.
3474 (S_ISBLK, S_ISCHR, S_ISCTG, S_ISFIFO, S_ISLNK, S_ISSOCK):
3475 Define to 0 if the corresponding S_IF* macro is not defined.
3476 (mkfifo): Do not define if already defined, or if S_IFIFO
3477 is not defined.
3478
3479 * src/compare.c (diff_archive): Use HAVE_READLINK, not
3480 S_ISLNK, to determine whether to invoke readlink.
3481 * src/create.c (dump_file): Likewise.
3482
3483 * src/extract.c (set_mode):
3484 Do not chmod unless we are root or the -p option was given;
3485 this matches historical practice.
3486 (unlink_destination): New function, which checks for unlink failures.
3487 (maybe_recoverable): Stay quiet if -U.
3488 (extract_archive): Use O_EXCL if unlink_first_option.
3489 Report unlink failures.
3490 Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists.
3491 Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether
3492 mkfifo exists.
3493
3494 * src/incremen.c (get_directory_contents): Depend on
3495 S_ISHIDDEN, not AIX, to determine whether to invoke S_ISHIDDEN.
3496
3497 * src/list.c: Remove S_IS* ifdefs.
3498 * src/misc.c (maybe_backup_file): Likewise.
3499
3500 * src/misc.c (maybe_backup_file):
3501 "Virtual memory exhausted" -> "Memory exhausted",
3502 to conform to the other places this message is issued.
3503
3504 * src/mangle.c (extract_mangle):
3505 Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK.
3506
3507 * src/rtapelib.c (rmt_open__):
3508 Remove typo that caused us to omit the first char
3509 of the basename.
3510
3511 1999-07-16 Paul Eggert <eggert@twinsun.com>
3512
3513 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.13.3.
3514
3515 * doc/tar.texi: A path name is excluded if any of its file name
3516 components matches an excluded pattern, even if the path name was
3517 specified on the command line.
3518 * src/create.c (create_archive): Likewise.
3519 * src/list.c (read_and): Likewise.
3520 * src/update.c (update_archive): Likewise.
3521 * lib/exclude.h (excluded_pathname): New decl.
3522 * lib/exclude.c (_GNU_SOURCE): Define.
3523 (FILESYSTEM_PREFIX_LEN, ISSLASH): New macros.
3524 (excluded_filename_opts): New function.
3525 (excluded_pathname): New function.
3526
3527 * lib/Makefile.am (EXTRA_DIST):
3528 xstrtol.c moved here from libtar_a_SOURCES.
3529 (libtar_a_SOURCES): Move xstrtol.c to EXTRA_DIST.
3530 Remove xstrtoul.c; no longer needed.
3531 * lib/xstrtol.c: Remove.
3532
3533 * src/tar.c (decode_options):
3534 Set newer_time_option to TYPE_MINIMUM, so that
3535 negative timestamps are handled correctly.
3536 Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
3537 uniformity (and so that we don't need to have the other fns).
3538 (main): Remove call to init_total_written; no longer needed.
3539
3540 * configure.in (AC_CHECK_SIZEOF): Remove no-longer-needed
3541 checks for unsigned long and long long.
3542 * src/arith.c: Remove.
3543 * src/Makefile.am (tar_SOURCES): Remove arith.c.
3544 * po/POTFILES.in: Remove src/arith.c.
3545 * src/arith.h: Use double, to simplify configuration gotchas.
3546 (tarlong): Now double.
3547 (TARLONG_FORMAT): New macro.
3548 (BITS_PER_BYTE, BITS_PER_TARLONG, SUPERDIGIT, BITS_PER_SUPERDIGIT,
3549 LONGS_PER_TARLONG, SIZEOF_TARLONG, struct tarlong,
3550 zerop_tarlong_helper, lessp_tarlong_helper, clear_tarlong_helper,
3551 add_to_tarlong_helper, mult_tarlong_helper, print_tarlong_helper,
3552 zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong,
3553 mult_tarlong, print_tarlong): Remove. All callers replaced with
3554 arithmetic ops.
3555
3556 * src/common.h (init_total_written): Remove decl.
3557
3558 * src/buffer.c (total_written):
3559 Remove; replaced with prev_written + bytes_written.
3560 (prev_written): New var.
3561 (init_total_written): Remove.
3562 (print_total_written): Use TARLONG_FORMAT instead of print_tarlong.
3563
3564 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG):
3565 Make sure that we can shift, multiply
3566 and divide unsigned long long values; Ultrix cc can't do it.
3567
3568 * lib/modechange.c (mode_compile): Use uintmax_t, not unsigned long.
3569 Check for any unknown bits, not just unknown bits left of the leftmost
3570 known bit.
3571
3572 * lib/quotearg.c (quotearg_buffer):
3573 Don't quote spaces if C quoting style.
3574 * src/list.c (from_oct):
3575 Use C quoting style for error; omit trailing NULs.
3576
3577 1999-07-14 Paul Eggert <eggert@twinsun.com>
3578
3579 * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.2.
3580
3581 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
3582 <inttypes.h> defines strtoumax as a macro (and not as a function).
3583 HP-UX 10.20 does this.
3584
3585 * src/tar.c (usage): tar-bugs@gnu.org -> bug-tar@gnu.org
3586 * PORTS, README, TODO, doc/tar.texi: Likewise.
3587
3588 1999-07-12 Paul Eggert <eggert@twinsun.com>
3589
3590 * configure.in (AM_INIT_AUTOMAKE): Version 1.13.1.
3591 (LIBOBJS): Add mktime.o to automake 1.4 bug workaround.
3592
3593 * src/list.c (decode_header):
3594 Do not assume that S_IFBLK and S_IFCHR are defined.
3595
3596 * src/create.c (start_header): Do not assume S_IFMT is defined.
3597 (dump_file): Remove unnecessary check for screwy apollo lossage.
3598 Do not assume S_IFBLK and S_IFCHR are defined.
3599
3600 * src/extract.c (extract_archive):
3601 Test whether S_IFCHR and S_IFBLK are nonzero,
3602 not whether they are defined, for consistency with other tests.
3603
3604 * src/buffer.c (is_regular_file):
3605 Don't succeed on files that we can't access due to
3606 permissions problems.
3607 (open_archive): Fix wording on fatal error message.
3608 Don't bother to stat /dev/null if the archive is not a character
3609 special device.
3610
3611 * src/compare.c (process_rawdata, diff_sparse_files, diff_archive):
3612 Report an error, not a warning, for I/O errors.
3613 (process_rawdata, process_dumpdir, diff_sparse_files):
3614 Change ungrammatical "Data differs" to "Contents differ".
3615 (get_stat_data): Find hidden files on AIX.
3616 Accept file name as argument; all uses changed.
3617 (get_stat_data, diff_archive): Use system error message for
3618 nonexistent files rather than rolling our own.
3619 (diff_archive): Unknown file types are errors, not warnings.
3620 Normalize spelling of message to "File type differs".
3621 Use get_stat_data to get link status, for consistency.
3622 Do not inspect st_rdev for fifos.
3623 Do not assume st_mode values contain only file types and mode bits.
3624 Check for mode changes and device number changes separately.
3625
3626 * src/update.c (append_file):
3627 Open the file before statting it, to avoid a race.
3628 Complain about file shrinkage only when we reach EOF.
3629
3630 1999-07-08 Paul Eggert <eggert@twinsun.com>
3631
3632 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13 released.
3633
3634 * configure.in (AC_EXEEXT): Add.
3635
3636 * lib/Makefile.am (noinst_HEADERS):
3637 Add basename.h, exclude.h. Remove full-write.h.
3638 (libtar_a_SOURCES): Add exclude.c.
3639
3640 * lib/basename.h, lib/exclude.c, lib/exclude.h, lib/safe-read.h:
3641 New files.
3642 * lib/full-write.c: Include safe-read.h instead of full-write.h.
3643 * lib/safe-read.h (safe_read): New decl.
3644 * src/rmt.c: Include safe-read.h.
3645 * src/rtapelib.c: Include basename.h, save-read.h.
3646 (rmt_open__): Use base_name to compute base name.
3647
3648 * src/common.h:
3649 Include basename.h, exclude.h; don't include full-write.h.
3650 (exclude_option): Remove decl.
3651 (excluded): New decl.
3652 (add_exclude, add_exclude_file, check_exclude): Remove decls.
3653
3654 * src/list.c (read_and):
3655 Use excluded_filename instead of check_exclude.
3656 Check base name of incoming file name, not entire file name, when
3657 deciding whether to exclude it.
3658
3659 * src/create.c (finish_sparse_file):
3660 Use excluded_filename instead of check_exclude.
3661 Don't bother to stat excluded file names.
3662 * src/incremen.c (get_directory_contents): Likewise.
3663
3664 * src/names.c (exclude_pool, exclude_pool_size,
3665 allocated_exclude_pool_size, simple_exclude_array,
3666 simple_excludes, allocated_simple_excludes,
3667 pattern_exclude_array, pattern_excludes,
3668 allocated_pattern_excludes, add_exclude, add_exclude_file,
3669 check_exclude):
3670 Remove; now done in ../lib/exclude.c.
3671
3672 * src/tar.c (decode_options): Initialize `excluded'.
3673 Use new add_exclude_file and add_exclude functions.
3674
3675 1999-07-05 Paul Eggert <eggert@twinsun.com>
3676
3677 * m4/gettext.m4: Use changequote rather than [[ ]].
3678
3679 * lib/safe-read.c: Renamed from lib/full-read.c.
3680 (safe_read): Renamed from full_read. All uses changed.
3681 * lib/safe-read.h, lib/full-write.h: New files.
3682 * lib/Makefile.am (noinst_HEADERS): Add full-write.h, safe-read.h.
3683 (libtar_a_SOURCES): Rename full-read.c to safe-read.c.
3684 * lib/full-write.c: Include full-write.h.
3685 * src/common.h: Include full-write.h, safe-read.h.
3686 * src/system.h: (full_read, full_write): Remove decls.
3687
3688 * src/Makefile.am (datadir): New var; needed for Solaris gettext.
3689
3690 * src/system.h (bindtextdomain, textdomain): undef before
3691 defining, to avoid preprocessor warnings with --disable-nls
3692 on hosts whose locale.h includes libintl.h.
3693
3694 * lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol
3695 expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
3696 (strtol, strtoul): New decls (for pre-ANSI hosts), to replace
3697 the above decl.
3698
3699 1999-07-02 Paul Eggert <eggert@twinsun.com>
3700
3701 * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/mktime.m4.
3702 * m4/mktime.m4: New file.
3703 * m4/Makefile.am.in, m4/README: Remove these files.
3704 * m4/Makefile.am (EXTRA_DIST): Add mktime.m4;
3705 remove README, Makefile.am.in.
3706 (Makefile.am): Remove rule; it didn't work in BSD/OS 4.0.
3707 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Invoke AC_FUNC_MKTIME,
3708 not AM_FUNC_MKTIME.
3709
3710 * src/tar.c: Include signal.h.
3711 (SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not.
3712 (main): Ensure SIGCHLD is not ignored.
3713
3714 (BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION,
3715 MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION,
3716 OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION,
3717 RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION,
3718 VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES,
3719 OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR,
3720 OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH,
3721 OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so
3722 they don't overlap with char codes. Use an enum instead of a lot
3723 of #defines.
3724
3725 * src/system.h (ISASCII): Remove.
3726 (CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID,
3727 S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP,
3728 S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW,
3729 MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX,
3730 LONG_MAX): New macros.
3731
3732 * src/incremen.c (ISDIGIT, ISSPACE): Remove; now in system.h.
3733 (read_directory_file): Cast ISSPACE arg to unsigned char.
3734 * src/misc.c (ISPRINT): Remove; now in system.h.
3735 (remove_any_file): Add brackets to pacify gcc -Wall.
3736 * src/list.c: Don't include <ctype.h>; system.h already does this.
3737 (ISODIGIT, ISSPACE): Remove; now in system.h.
3738 (decode_header): No need to AND mode with 07777; MODE_FROM_OCT
3739 does this now.
3740 (from_oct): Cast ISSPACE arg to unsigned char.
3741
3742 * src/create.c (mode_to_oct): Translate modes from internal to
3743 external form.
3744 * src/list.c (mode_from_oct): Translate modes from external to
3745 internal form. Do not complain about unrecognized mode bits.
3746 * src/common.h (TSUID, TSGID, TSVTX, TUREAD, TUWRITE, TUEXEC,
3747 TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs.
3748
3749 * src/extract.c: (extr_init, make_directories, extract_archive):
3750 Do not assume mode bits have traditional Unix values.
3751 * src/list.c (decode_mode): Likewise.
3752 * src/create.c (start_header, dump_file): Likewise.
3753 * src/buffer.c (child_open_for_compress,
3754 child_open_for_uncompress, open_archive, (close_archive): Likewise.
3755 * src/compare.c (diff_archive): Likewise.
3756
3757 * src/extract.c (set_mode): Use %04 not %0.4 format.
3758 (extract_sparse_file): Do not use data_block uninitialized.
3759 Check for lseek failures.
3760
3761 * src/rtapelib.c (rmt_lseek__):
3762 Convert lseek whence values to portable integers on the wire.
3763 * src/rmt.c (main): Likewise. Check for whence values out of range.
3764
3765 * src/create.c (finish_sparse_file): Use lseek whence macros
3766 instead of integers.
3767 * src/buffer.c (backspace_output): Likewise.
3768 * src/compare.c (diff_archive, verify_volume): Likewise.
3769 * src/delete.c (move_archive): Likewise.
3770 * src/extract.c (extract_sparse_file): Likewise.
3771
3772 * src/create.c (dump_file): Do not invoke finish_sparse_file
3773 on a negative file descriptor.
3774
3775 * src/buffer.c: Add braces to pacify gcc -Wall.
3776
3777 * src/compare.c (diff_sparse_files): Report lseek errors.
3778
3779 * configure.in (ALL_LINGUAS): Add cs, es, ru.
3780
3781 * PORTS, TODO: gnu.ai.mit.edu -> gnu.org
3782
3783 * src/arith.c, src/buffer.c (new_volume): Don't put ^G in
3784 message to be internationalized; \a doesn't work with msgfmt.
3785
3786 * src/tar.c (long_options, main, usage, OPTION_STRING):
3787 Remove -E or --ending-file.
3788 * src/list.c (read_and): Likewise.
3789 * src/common.h (ending_file_option): Likewise.
3790 * src/buffer.c (close_archive): Likewise.
3791
3792 * tests/after: Don't run two commands together in a pipeline,
3793 as some old shells mishandle pipeline exit status.
3794
3795 1999-06-28 Paul Eggert <eggert@twinsun.com>
3796
3797 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64015.
3798 * NEWS: Describe changes since 1.12.
3799 * README: Update bug reporting address; move paxutils ref to NEWS.
3800
3801 Handle EINTR correctly.
3802 * lib/Makefile.am (libtar_a_SOURCES): Add full-read.c, full-write.c.
3803 * lib/full-read.c, lib/full-write.c: New files.
3804 * src/buffer.c (child_open_for_compress, child_open_for_uncompress):
3805 Prefer full_read to read and full_write to write.
3806 * src/compare.c (process_rawdata, diff_sparse_files): Likewise.
3807 * src/create.c (deal_with_sparse, finish_sparse_file, dump_file):
3808 Likewise.
3809 * src/extract.c (extract_sparse_file): Likewise.
3810 * src/rmt.c (get_string, main, report_error_message,
3811 report_numbered_error): Likewise.
3812 * src/rmt.h (rmtread, rmtwrite): Likewise.
3813 * src/rtapelib.c (do_command, get_status_string, rmt_read__,
3814 rmt_write__, rmt_ioctl__): Likewise.
3815 * src/update.c (append_file): Likewise.
3816 * src/system.h (full_read, full_write): New decls.
3817
3818 * po/POTFILES.in: Add lib/argmatch.c, lib/error.c lib/getopt.c,
3819 lib/xmalloc.c, src/arith.c, src/misc.c.
3820
3821 * src/system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
3822 New macros. All uses of STDIN and STDOUT changed.
3823 * src/rmt.c (prepare_record_buffer, main): Use STDIN_FILENO
3824 instead of 0 and STDOUT_FILENO instead of 1.
3825 * src/rtapelib.c (_rmt_rexec): Use STDIN_FILENO and STDOUT_FILENO
3826 instead of fileno (stdin) and fileno (stdout) or 0 and 1.
3827
3828 * src/rmt.c (private_strerror): Avoid const. Translate results.
3829
3830 * tests/Makefile.am (TESTS): Remove incremen.sh; it doesn't work
3831 in the presence of NFS clock skew.
3832
3833 1999-06-25 Paul Eggert <eggert@twinsun.com>
3834
3835 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64014.
3836
3837 * src/buffer.c (write_archive_buffer): New function.
3838 (child_open_for_compress, flush_write, flush_read): Use it to write
3839 buffers.
3840 (open_archive): Report error if fstat of archive fails.
3841 Improve efficiency of check for /dev/null.
3842 Also, fix some corner cases with remote archives and /dev/null checking.
3843 (close_archive): Test for input fifo only if not remote.
3844 Truncate output archive only if it's not remote.
3845
3846 * src/misc.c (remove_any_file):
3847 Don't terminate if you see . or ..; just skip them.
3848
3849 1999-06-18 Paul Eggert <eggert@twinsun.com>
3850
3851 * configure.in (AM_INIT_AUTOMAKE): version 1.12.64013.
3852
3853 Output sizes using a format that's more compatible with
3854 traditional tar (and with GNU Emacs).
3855 * src/common.h (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT,
3856 MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT):
3857 Don't subtract 1 from size.
3858 * src/create.c (to_oct): Prepend leading zeros, not spaces.
3859 Output a trailing NUL unless the value won't fit without it.
3860 (finish_header): No need to append NUL to chksum, now that
3861 to_oct is doing it.
3862
3863 1999-06-16 Paul Eggert <eggert@twinsun.com>
3864
3865 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64012.
3866
3867 * src/Makefile.am (LDADD): Link libtar.a after @INTLLIBS@, since
3868 @INTLLIBS@ might invoke rpl_realloc.
3869
3870 * src/tar.c (backup_type): Remove decl; backupfile.h now has it.
3871 (intconv): Remove; use xstrto* fns instead.
3872 ("xstrtol.h"): Include.
3873 (check_decimal): Remove.
3874 (long_options, usage, OPTION_STRING, decode_options):
3875 Remove -y, --bzip2, --unbzip2.
3876 (decode_options): Use xget_version instead of get_version.
3877 Check for overflow with -b and -L and RECORD_SIZE_OPTION.
3878 Replace invocations of check_decimal with xstrtoumax.
3879
3880 * tests/preset.in (echo_n, echo_c): Remove.
3881
3882 * tests/after: Don't rely on $echo_c and $echo_n.
3883
3884 * lib/addext.c, lib/dirname.c, lib/lchown.c, lib/lchown.h,
3885 lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c,
3886 lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c,
3887 lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c,
3888 m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4,
3889 m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4,
3890 m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4,
3891 m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4,
3892 m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4,
3893 m4/xstrtoumax.m4: New files.
3894
3895 * configure.in(fp_PROG_ECHO): Remove; no longer needed.
3896 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
3897 (jm_AC_HEADER_INTTYPES_H): Replaces inline code.
3898 (jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add.
3899 (AC_CHECK_FUNCS): Remove lchown.
3900 (AC_REPLACE_FUNCS): Remove basename, dirname.
3901 Add lchown, strtol, strtoul.
3902 (jm_FUNC_MKTIME): Add.
3903 (LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS
3904 are also built via the ANSI2KNR-filtering rules.
3905 Use a no-op line to work around bug in automake 1.4 with malloc and
3906 realloc.
3907 (AC_OUTPUT): Add m4/Makefile.
3908
3909 * lib/Makefile.am (EXTRA_DIST):
3910 Add lchown.c, malloc.c, mktime.c, realloc.c,
3911 strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c.
3912 (noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h.
3913 (libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c,
3914 xstrtoul.c, xstrtoumax.c. Remove getversion.c.
3915 ($(srcdir)/getdate.c:): Remove `expect conflicts' line.
3916
3917 * src/system.h (uintmax_t): Don't declare; configure now does this.
3918
3919 * src/common.h (backup_type): New decl.
3920 * src/common.h, src/misc.c, src/tar.c:
3921 Move include of backupfile.h to common.h.
3922
3923 * src/misc.c (maybe_backup_file):
3924 Pass backup_type to find_backup_file_name.
3925
3926 * src/list.c (print_header): Change sizes of uform and gform from 11 to
3927 UINTMAX_STRSIZE_BOUND.
3928
3929 * doc/tar.texi: Remove --bzip2.
3930 Fix @xref typos reported by latest makeinfo.
3931
3932 * Makefile.am (ACLOCAL_AMFLAGS): New macro.
3933 (SUBDIRS): Add m4.
3934 (M4DIR, ACINCLUDE_INPUTS): New macros.
3935 ($(srcdir)/acinclude.m4): New rule.
3936
3937 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
3938 HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs;
3939 now generated automatically by autoconf.
3940
3941 1999-05-15 Paul Eggert <eggert@twinsun.com>
3942
3943 * doc/tar.texi: Remove -y.
3944
3945 1999-04-09 Paul Eggert <eggert@twinsun.com>
3946
3947 * src/system.h (INT_STRLEN_BOUND): Fix off-by-factor-of-10 typo
3948 (we were allocating too much storage).
3949 (uintmax_t): Don't declare; configure now does this.
3950
3951 * ABOUT-NLS: Update to gettext 0.10.35 edition.
3952
3953 1999-03-22 Paul Eggert <eggert@twinsun.com>
3954
3955 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64010
3956
3957 * acinclude.m4 (AC_LFS_FLAGS):
3958 Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default.
3959 (AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS.
3960 (jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros.
3961
3962 * configure.in (jm_FUNC_MALLOC, jm_FUNC_REALLOC):
3963 New macros; needed for latest GNU xmalloc.c.
3964
3965 * Makefile.am (noinst_HEADERS): Add quotearg.h, xalloc.h.
3966 (libtar_a_SOURCES): Add quotearg.c.
3967 * list.c: Include <quotearg.h>.
3968 (from_oct): Add forward decl.
3969 (read_header): Return HEADER_FAILURE if we can't parse the checksum.
3970 (from_oct): Report an error only if TYPE is nonzero.
3971 Quote any funny characters in bad header.
3972
3973 1999-03-20 Paul Eggert <eggert@twinsun.com>
3974
3975 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64009
3976
3977 * acinclude.m4 (AC_LFS_FLAGS): Add support for IRIX 6.2 and later.
3978 (AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers
3979 changed.
3980 (AC_LFS): Simplify AIX revision number test.
3981
3982 1999-03-17 Paul Eggert <eggert@twinsun.com>
3983
3984 * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64008
3985
3986 * configure.in (AC_VALIDATE_CACHED_SYSTEM_TUPLE):
3987 Remove; it doesn't work that well
3988 with AC_CANONICAL_HOST.
3989 (fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc.
3990
3991 * Makefile.am (EXTRA_DIST): Remove AC-PATCHES, AM-PATCHES, BI-PATCHES.
3992
3993 * Makefile.am (EXTRA_DIST): Remove gmalloc.c.
3994
3995 * acinclude.m4 (fp_WITH_INCLUDED_MALLOC): Remove.
3996
3997 * tar.texi: Fix bug-report addr.
3998
3999 * README: Remove --with-included-malloc.
4000 Upgrade version numbers of build software.
4001
4002 1999-03-07 Paul Eggert <eggert@twinsun.com>
4003
4004 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64007.
4005
4006 * acinclude.m4 (AM_WITH_NLS): Port to Solaris 2.5.1,
4007 where bindtextdomain and gettext require -lintl.
4008 (AC_LFS_FLAGS): Simplify so that it only gets the flags;
4009 `no' means it failed.
4010 (AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros.
4011 (AC_LFS): Use them. Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and
4012 _LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need
4013 to add anything to the command line (it's all in config.h).
4014 Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS.
4015
4016 1999-03-01 Paul Eggert <eggert@twinsun.com>
4017
4018 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64006.
4019
4020 * acinclude.m4 (AC_LFS_FLAGS): Port to AIX 4.2.
4021
4022 * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
4023 mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
4024 uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros
4025 like OFF_MAX, which are not reliable
4026 (e.g. OFF_MAX in AIX 4.2 is incorrect).
4027 * src/system.h (GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX,
4028 SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX): Remove; no longer used.
4029
4030 * src/incremen.c (get_directory_contents):
4031 Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2.
4032 Have statx depend on STX_HIDDEN, not AIX.
4033
4034 * src/create.c (to_oct):
4035 New parameter substitute, giving a substitute value to use
4036 when the original value is out of range. Do not append a space to the
4037 output; modern tars don't. When a value is out of range, specify the
4038 maximum value, not the number of bits.
4039 (GID_NOBODY, UID_NOBODY): New macros.
4040 (gid_to_oct, uid_to_oct): Use them as substitutes.
4041 (finish_header): Do not assume that UINTMAX_TO_OCT appends a space.
4042 (dump_file): Check whether the file changed as we read it.
4043
4044 * src/rmt.c (main): Remove suspicious AIX/386 code.
4045
4046 1999-02-19 Paul Eggert <eggert@twinsun.com>
4047
4048 * intl/localealias.c (read_alias_file): Don't assume that memcpy
4049 returns a type compatible with char *; it doesn't on SunOS
4050 4.1.4 with Sun cc, since <string.h> doesn't declare memcpy.
4051
4052 * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64005.
4053
4054 * src/tar.c (long_options, usage): Prefer --unbzip2 to --bunzip2.
4055 * doc/tar.texi: Add --bzip2, --unbzip2 options.
4056
4057 * configure.in (AC_CANONICAL_HOST, AC_VALIDATE_CACHED_SYSTEM_TUPLE):
4058 Add.
4059 (AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this.
4060 (AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this.
4061 * acinclude.m4 (AM_WITH_NLS):
4062 Update to latest gettext version (serial 5).
4063 (AC_LFS_FLAGS): New macro
4064 (AC_LFS): Use it. Append to CFLAGS, LDFLAGS, LDLIBS instead of
4065 working only with unset variables. Append to CFLAGS, not CPPFLAGS.
4066 Work properly in cross-compilation scenario, by checking for getconf
4067 with AC_CHECK_TOOL and by ditching uname in favor of
4068 AC_CANONICAL_HOST and $host_os. Add --disable-lfs option.
4069
4070 * lib/getdate.y: Update to fileutils 4.0 getdate.y, with one patch:
4071 replace FORCE_ALLOCA_H with HAVE_ALLOCA_H.
4072 * lib/Makefile.am (AUTOMAKE_OPTIONS): Append ../src/ansi2knr,
4073 since getdate.y now uses ANSI code.
4074
4075 * config.guess, config.sub: New files; taken from automake 1.4.
4076
4077 * intl/Makefile.in, intl/VERSION, intl/bindtextdom.c,
4078 intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c,
4079 intl/explodename.c, intl/finddomain.c, intl/gettext.c,
4080 intl/gettext.h, intl/gettextP.h, intl/hash-string.h,
4081 intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h,
4082 intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c:
4083 Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109.
4084
4085 1999-02-01 Paul Eggert <eggert@twinsun.com>
4086
4087 * src/tar.c: Update copyright.
4088
4089 * NEWS: 1.12.64004
4090
4091 1999-02-01 Paul Eggert <eggert@twinsun.com>
4092
4093 * NEWS, configure.in: Version 1.12.64004
4094
4095 * configure.in (AC_LFS): Use this macro, instead of open-coding it.
4096
4097 * acinclude.m4 (AC_LFS, AM_PROG_CC_STDC): New macros.
4098
4099 * src/extract.c (extract_archive): Fix bug when extracting sparse
4100 files: they were trashing the tar file header.
4101
4102 * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
4103 Add -y or --bzip2 or --bunzip2 option.
4104
4105 1999-01-30 Paul Eggert <eggert@twinsun.com>
4106
4107 * src/names.c (cached_no_such_uname, cached_no_such_gname,
4108 cached_no_such_uid, cached_no_such_gid): New vars.
4109 (uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid):
4110 Cache failures, too.
4111
4112 * src/tar.c (decode_options):
4113 Don't pass names longer than UNAME_FIELD_SIZE to
4114 uname_to_uid, as it messes up the cache. Similarly for gname_to_uid.
4115
4116 1999-01-27 Paul Eggert <eggert@twinsun.com>
4117
4118 * NEWS, configure.in: Version 1.12.64003
4119
4120 * src/buffer.c (backspace_output, close_archive): Cast
4121 rmtlseek position arg to off_t, for benefit of K&R compilers
4122 with long long.
4123 * src/compare.c (verify_volume): Likewise.
4124
4125 * NEWS, configure.in: Version 1.12.64002
4126
4127 * src/create.c (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
4128 off_to_oct, size_to_oct, time_to_oct, uid_to_oct):
4129 Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long.
4130 * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
4131 mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
4132 uid_from_oct): Likewise.
4133
4134 1999-01-25 Paul Eggert <eggert@twinsun.com>
4135
4136 * incremen.sh: Fix timing bug in regression test.
4137
4138 1999-01-22 Paul Eggert <eggert@twinsun.com>
4139
4140 * NEWS, configure.in: Update version
4141
4142 * Makefile.am (localedir): Change to $(datadir)/locale.
4143 (DEFS): New macro, defining LOCALEDIR.
4144 (tar.o, tar._o, rmt.o, rmt._o): Remove.
4145 (INCLUDES): Add -I..
4146
4147 * Makefile.am (localedir): Change to $(datadir)/locale.
4148
4149 1999-01-21 Paul Eggert <eggert@twinsun.com>
4150
4151 * NEWS, README, configure.in: Unofficial version 1.12.64001.
4152
4153 * tests/Makefile.am (localedir): Change to $(datadir)/locale.
4154 * src/Makefile.am (localedir): Likewise.
4155 (DEFS): New macro, defining LOCALEDIR.
4156 (tar.o, tar._o, rmt.o, rmt._o): Remove.
4157 (INCLUDES): Add `-I..'.
4158
4159 * tests/incremen.sh: Fix timing bug.
4160
4161 1999-01-20 Paul Eggert <eggert@twinsun.com>
4162
4163 * NEWS, README, configure.in: Unofficial version 1.12.64000.
4164 `lfs.7' changed to `64000' in version number
4165 to conform to gnits standards.
4166
4167 * COPYING, INSTALL, doc/texinfo.tex, install-sh, missing,
4168 mkinstalldirs, ansi2knr.c: Update to latest public versions.
4169
4170 Rebuild with automake 1.4 and autoconf 2.13, to work around some
4171 porting problems.
4172
4173 1998-12-07 Paul Eggert <eggert@twinsun.com>
4174
4175 * NEWS, README, configure.in: Unofficial version 1.12.lfs.6.
4176
4177 * src/list.c (read_header):
4178 Accept file names as specified by POSIX.1-1996 section 10.1.1.
4179
4180 1998-11-30 Paul Eggert <eggert@twinsun.com>
4181
4182 * configure.in: Quote the output of uname.
4183
4184 * src/extract.c (set_stat): chmod after chown even when not root;
4185 if we are using --same-owner this is needed e.g. on Solaris 2.5.1.
4186
4187 1998-11-15 Paul Eggert <eggert@twinsun.com>
4188
4189 * NEWS, README, configure.in: Unofficial version 1.12.lfs.5.
4190
4191 * configure.in (ac_test_CPPFLAGS, ac_test_LDFLAGS, ac_test_LIBS,
4192 ac_getconfs, ac_result): Special case for HP-UX 10.20 or later.
4193
4194 1998-10-28 Paul Eggert <eggert@twinsun.com>
4195
4196 * NEWS, README, configure.in: Unofficial version 1.12.lfs.4.
4197
4198 * src/system.h (voidstar): Use void * if __STDC__ is defined,
4199 not merely nonzero.
4200
4201 * src/rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC.
4202 On many installations, rexec is disabled.
4203
4204 1998-08-07 Paul Eggert <eggert@twinsun.com>
4205
4206 * NEWS, README, configure.in: Unofficial version 1.12.lfs.3.
4207
4208 * src/names.c (uid_to_uname, gid_to_gname): Don't used cached name
4209 for nameless users and groups.
4210
4211 1998-02-17 Paul Eggert <eggert@twinsun.com>
4212
4213 * NEWS, README, configure.in: Unofficial version 1.12.lfs.2.
4214 * NEWS, README: Add explanation of why this isn't an official version.
4215
4216 1998-02-02 Paul Eggert <eggert@twinsun.com>
4217
4218 * NEWS, README, configure.in: Unofficial version 1.12.lfs.1.
4219 This is an unofficial version.
4220
4221 1997-12-17 Paul Eggert <eggert@twinsun.com>
4222
4223 * src/incremen.c (ST_DEV_MSB): New macro.
4224 (NFS_FILE_STAT): Use most significant bit of st_dev,
4225 even if it's unsigned.
4226
4227 1997-12-08 Paul Eggert <eggert@twinsun.com>
4228
4229 * src/system.h (ST_NBLOCKS): Fix typo in definition.
4230
4231 1997-11-19 Paul Eggert <eggert@twinsun.com>
4232
4233 * configure.in (HAVE_INTTYPES_H):
4234 Don't ignore cache variable if it's already set.
4235
4236 1997-11-10 Paul Eggert <eggert@twinsun.com>
4237
4238 * src/rmt.c (main): Don't assume mt_count is of type daddr_t.
4239 * src/delete.c (records_read): Now off_t.
4240 (move_archive): Don't assume mt_count is of type daddr_t.
4241
4242 1997-10-30 Paul Eggert <eggert@twinsun.com>
4243
4244 * configure.in (CPPFLAGS, LDFLAGS, LIBS):
4245 Set to appropriate values if large file support
4246 needs explicit enabling.
4247 (HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t,
4248 ssize_t):
4249 New macros to configure.
4250 (AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add.
4251
4252 * acconfig.h (daddr_t, HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING,
4253 major_t, minor_t, ssize_t): New macros.
4254
4255 * src/arith.h (TARLONG_FORMAT):
4256 Fix typo: %uld -> %lu. Use unsigned when long long
4257 (%lld -> %llu).
4258 (add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long.
4259 (add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long.
4260
4261 * src/arith.c (add_to_tarlong_helper, mult_tarlong_helper):
4262 2nd arg is now unsigned long.
4263
4264 * src/rmt.c (allocated_size): Now size_t, and now initialized to 0.
4265 (prepare_record_buffer): Arg is now size_t.
4266 Remove now-useless casts.
4267
4268 (main): Use `long' for status, so that it can store ssize_t.
4269 Use daddr_t, mode_t, size_t, off_t when appropriate.
4270 Convert daddr_t and off_t values ourselves, since they might be longer
4271 than long. Convert other types using `long' primitives.
4272 When processing MTIOCTOP, do not try to pass resulting
4273 count back, since it won't work (it could be too large) and it's
4274 not expected anyway.
4275
4276 * src/update.c:
4277 (append_file) Use off_t, size_t, ssize_t when appropriate. Remove
4278 now-useless casts. Use unsigned long to print *_t types, except use
4279 STRINGIFY_BIGINT for off_t.
4280 (update_archive): Cast -1 to dev_t when necessary.
4281
4282 * src/tar.c (check_decimal):
4283 Now returns 1 if successful, 0 otherwise, and returns
4284 uintmax_t value into new arg. Check for arithmetic overflow.
4285 (decode_options): Avoid overflow if record_size fits in size_t but not int.
4286 Check for overflow on user or group ids.
4287
4288 * src/compare.c (diff_init, process_rawdata, read_and_process,
4289 diff_sparse_files, diff_archive):
4290 Use off_t, pid_t, size_t, ssize_t when appropriate.
4291 Remove now-useless casts. Use unsigned long to print *_t types,
4292 except use STRINGIFY_BIGINT for off_t.
4293
4294 (process_noop, process_rawdata, process_dumpdir, read_and_process):
4295 Size arg is now size_t.
4296
4297 (diff_sparse_files): Arg is now off_t. Check for size_t overflow
4298 when allocating buffer.
4299
4300 * src/rtapelib.c:
4301 (do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__):
4302 Use pid_t, size_t, ssize_t when appropriate. Remove now-useless casts.
4303 Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for
4304 off_t.
4305
4306 (get_status_string, get_status_off): New function.
4307 (get_status): Now returns long, so that it can store ssize_t.
4308 Invoke get_status_string to do the real work.
4309 (rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t.
4310 (rmt_lseek__): Now returns off_t, using new get_status_off function.
4311 (rmt_ioctl__): Convert mt_count by hand,
4312 since it might be longer than long.
4313
4314 * src/mangle.c (extract_mangle):
4315 Check for overflow when converting off_t to size_t.
4316 Use off_t, size_t when appropriate. Remove now-useless casts.
4317
4318 * src/system.h (mode_t): Remove; now done by autoconf.
4319 (ST_NBLOCKS): Do not overflow if st_size is near maximum.
4320 Return number of ST_NBLOCKSIZE-byte blocks,
4321 not number of 512-byte blocks;
4322 this also helps to avoid overflow.
4323 (st_blocks): Declare if needed.
4324 (ST_NBLOCKSIZE): New macro.
4325 (<limits.h>, <inttypes.h>): Include if available.
4326 (CHAR_BIT): New macro.
4327 (uintmax_t): New typedef.
4328 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND,
4329 UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX,
4330 OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros.
4331
4332 * src/names.c (name_init):
4333 Fix typo in error message: FILE* was passed, but char*
4334 was wanted.
4335
4336 (read_name_from_file, name_gather, addname, name_match, name_scan,
4337 add_exclude): Use size_t when appropriate. Remove now-useless casts.
4338
4339 (exclude_pool_size, allocated_exclude_pool_size): Now size_t.
4340
4341 * src/extract.c (newdir_umask, current_umask): Now mode_t.
4342 (extract_sparse_file): Args now use off_t.
4343
4344 (set_mode, set_stat, make_directories, extract_sparse_file,
4345 extract_archive): Use off_t, size_t, ssize_t when appropriate. Remove
4346 now-useless casts. Use unsigned long to print *_t types, except use
4347 STRINGIFY_BIGINT for off_t.
4348
4349 * src/misc.c (quote_copy_string):
4350 Use size_t when appropriate. Remove now-useless casts.
4351
4352 * src/list.c (read_and, list_archive, read_header, decode_mode,
4353 print_header, print_for_mkdir):
4354 Use mode_t, off_t, size_t when appropriate. Remove
4355 now-useless casts. Use unsigned long to print *_t types, except use
4356 STRINGIFY_BIGINT for off_t.
4357
4358 (read_header): Check for overflow when converting header size.
4359
4360 (from_oct): Now static. Now returns uintmax_t. `where' arg is now
4361 const char *. Size arg is now size_t. Now takes new type and maxval
4362 args. Compute result using uintmax_t, not long. Report error if
4363 field does not contain octal number in range.
4364 (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
4365 off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
4366 uintmax_from_oct): New functions.
4367
4368 (stringify_uintmax_t_backwards): New function.
4369
4370 (decode_mode, print_for_mkdir): Mode arg is now mode_t.
4371 (skip_file): Offset arg is now off_t.
4372
4373 * src/buffer.c (record_start_block, save_totsize, save_sizeleft,
4374 real_s_totsize, real_s_sizeleft, current_block_ordinal):
4375 Now off_t.
4376 (write_error): Arg is now ssize_t.
4377 (child_pid): Now pid_t.
4378 (available_space_after): Now size_t.
4379
4380 (child_open_for_compress, child_open_for_uncompress, flush_write,
4381 open_archive, flush_write, write_error, flush_read, close_archive):
4382 Use pid_t, ssize_t, size_t when appropriate. Remove now-useless
4383 casts. Use unsigned long to print *_t types, except use
4384 STRINGIFY_BIGINT for off_t.
4385
4386 * src/delete.c (records_read): Now daddr_t.
4387 (move_archive): Arg is now daddr_t. Check for overflow when
4388 computing offset.
4389 (move_archive, delete_archive_members): Use daddr_t, off_t when
4390 appropriate. Remove now-useless casts.
4391
4392 * src/rmt.h (rmt_read__, rmt_write__): Now returns ssize_t.
4393 (rmt_lseek): Now returns off_t.
4394
4395 * src/create.c (to_oct):
4396 Now static. Value arg is now uintmax_t. Accept new args
4397 giving name of type of octal field, for error messages. Report an
4398 error if the value is too large to fit in the field.
4399 (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
4400 size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions.
4401
4402 (write_eot, write_long, finish_header, deal_with_sparse,
4403 finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when
4404 appropriate. Remove now-useless casts. Use unsigned long to print
4405 *_t types, except use STRINGIFY_BIGINT for off_t.
4406
4407 (find_new_file_size): 1st arg is now off_t*.
4408 (finish_sparse_file): Args now use off_t, not long.
4409 Check for lseek error.
4410 (create_archive, dump_file): Cast -1 to dev_t when necessary.
4411 (dump_file): Device arg is now dev_t.
4412 Avoid overflow when testing whether file has holes
4413 by using the new ST_NBLOCKSIZE macro.
4414
4415 * src/incremen.c (struct accumulator, add_to_accumulator,
4416 get_directory_contents, add_hierarchy_to_namelist, gnu_restore):
4417 Use size_t for sizes.
4418 (struct directory, get_directory_contents, add_hierarchy_to_namelist):
4419 Use dev_t, ino_t for devices and inodes.
4420 (gnu_restore): Use off_t for file offsets.
4421 (struct directory): Use char for flags. Add new flag `nfs'.
4422 (nfs): New constant
4423 (NFS_FILE_STAT): New macro.
4424 (note_directory): Accept struct stat * instead of
4425 device and inode number. All callers changed.
4426 (note_directory, get_directory_contents):
4427 Use NFS_FILE_STAT to determine whether directory is an NFS directory.
4428 (write_dir_file): Cast time_t to unsigned long before printing as %lu.
4429
4430 * src/common.h (record_size, struct name, struct sp_array,
4431 available_space_after):
4432 Use size_t for sizes.
4433 (save_sizeleft, save_totsize, current_block_ordinal, skip_file):
4434 Use off_t for file offsets.
4435 (struct name): dir_contents is now const char *, not char *.
4436 (dump_file, get_directory_contents): Use dev_t for devices.
4437 (to_oct): Remove decl.
4438 (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT,
4439 UID_TO_OCT, UINTMAX_TO_OCT, OFF_TO_OCT, TIME_TO_OCT, STRINGIFY_BIGINT,
4440 GID_FROM_OCT, MAJOR_FROM_OCT, MINOR_FROM_OCT, MODE_FROM_OCT,
4441 OFF_FROM_OCT, SIZE_FROM_OCT, TIME_FROM_OCT, UID_FROM_OCT,
4442 UINTMAX_FROM_OCT): New macros.
4443 (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
4444 size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
4445 stringify_uintmax_t_backwards, gid_from_oct, major_from_oct,
4446 minor_from_oct, mode_from_oct, off_from_oct, size_from_oct,
4447 time_from_oct, uid_from_oct, uintmax_from_oct): New decls.
4448 (print_for_mkdir): 2nd arg is now mode_t.
4449
4450 See ChangeLog.1 for earlier changes.
4451
4452
4453 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003 Free Software Foundation,
4454 Inc.
4455
4456 This file is part of GNU tar.
4457
4458 GNU tar is free software; you can redistribute it and/or modify
4459 it under the terms of the GNU General Public License as published by
4460 the Free Software Foundation; either version 2, or (at your option)
4461 any later version.
4462
4463 GNU tar is distributed in the hope that it will be useful,
4464 but WITHOUT ANY WARRANTY; without even the implied warranty of
4465 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4466 GNU General Public License for more details.
4467
4468 You should have received a copy of the GNU General Public License
4469 along with GNU tar; see the file COPYING. If not, write to
4470 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
4471 Boston, MA 02111-1307, USA.
This page took 0.226187 seconds and 5 git commands to generate.