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