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