1 Currently there is just one ChangeLog file for tar, but
2 there used to be separate ChangeLog files for each subdirectory.
3 This file records what used to be in those separate files.
5 Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
6 Free Software Foundation, Inc.
8 This file is part of GNU Tar.
10 GNU Tar is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
15 GNU Tar is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with GNU Tar; see the file COPYING. If not, write to
22 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 Boston, MA 02110-1301, USA.
28 1997-04-25 François Pinard <pinard@iro.umontreal.ca>
32 * configure.in: Check for the inline keyword.
34 1997-04-24 François Pinard <pinard@iro.umontreal.ca>
36 * Makefile.am (BABYL): Delete admin/RMAIL, renamed rmail/announce.
39 (EXTRA_DIST): Adjusted.
41 1997-04-23 François Pinard <pinard@iro.umontreal.ca>
43 * BI-PATCHES: Patches for Bison 1.25.
44 * Makefile.am (EXTRA_DIST): Adjusted.
46 * configure.in (AC_PROG_INSTALL): Call deleted. AM_INIT_AUTOMAKE
47 takes care of this already.
49 1997-04-22 François Pinard <pinard@iro.umontreal.ca>
53 * configure.in: Use gethostent instead of gethostbyname while
54 checking for -lnsl. It seems SINIX systems require this.
55 Reported by Bruno Haible.
57 1997-04-19 François Pinard <pinard@iro.umontreal.ca>
59 * acinclude.m4: New fp_WITH_INCLUDED_MALLOC macro.
60 * configure.in: Use it instead of the HP/UX test for GNU malloc.
61 Reported by Bruno Haible.
63 1997-04-17 François Pinard <pinard@iro.umontreal.ca>
67 * acinclude.m4 (cl_FUNC_GMALLOC): New macro, yet still unused, as
68 it requires config.guess. I have to think more about this.
69 Reported by Bruno Haible.
71 1997-04-16 François Pinard <pinard@iro.umontreal.ca>
73 * AC-PATCHES: Patches for Autoconf 2.12.
74 * AM-PATCHES: Patches for Automake 1.1n.
75 * Makefile.am (EXTRA_DIST): Adjusted.
77 1997-04-15 François Pinard <pinard@iro.umontreal.ca>
79 * configure.in: Ensure all cpp directives are left justified.
80 Reported by Kaveh R. Ghazi.
82 1997-04-12 François Pinard <pinard@iro.umontreal.ca>
84 * configure.in: Add fnmatch.o to LIBOBJS if AC_FUNC_FNMATCH
85 says no working copy was found. This is not done automatically.
86 Reported by Bruno Haible, Bryant Fujimoto, John David Anglin,
87 Kaveh R. Ghazi, Laurent Caillat-Vallet, Sakai Kiyotaka and
90 1997-04-11 François Pinard <pinard@iro.umontreal.ca>
92 * configure.in: Much simplify the -lsocket and -lnsl tests.
93 Reported by Larry Schwimmer.
95 1997-04-11 François Pinard <pinard@iro.umontreal.ca>
99 * configure.in: Do not check for gettimeofday anymore.
101 * configure.in: Do not anymore blindly add -lnsl if gethostname
102 is found, nor -lsocket if setsockopt is found. Instead, for
103 resolving setsockopt, try none, -lsocket, and -lsocket -lnsl,
104 in that order. For resoving gethostbyname, try none, than -lnsl.
105 Reported by Ariel Faigon, Heiko Schlichting, Jean-Philippe
106 Martin-Flatin, John J. Szetela, John R. Vanderpool, Kaveh
107 R. Ghazi, Larry Schwimmer, Marcus Daniels, Mark Bynum and
110 1997-04-10 François Pinard <pinard@iro.umontreal.ca>
112 * configure.in: Define _GNU_SOURCE to get FNM_LEADIR_DIR, etc.
113 * acconfig.h: Document _GNU_SOURCE.
114 Reported by Andreas Jaeger, Becki Kain, Brendan Kehoe, David
115 N. Brown, J. Dean Brock, James V. DI Toro III, Jeffrey Mark
116 Siskind, Jürgen Reiss, Paul Eggert, Roland McGrath, Rolf
117 Niepraschk, Roman Gollent, Thomas Bushnell n/BSG and Ulrich
120 1997-03-26 François Pinard <pinard@iro.umontreal.ca>
122 * configure.in (ALL_LINGUAS): Add it.
124 1997-03-20 François Pinard <pinard@iro.umontreal.ca>
126 * configure.in: Require Autoconf 2.12.
128 1997-02-25 François Pinard <pinard@iro.umontreal.ca>
130 * configure.in: Use AM_CONFIG_HEADER and AM_GNU_GETTEXT instead
131 of AC_CONFIG_HEADER and ud_GNU_GETTEXT. Use AC_FUNC_FNMATCH
132 instead of AM_FUNC_FNMATCH. Do not take care anymore of stamp-h
133 in AC_OUTPUT, leave it to Automake.
134 * acinclude.m4: Replaced whole, from elsewhere.
135 * Makefile.am (EXTRA_DIST): Leave README-alpha to Automake.
137 1997-02-12 François Pinard <pinard@iro.umontreal.ca>
139 * configure.in: Delete README-alpha code, Automake handles it now.
141 1996-11-18 François Pinard <pinard@iro.umontreal.ca>
143 * Prerelease 1.11.14.
145 * Makefile.am (BABYL): Add admin/RMAIL.
147 * configure.in: Check for sys/buf.h, as BSD/OS.
148 Reported by Dan Reish.
150 1996-11-09 François Pinard <pinard@iro.umontreal.ca>
152 * configure.in: Replace a missing basename.
153 Reported by Bryant Fujimoto, Erick Branderhorst, Greg Black, John
154 David Anglin, John J. Szetela, Kaveh R. Ghazi, Kurt Jaeger, Marcus
155 Daniels, Santiago Vila Doncel and William Bader.
157 1996-11-08 François Pinard <pinard@iro.umontreal.ca>
159 * Prerelease 1.11.13.
161 * configure.in: Replace a missing dirname.
163 1996-10-07 François Pinard <pinard@iro.umontreal.ca>
165 * configure.in: Clean out some macro calls made useless since
166 AM_INIT_AUTOMAKE implies them.
168 1996-09-20 François Pinard <pinard@iro.umontreal.ca>
170 * configure.in: Do not check anymore for regex.
172 1996-09-19 François Pinard <pinard@iro.umontreal.ca>
176 * configure.in: Check echo for newline suppression.
178 1996-09-18 François Pinard <pinard@iro.umontreal.ca>
180 * configure.in: Do not add open3.o to LIBOBJS anymore.
182 1996-09-05 François Pinard <pinard@iro.umontreal.ca>
184 * configure.in (ALL_LINGUAS): Add pl.
186 1996-09-04 François Pinard <pinard@iro.umontreal.ca>
188 * configure.in (AC_OUTPUT): Prepare tests/Makefile and tests/preset.
189 * Use AM_ version of fp_ macros.
191 * Makefile.am (SUBDIRS): Add tests/.
193 1996-07-18 François Pinard <pinard@iro.umontreal.ca>
195 * Prerelease 1.11.11.
197 * configure.in: Use AC_PREREQ(2.10).
199 1996-07-16 François Pinard <pinard@iro.umontreal.ca>
201 * configure.in (ALL_LINGUAS): Add nl.
202 Reported by Erick Branderhorst.
204 1996-07-12 François Pinard <pinard@iro.umontreal.ca>
206 * Prerelease 1.11.10.
208 * configure.in (ALL_LINGUAS): Add ko and sl.
210 1996-05-01 François Pinard <pinard@iro.umontreal.ca>
212 * configure.in: Check for fsync, and linux/fd.h.
213 Reported by Marty Leisner.
215 1996-04-17 François Pinard <pinard@iro.umontreal.ca>
217 * Makefile.am (EXTRA_DIST): New name for DIST_OTHERS.
219 * configure.in (ALL_LINGUAS): Add no.
221 * Makefile.am (BABYL): Consider rmail/* instead of rmail/*/*.
223 1996-02-28 François Pinard <pinard@iro.umontreal.ca>
225 * configure.in: Avoid PROGRAMS, instead use RMT to substitute rmt.
226 * Makefile.am (SUBDIRS): Use intl and po instead of @INTLSUB@ and
229 * configure.in: Check for poll.h and stropts.h.
230 Check for nap, napms, poll, select and usleep.
232 1996-02-12 François Pinard <pinard@iro.umontreal.ca>
234 * Makefile.am: Remove CONFIG_HEADER, not required by Automake 0.29.
235 * configure.in: Temporarily remove a \ in AC_OUTPUT for automake.
237 1996-02-03 François Pinard <pinard@iro.umontreal.ca>
239 * configure.in: Check size of unsigned long (assume 32 bits if
240 cross-compiling) and long long (assume not available).
242 1996-01-14 François Pinard <pinard@iro.umontreal.ca>
244 * Makefile.am (AUTOMAKE_OPTIONS): Select gnits and dist-shar.
245 (dist-zoo): New goal, experimental for now.
247 1996-01-07 François Pinard <pinard@iro.umontreal.ca>
249 * Makefile.am: Force distribution of BACKLOG.
250 Reported by Jonathan Thornburg.
252 * Makefile.am: Declare BABYL. Force distribution of AUTHORS
253 and rebox.el. Add id, ID and dist-shar targets. Add parts of
254 previous Makefile.in as FIXME comments.
256 1995-12-30 François Pinard <pinard@iro.umontreal.ca>
258 * configure.in: Ensure there is a link for libintl.h.
259 Reported by Daniel S. Barclay, Göran Uddeborg, Jonathan Thornburg,
260 Ken Raeburn and Minh Tran-Le.
262 1995-12-29 François Pinard <pinard@iro.umontreal.ca>
266 * Makefile.am: New file.
268 * configure.in: Decide if README-alpha should be distributed.
271 1995-12-28 François Pinard <pinard@iro.umontreal.ca>
273 * configure.in (AC_OUTPUT): Call sed for po/Makefile.in.
275 * Makefile.in: Distribute ABOUT-NLS rather than NLS, and do not
276 distribute config.guess or config.sub anymore.
278 * configure.in: Test for lchown.
280 1995-12-19 François Pinard <pinard@iro.umontreal.ca>
282 * configure.in: Prefer avoiding union wait, and use it only if
283 using int fails. This turns around the previous test, as directly
284 checking for union wait is seemingly seeking for trouble.
285 Reported by Alan Bawden, Chris Arthur, Coranth Gryphon,
286 Jean-Philippe Martin-Flatin, Robert Bernstein and Tarang Kumar
289 * configure.in: Check for strerror, so lib/error.c will not try to
290 define sys_errlist in the case strerror is already provided.
291 Reported by Coranth Gryphon, Chris Arthur, David J. MacKenzie,
292 Erich Stefan Boleyn, Greg Black, Jason R. Mastaler, Michael
293 Innis Bushnell, Robert Bernstein, Santiago Vila Doncel, Skip
294 Montanaro and Thomas Krebs.
296 * configure.in: Quote the selected shell. I wonder why this
297 error did not show up before!
299 * configure.in: Check <sys/tprintf.h> and <sys/device.h> for BSDi.
300 Reported by Chris Arthur and Skip Montanaro.
302 1995-12-17 François Pinard <pinard@iro.umontreal.ca>
304 * configure.in: Be more systematic at caching test results.
305 Reported by Ulrich Drepper.
307 * configure.in: While checking for remote tape header files, only
308 include <sgtty.h> if it was found to exist.
310 * configure.in: Prefer #if to #ifdef while checking for open3.
312 1995-11-30 François Pinard <pinard@iro.umontreal.ca>
314 * configure.in: Check for net/errno.h and sys/inet.h, trying to
315 get EOPNOTSUPP defined.
317 * configure.in: Check for sgtty.h.
319 1995-11-06 François Pinard <pinard@iro.umontreal.ca>
321 * acconfig.h: Document HAVE_STPCPY for the time being. I do not
322 understand yet why this is mandatory: it should be automatic
323 from AC_CHECK_FUNCS(stpcpy) in aclocal.m4, through autoheader.
325 * configure.in: Use fp_FUNC_FNMATCH, to get around non-working
326 versions on SCO Unix 3.2v4.2, and Solaris.
327 Reported by Chad Hurwitz, Dennis Pixton, Per Foreby, Richard
328 Westerik, Robert Weiner and Tom Tromey.
330 1995-10-27 François Pinard <pinard@iro.umontreal.ca>
332 * configure.in: Add /usr/bin/rcmd as a possible remote shell, as
333 this is the name used by SCO Unix 3.2.4.
334 Reported by Bela Lubkin and Rodney Brown.
336 1995-07-23 François Pinard <pinard@iro.umontreal.ca>
338 * configure.in: Adapt for GNU gettext 0.8.
340 1995-07-10 François Pinard <pinard@iro.umontreal.ca>
342 * Makefile.in (default): Define to all.
344 1995-06-18 François Pinard <pinard@iro.umontreal.ca>
346 * configure.in: For mknod, also include <sys/types.h> prior to
347 <sys/stat.h>, as Ultrix needs this.
348 Reported by Bruce Jerrick, Bryant Fujimoto, Conrad Hughes, Erich
349 Stefan Boleyn, Jason R. Mastaler, Joshua R. Poulson, Jurgen Botz,
350 Serge Granik, Simon Wright, Ulrich Drepper and Vince Del Vecchio.
352 * configure.in: Replace execlp as needed (for Minix, mainly).
354 * configure.in: Force compilation of lib/open3.c if required.
355 Clean out old NO_OPEN3 code.
357 1995-06-17 François Pinard <pinard@iro.umontreal.ca>
361 * Makefile.in (DISTFILES): Distribute config.guess and config.sub.
362 Reported by Ulrich Drepper.
364 * acconfig.h, aclocal.m4, configure.in: Last minutes
365 additions, and glimpses to the future gettext 0.6.1.
366 Reported by Ulrich Drepper.
368 * acconfig.h: Document HAVE_MKNOD.
369 * configure.in: Test for mknod only once <sys/stat.h> included.
370 Reported by Alan Modra, Ray Dassen and Ulrich Drepper.
372 * aclocal.m4: Test for re_rx_search instead of rx_compile, the
373 latter not being exported unless RX_WANT_RX_DEFS is defined.
374 Reported by Alan Modra.
376 1995-06-15 François Pinard <pinard@iro.umontreal.ca>
378 * Makefile.in (dist): Do not hide copying rule.
380 * configure.in: Adjustments to NLS, so .sed scripts may now all
383 1995-06-13 François Pinard <pinard@iro.umontreal.ca>
385 * Makefile.in (pot): New goal, triggering po/tar.pot.
387 1995-06-07 François Pinard <pinard@iro.umontreal.ca>
389 * configure.in: Substitute POTFILES by contents of po/POTFILES.
391 * configure.in: More adjustments for GNU gettext 0.6.
392 * config.guess, config.sub: New files, all taken from gettext 0.6.
394 1995-06-04 François Pinard <pinard@iro.umontreal.ca>
396 * Makefile.in (check): New goal.
398 1995-05-30 François Pinard <pinard@iro.umontreal.ca>
400 * Makefile.in (DISTFILES): Do not distribute SUPPORT, now
401 integrated in the documentation.
402 Reported by Karl Berry.
404 1995-05-28 François Pinard <pinard@iro.umontreal.ca>
406 * configure.in: Check for isascii, not iascii.
407 Reported by Alan Modra, Bruno Haible and Greg McGary.
409 1995-05-16 François Pinard <pinard@iro.umontreal.ca>
413 * Makefile.in (DISTFILES): Distribute NLS.
414 * configure.in, acconfig.h: Many adjustments for GNU gettext.
416 1995-05-09 François Pinard <pinard@iro.umontreal.ca>
418 * configure.in: Clean glocale out.
419 * Makefile.in (SUBDIRS): Add po.
420 * Makefile.in (pofile): New goal.
422 1995-05-08 François Pinard <pinard@iro.umontreal.ca>
424 * configure.in: Call ud_WITH_NLS, create intl/Makefile.in.
425 Compute size of unsigned short and unsigned int.
427 * acconfig.h: Document ENABLE_NLS, HAVE_CATGETS and HAVE_GETTEXT.
428 * Makefile.in: Process intl subdirectory.
430 * configure.in (LINGUAS): Add pt.
431 * src/pt.po: New file, for Portuguese.
432 Reported by Antonio Jose Coutinho.
434 1995-03-19 François Pinard <pinard@iro.umontreal.ca>
436 * configure.in: Remove GLOCALE, add LINGUAS, use fp_WITH_CATALOGS.
437 * acconfig.h: Add description for WITH_CATALOGS.
439 1995-02-22 François Pinard <pinard@iro.umontreal.ca>
441 * configure.in, Makefile.in: Replace `date' by `echo timestamp'.
443 1995-02-19 François Pinard <pinard@iro.umontreal.ca>
445 * Makefile.in: Support ID files. Do not distribute TAGS.
447 1995-02-05 François Pinard <pinard@iro.umontreal.ca>
449 * Makefile.in (maintainer-clean): New name for realclean.
451 1995-01-02 François Pinard <pinard@iro.umontreal.ca>
453 * configure.in: Check for <sys/ioccom.h>.
454 Reported by Joseph E. Sacco.
456 1995-01-01 François Pinard <pinard@iro.umontreal.ca>
458 * Makefile.in (DISTFILES): Distribute SUPPORT, with *pre*-releases.
460 1994-12-18 François Pinard <pinard@iro.umontreal.ca>
462 * configure.in: Check for isascii.
463 Reported by Bruno Haible.
465 1994-12-11 François Pinard <pinard@iro.umontreal.ca>
467 * configure.in: Use fp_WITH_REGEX.
468 * acconfig.h: Document WITH_REGEX.
470 1994-12-10 François Pinard <pinard@iro.umontreal.ca>
472 * src/de.tt: New file, for German.
473 Reported by Ulrich Drepper.
475 1994-12-03 François Pinard <pinard@iro.umontreal.ca>
479 * configure.in: Localize, adapting from how it is done in sharutils.
481 * src/fr.tt: New file, for French.
483 * configure.in, {,*/}Makefile.in, acconfig.h:
484 Rename PRODUCT to PACKAGE.
486 1994-11-26 François Pinard <pinard@iro.umontreal.ca>
488 * configure.in: Check for <libintl.h> and <locale.h>.
490 1994-11-02 François Pinard <pinard@iro.umontreal.ca>
492 * configure.in: Check for const only after having found possible
493 ANSIfying compiler flags, this is of no use to check it before.
495 1994-11-01 François Pinard <pinard@iro.umontreal.ca>
497 * {,*/}Makefile.in: Clean up, following those of GNU m4. I will
498 not detail all the changes here.
499 * configure.in: Likewise.
500 * acconfig.h: Document PRODUCT and VERSION.
502 1994-10-04 François Pinard <pinard@iro.umontreal.ca>
504 * configure.in: Correct shell assignment for ac_cv_path_RSH.
505 Reported by Kaveh R. Ghazi.
507 1994-09-14 François Pinard <pinard@iro.umontreal.ca>
509 * Makefile.in: Cleanup... Use subshells for all cd's.
510 (MDEFINES): Do not use $(INSTALL...), because ./install-sh will
511 not be relocated correctly.
512 (DISTFILES): Distribute install-sh, not install.sh.
513 (tags): Make only in lib and src.
515 (distclean, realclean): Remove config.status.
516 (distclean-local): Don't.
517 (*-recursive): Combine, use sed to strip -recursive in subgoals.
518 (Makefile): Have ./config.status create this Makefile only.
519 (stamp-h): Have ./config.status create config.h only. Do not
520 create stamp-h here, it is now done from configure.
521 (stamp-h.in): Use date instead of touch.
522 * configure.in (AC_OUTPUT): Create stamp-h.
524 1994-09-09 François Pinard <pinard@iro.umontreal.ca>
526 * configure.in: Use fp_ macros for accessing aclocal.m4. Revert
527 _OS_ macros to their previous names, to follow Autoconf.
529 1994-09-08 François Pinard <pinard@iro.umontreal.ca>
531 * configure.in: Delete AC_OS_XENIX, now within AC_HEADER_DIRENT.
533 1994-09-01 François Pinard <pinard@iro.umontreal.ca>
535 * configure.in (PROGS): Warn if $DEFAULT_ARCHIVE was specified,
536 while not being found on the current system.
537 Reported by Robert Bernstein.
539 1994-08-31 François Pinard <pinard@iro.umontreal.ca>
541 * Makefile.in: Distribute it.
543 * Makefile.in (distclean-local): Delete config.log.
545 1994-08-27 François Pinard <pinard@iro.umontreal.ca>
547 * acconfig.h: Document HAVE_UNION_WAIT, no more in Autoconf.
549 1994-08-24 François Pinard <pinard@iro.umontreal.ca>
551 * configure.in: Replace AC_SYS_REMOTE_TAPE by its definition,
552 distillating it around. It is going out of Autoconf.
553 Do not backslash quotes anymore while defining unquoted, this is
554 now corrected in Autoconf.
556 1994-08-23 François Pinard <pinard@iro.umontreal.ca>
558 * configure.in: Do not define RTAPELIB nor HAVE_RTAPELIB.
560 1994-08-22 François Pinard <pinard@iro.umontreal.ca>
562 Little cleanup in installation:
563 * configure.in: Do not check for wait3, this function is not used.
564 * Makefile.in: Remove useless RSH substitutions.
566 * configure.in: Use `-g -O' instead of `-g' as CFLAGS default
567 value, when GNU C is being used. Delay testing for presets.
568 Reported by Chris Arthur.
570 1994-08-21 François Pinard <pinard@iro.umontreal.ca>
574 * Makefile.in (BACKLOG, dist, shar): Correct for when a different
577 * configure.in: Check for union wait. Adapted from make 3.71.
579 * configure.in: Replace both mkdir and rmdir, not just mkdir,
580 because NS32016 running SysVr2.2 has mkdir and lacks rmdir.
581 Reported by Greg Black.
583 * configure.in: Do not try anymore to discover the archive device
584 by looking around for various device names. If the installer does
585 not override it, nicely use `-' as a convenient default.
586 Reported by Andreas Schwab and Kaveh R. Ghazi.
588 1994-08-20 François Pinard <pinard@iro.umontreal.ca>
590 * configure.in: Correct a checking message.
591 Reported by Bruno Haible.
593 1994-08-17 François Pinard <pinard@iro.umontreal.ca>
595 * configure.in: Replace AC_PROG_RSH with its expansion. Correct
596 the no/true confusion in tests. Do not substitute RSH anymore in
597 src/Makefile, instead define REMOTE_SHELL in config.h. Replace
598 NO_REMOTE by HAVE_RTAPELIB, with inverted meaning. Substitute
599 RTAPELIB by $Urtapelib.o instead of rtapelib.o.
600 * acconfig.h: Document HAVE_RTAPELIB and REMOTE_SHELL.
601 Reported by Andreas Schwab.
603 * configure.in: Checking for remote shell, use the RSH environment
604 variable if set. This is done only when not already in the cache.
605 Reported by Kaveh R. Ghazi.
607 * configure.in: Include <sys/types.h> when testing <utime.h>.
608 Reported by Andreas Schwab.
610 * configure.in: Also create doc/Makefile.
611 * Makefile.in: Add doc in subdirs, set infodir, update MDEFINES.
613 1994-08-16 François Pinard <pinard@iro.umontreal.ca>
615 * configure.in: Undo the `test -b' patch of 1994-08-05. Ultrix
616 4.2 test does not know about -b. Grrr...
617 Reported by Kaveh R. Ghazi.
619 * configure.in: Check for <sys/gentape.h>, HAVE_SYS_GENTAPE_H
620 is tested in rmt.c. Check for <sys/tape.h>, to avoid playing
621 with M_UNIX anymore in rmt.c.
622 Reported by Daniel R. Guilderson and Kaveh R. Ghazi.
624 * configure.in: Use proper function names in AC_CHECK_LIB's.
625 Reported by Alexander Dupuy and Kurt Jaeger.
627 * configure.in: Use $LIBOBJS, not LIBOJBS, while adding to it.
628 Reported by Demizu Noritoshi and Kaveh R. Ghazi.
630 1994-08-15 François Pinard <pinard@iro.umontreal.ca>
634 1994-08-14 François Pinard <pinard@iro.umontreal.ca>
636 * configure.in: Decide MTIO_CHECK_FIELD by grepping <sys/mtio.h>.
637 * acconfig.h: Document it.
638 Reported by Ben A. Mesander.
640 * Makefile.in: Substitute CC, INSTALL, INSTALL_PROGRAM,
641 INSTALL_DATA, RSH, CFLAGS, LDFLAGS, LIBS, prefix, exec_prefix,
642 binprefix, bindir and libexecdir.
643 (MDEFINES): New, using the previous substitutions.
644 (all, install, uninstall): Use it.
645 Reported by Bruno Haible.
647 1994-08-13 François Pinard <pinard@iro.umontreal.ca>
649 * configure.in: Check for <sys/wait.h>.
651 1994-08-11 François Pinard <pinard@iro.umontreal.ca>
653 * configure.in: For <utime.h>, also ensure struct utimbuf is
654 defined by the header file before defining HAVE_UTIME_H. Some
655 systems will not define the structure without _POSIX_SOURCE.
656 * acconfig.h: Document HAVE_UTIME_H.
657 Reported by James W. McKelvey and Robert E. Brown.
659 * configure.in: Instead of replacing strstr, check for it, so
660 HAVE_STRSTR gets defined, then replace it explicitely if required.
662 1994-08-09 François Pinard <pinard@iro.umontreal.ca>
664 * configure.in: Updated for Autoconf 2.0.
666 1994-08-08 François Pinard <pinard@iro.umontreal.ca>
668 * configure.in: Replace memset, mkdir (and rmdir), rename, strstr,
669 ftruncate, when not found.
670 Reported by Kaveh R. Ghazi (for memset and strstr).
671 Reported by Bruno Haible (for mkdir and rename).
673 1994-08-05 François Pinard <pinard@iro.umontreal.ca>
675 * configure.in: Remove padding test.
676 * acconfig.h: Remove PADDING_IN_TAR_HEADER.
677 Reported by Bruno Haible.
679 * configure.in: While defining DEFAULT_ARCHIVE, check for a block
680 device, instead of mere existence. But is `test -b' portable?
681 Test for /dev/fd0, instead of for /dev/fd. Put rct tests last.
682 Reported by Andreas Schwab.
684 * configure.in: Define uid_t and gid_t if necessary.
685 Reported by Jonathan I. Kamens.
687 * Makefile.in (distclean-local): Delete config.cache.
688 Reported by Thomas Koenig.
690 * configure.in: Change malloc_dbg to dmalloc, mutatis mutandi.
691 * acconfig.h: According changes.
693 * configure.in: Test for broken stat macros, and for mkfifo.
695 * configure.in: Check for ST_BLKSIZE and ST_BLOCKS.
697 1994-08-02 François Pinard <pinard@iro.umontreal.ca>
701 * Makefile.in (dist, shar): Distribute the scripts directory.
703 1994-08-01 François Pinard <pinard@iro.umontreal.ca>
705 * configure.in: Check for <memory.h>.
707 1994-07-30 François Pinard <pinard@iro.umontreal.ca>
709 * configure.in: When --with-malloc-dbg, define WITH_MALLOC_DBG and
710 add -lmalloc_dbg to LIBS.
711 * acconfig.h: Document WITH_MALLOC_DBG.
713 * configure.in: Try deciding DEVICE_PREFIX and DENSITY_LETTER from
714 the selected DEFAULT_ARCHIVE.
715 * acconfig.h: Document DEVICE_PREFIX and DENSITY_LETTER.
716 Reported by Danny R. Johnston.
718 1994-07-29 François Pinard <pinard@iro.umontreal.ca>
720 * aclocal.m4: Adapt AC_PROTOTYPES to caching.
722 * Using configure as generated by a more recent Autoconf solves a
723 problem of rename being rejected on HP-UX in ANSI mode, because of
724 a conflicting prototype from <stdio.h>. In this context, Autoconf
725 now uses ctype.c instead for defining __stub macros.
726 Reported by Alan Modra, Burkhard Plache, Edward Welbourne,
727 Henrik Bakman, Jeffrey Goldberg, Jim Farrell, Kimmy Posey,
728 Michael Maass, Mike Nolan, Richard Lloyd, Robert McGraw,
729 Robert W. Kim, Stefan Skoglund, Tarang Kumar Patel, Tilman
730 Schmidt, Tim Ramsey, Van Snyder and W. Phillip Moore.
732 1994-07-26 François Pinard <pinard@iro.umontreal.ca>
734 * configure.in: Check for <fcntl.h>. Do not define BSD42, do
735 not look anymore if /vmunix, /sdmach or /../../mach exist.
736 * acconfig.h: Remove BSD42.
738 1994-07-24 François Pinard <pinard@iro.umontreal.ca>
740 * configure.in: Add gmalloc.o to LIBOBJS, instead of AC_SUBST'ing
741 MALLOC. Check for valloc only if gmalloc.o is not being selected.
742 valloc was possibly defined both in "port.h" and GNU malloc.
743 * acconfig.h: Add a description for HAVE_VALLOC.
744 J.T. Conklin, Nelson H.F. Beebe and Tilman Schmidt.
746 1994-07-22 François Pinard <pinard@iro.umontreal.ca>
748 * configure.in: Use provided fnmatch only as a replacement.
750 * configure.in: Check for <sys/io/trioctl.h>, needed for
751 defining _IOW and _IOR on the Tektronix XD88.
752 Reported by Kaveh R. Ghazi.
754 1994-07-20 François Pinard <pinard@iro.umontreal.ca>
756 * Makefile.in (BACKLOG): New goal, for summarizing the
757 maintainance backlog. Distribute file BACKLOG.
759 1994-07-08 François Pinard <pinard@iro.umontreal.ca>
761 * regex.c, regex.h: Use newer versions. This solves a few
762 problems reported by users.
763 Reported by Chris Hopps and John David Anglin.
765 1994-07-06 François Pinard <pinard@iro.umontreal.ca>
767 * configure.in: Check for <utime.h>.
769 1994-07-05 François Pinard <pinard@iro.umontreal.ca>
771 * configure.in: Substitute DEFAULT_ARCHIVE and DEFAULT_BLOCKING
772 from the environment. Check for /dev/tape first while trying to
773 decide the default archive, because it is often symlinked right.
774 * acconfig.h: Explain DEFAULT_ARCHIVE and DEFAULT_BLOCKING.
776 * configure.in: Use AC_SET_MAKE.
777 * Makefile.in: Use @SET_MAKE@.
778 Reported by Jim Meyering.
780 * configure.in: Integrate the check, previously in testpad.c,
781 about a needed padding field in the tar header struct.
782 * acconfig.h: Explain PADDING_IN_TAR_HEADER.
784 1994-07-02 François Pinard <pinard@iro.umontreal.ca>
786 * configure.in: Check for -linet, this library is required on
787 a few systems for gettimeofday() or getservbyname(). Also, on ISC
788 4.0, this avoids a broken version of rename().
789 Reported by Dean Gaudet, Goeran Uddeborg, Mike Rogers and
792 * configure.in: Ensure -lsocket is tested after -lnsl. This is
793 required in particular for SINIX-Z, an SVR4.0 system.
794 Reported by Manfred Weichel and Mark Frost.
796 * configure.in: All tests reordered for clarity.
798 1994-07-01 François Pinard <pinard@iro.umontreal.ca>
800 * configure.in: Use AC_TIME_WITH_SYS_TIME, test for <sys/time.h>.
801 This should solve the problem of multiple inclusions of <time.h>.
802 Also, also check for <sys/timeb.h>, for getdate.y tests this.
803 Reported by Jim Meyering, John Rouillard, Karl Berry and Rick
806 1994-06-30 François Pinard <pinard@iro.umontreal.ca>
808 * configure.in: AC_CONST was already added since 1.11.2, but no
809 ChangeLog entry for it, so here is one, with list of reporters.
810 * AIX 3.2 RS/6000 IBM's compiler was unable to compile regex.c,
811 this might be solved already through improved Autoconf tests.
813 Reported by Alexey Vovenko, Ben A. Mesander, Bryant
814 Fujimoto, Christian. T. Dum, Christopher Vickery, Dan Bloch,
815 David K. Drum, David Lemson, Demizu Noritoshi, Dimitris
816 Fousekis, Ezra Peisach, Hugh Secker-Walker, Indra Singhal,
817 J.T. Conklin, Jan Hoeglund, Janice Burton, Jeff Siegel,
818 Jim Blandy, John L. Chmielewski, John Rouillard, Jonathan
819 N. Sherman, Kevin D Quitt, Kurt Jaeger, Mark Frost, Matthew
820 Braun, Michael Kubik, Michael Helm, Moritz D. Klingholz,
821 Neil Jerram, Nelson H.F. Beebe, Nick Barron, Paul Eggert,
822 R. Scott Butler, Rob Parry, Ron Guilmette, Scott Grosch,
823 Sherwood and Stephen Saroff.
825 * Makefile.in: Completely replaced, lurking at the previous one.
826 At the same time, solve a few minor problems reported by users.
827 The most frequently reported ones pertained to a trailing \ in a
828 comment, and rmt installing in /etc.
829 Reported by Dean Gaudet, Gerben Wierda, James W. McKelvey,
830 John L. Chmielewski, Karl Berry, Mike Rogers, Ralf Suckow and
833 * configure.in: Also process lib/Makefile.in and src/Makefile.in.
834 Substitute CFLAGS, LDFLAGS and YFLAGS from the environment.
835 Use AC_CHECKING instead of using echo explicitely.
836 Use AC_HEADER_CHECK(unistd.h) instead of obsolete AC_UNISTD_H.
838 * configure.in: Generate a configuration header file. This not
839 only puts less clutter in make output, but also goes around some
840 compilers' limits about the number of allowed -D options.
841 Reported by Nelson H.F. Beebe.
843 * acconfig.h: New file.
845 * Split distribution into a few subdirectories, for easing
846 maintainance. So far: src, lib, scripts, msdos which are to be
847 distributed; then rmail, texinfo, ARCH and misc to be kept here.
848 * scripts/ChangeLog: Initialized by moving entries related to
849 scripts out of this ChangeLog.
851 * Taking over maintenance duties.
854 ----- doc/ChangeLog -----
856 1997-04-23 François Pinard <pinard@iro.umontreal.ca>
860 * Makefile.am (EXTRA_DIST): Remove tar-mew.texi for the release.
861 (tar.dvi) [!PUBLISH]: Delete @smallbook. Call sed in all cases.
863 1997-04-11 François Pinard <pinard@iro.umontreal.ca>
867 * Makefile.am (tar.info): Comment about needed makeinfo version.
868 Reported by Sherwood Botsford.
870 1997-04-10 François Pinard <pinard@iro.umontreal.ca>
872 * Makefile.am (EXTRA_DIST): Add tar-mew.texi.
874 1997-03-16 François Pinard <pinard@iro.umontreal.ca>
876 * Makefile.am (tar.dvi): Merely use tar.texi and rely on -I to
877 resolve it in $(srcdir). Remove tmp-tar.info* files right away.
878 (CLEANFILES): Define to tmp-*.
880 1997-03-14 François Pinard <pinard@iro.umontreal.ca>
882 * Makefile.am: Rename RENDERING, QUALITY, DRAFT and DEBUG to
883 RENDITION, PUBLISH, DISTRIB and PROOF respectively. Ensure that
884 `@set DISTRIB' gets replaced after macro-expansion and before TeX.
886 1996-11-06 François Pinard <pinard@iro.umontreal.ca>
888 * Prerelease 1.11.13.
890 * getdate.texi: New file, from elsewhere.
891 * tar.texi: Replace a lot of text by an include of getdate.texi.
892 * Makefile.am: Adjusted.
894 1996-08-24 François Pinard <pinard@iro.umontreal.ca>
896 * Prerelease 1.11.12.
898 * Makefile.am (EXTRA_DIST): Remove texinfo.tex, now that Automake
899 handles it automatically.
901 1996-07-18 François Pinard <pinard@iro.umontreal.ca>
903 * Prerelease 1.11.11.
905 * Makefile.am (tar.info): Remove -I$(srcdir), which was useless.
907 1996-07-17 François Pinard <pinard@iro.umontreal.ca>
909 * Makefile.am (EXTRA_DIST): Include texinfo.tex, until Automake
910 does it automatically.
912 1996-07-16 François Pinard <pinard@iro.umontreal.ca>
914 * Prerelease 1.11.10.
916 * Makefile.am (EXTRA_DIST): Distribute convtexi.pl, for now.
918 1996-04-22 François Pinard <pinard@iro.umontreal.ca>
920 * Makefile.am: Implement rendering levels (QUALITY, DRAFT or DEBUG).
922 1996-04-17 François Pinard <pinard@iro.umontreal.ca>
924 * Makefile.am (EXTRA_DIST): New name for DIST_OTHER.
926 1996-03-03 François Pinard <pinard@iro.umontreal.ca>
928 * Makefile.am (tar.dvi): Comment about needed makeinfo version.
929 Reported by Jonathan Thornburg.
931 1996-02-12 François Pinard <pinard@iro.umontreal.ca>
933 * Makefile.am: Replace TEXINFO by info_TEXINFOS for Automake 0.29.
935 1996-01-14 François Pinard <pinard@iro.umontreal.ca>
937 * Makefile.am (AUTOMAKE_OPTIONS): Select gnits.
939 1996-01-08 François Pinard <pinard@iro.umontreal.ca>
941 * Makefile.am: New file.
942 * tar.texi: New name for tar.texinfo.
944 1995-12-30 François Pinard <pinard@iro.umontreal.ca>
946 * Makefile.in (check): New goal, doing nothing.
947 Reported by Cesar Romani, Joachim Seelig, Mark Bynum and Ulrich
950 1995-11-29 François Pinard <pinard@iro.umontreal.ca>
952 * Makefile.in (clean): Remove tmp-* files.
954 1995-11-27 François Pinard <pinard@iro.umontreal.ca>
956 * Makefile.in: Use -I$(srcdir) with makeinfo, and -otmp-tar.info
957 so tar.info in build directory does not shadow the real one.
958 (tar.dvi): Depend on version.texi. Add $(srcdir) to TEXINPUTS so
959 texinfo.tex is found, as texi2dvi gets no clue from the file name.
960 (DISTFILES): Also distribute tar.info-8.
962 1995-11-22 François Pinard <pinard@iro.umontreal.ca>
964 * Makefile.in (DISTFILES): Distribute ChangeLog.
965 * ChangeLog: New file, extracted from top-level ChangeLog.
967 1995-06-22 François Pinard <pinard@iro.umontreal.ca>
969 * Makefile.in: Get rid of docwarn.texi, now replaced by
970 the @UNREVISED macro, right into tar.texinfo.
972 1995-06-18 François Pinard <pinard@iro.umontreal.ca>
974 * Makefile.in (tar.dvi): First macro-expand tar.texinfo.
976 1995-06-07 François Pinard <pinard@iro.umontreal.ca>
978 * Makefile.in: Use subdir and distdir.
980 1995-06-03 François Pinard <pinard@iro.umontreal.ca>
982 * tar.texinfo: Use header.texi.
983 * Makefile.in: Prepare header.texi from src/tar.h.
986 1995-05-28 François Pinard <pinard@iro.umontreal.ca>
988 * Makefile.in (DISTFILES): Add tar.info-3.
989 Reported by Bruno Haible.
991 1995-02-22 François Pinard <pinard@iro.umontreal.ca>
993 * Makefile.in: Replace `date' by `echo timestamp'.
995 1995-02-13 François Pinard <pinard@iro.umontreal.ca>
997 * Makefile.in: Use top_srcdir.
999 1995-02-05 François Pinard <pinard@iro.umontreal.ca>
1001 * Makefile.in (maintainer-clean): New name for realclean.
1003 1994-12-03 François Pinard <pinard@iro.umontreal.ca>
1005 * Makefile.in (DISTFILES): Include docwarn.texi.
1007 1994-11-07 François Pinard <pinard@iro.umontreal.ca>
1009 * Makefile.in (stamp-vti): Use new -r option to date.
1011 1994-11-05 François Pinard <pinard@iro.umontreal.ca>
1013 * Makefile.in (realclean): Also remove stamp-vti.
1015 1994-09-14 François Pinard <pinard@iro.umontreal.ca>
1017 * Makefile.in: Cleanup...
1018 (texclean): Deleted, merged into mostlyclean.
1019 (Makefile): Have ./config.status create this Makefile only.
1021 1994-08-30 François Pinard <pinard@iro.umontreal.ca>
1023 * Makefile.in (tar.info): Make the documentation in the source
1026 1994-08-21 François Pinard <pinard@iro.umontreal.ca>
1028 * Makefile.in: Correct for when a different build directory.
1030 * docwarn.texi: New file.
1031 * Makefile.in: Distribute it.
1033 1994-08-17 François Pinard <pinard@iro.umontreal.ca>
1035 * Makefile.in: New file.
1036 * tar.texinfo: New file.
1037 * texinfo.tex: New, from elsewhere.
1040 ----- lib/ChangeLog -----
1042 1997-04-25 François Pinard <pinard@iro.umontreal.ca>
1046 1997-04-16 François Pinard <pinard@iro.umontreal.ca>
1050 The distribution did not have getdate.c updated:
1051 * Makefile.am (libtar_a_SOURCES): Use getdate.y, not getdate.c.
1052 (EXTRA_DIST): Do not include getdate.y anymore.
1053 * getdate.c: Specify $(srcdir)/, to silence GNU make.
1054 Reported by Bruno Haible.
1056 1997-04-15 François Pinard <pinard@iro.umontreal.ca>
1058 * Makefile.am (getdate.c): Announce 13 conflicts, not 10.
1059 Reported by Bruno Haible, Bryant Fujimoto and Wolfram Wagner.
1061 1997-04-11 François Pinard <pinard@iro.umontreal.ca>
1065 * getdate.h: New file.
1066 * Makefile.am: Adjusted.
1068 1997-04-10 François Pinard <pinard@iro.umontreal.ca>
1070 * modechange.c, modechange.h: New files.
1071 * Makefile.am: Adjusted.
1073 1997-02-25 François Pinard <pinard@iro.umontreal.ca>
1075 * Makefile.am: Adapt library name to Automake 1.1l.
1077 1996-11-09 François Pinard <pinard@iro.umontreal.ca>
1079 * Prerelease 1.11.14.
1081 * basename.c: New file.
1083 1996-11-09 François Pinard <pinard@iro.umontreal.ca>
1085 * Prerelease 1.11.13.
1087 * Makefile.am: Use tar_DEPENDENCIES. Avoid BUILT_SOURCES,
1088 put getdate.c instead of getdate.y in tar_SOURCES and keep
1089 getdate.c in EXTRA_DIST.
1091 1996-11-06 François Pinard <pinard@iro.umontreal.ca>
1093 * argmatch.c, argmatch.h, backupfile.c, backupfile.h, dirname.c,
1094 getversion.c: New files.
1095 * Makefile.am: Adjusted.
1096 Reported by Marty Leisner.
1098 1996-10-31 François Pinard <pinard@iro.umontreal.ca>
1100 * safe-stat.h: Deleted.
1101 * Makefile.am (noinst_HEADERS): Adjusted.
1102 Reported by Jim Meyering.
1104 1996-09-20 François Pinard <pinard@iro.umontreal.ca>
1106 * regex.c, regex.h, rx.c, rx.h: Deleted.
1107 * Makefile.am: Adjusted.
1109 1996-09-19 François Pinard <pinard@iro.umontreal.ca>
1111 * Prerelease 1.11.12.
1113 * execlp.c: Include stdio.h, not only stdio!
1115 1996-09-16 François Pinard <pinard@iro.umontreal.ca>
1117 * open3.h: File deleted after being merged into system.h.
1118 * open3.c: File deleted, moved back into src/.
1119 * Makefile.am: Adjusted.
1120 Reported by Jim Meyering.
1122 1996-08-24 François Pinard <pinard@iro.umontreal.ca>
1124 * Makefile.am (EXTRA_DIST): $(BUILT_SOURCES) is no longer
1125 necessary, as Automake now handles it automatically.
1127 1996-07-16 François Pinard <pinard@iro.umontreal.ca>
1129 * Prerelease 1.11.11.
1131 * Makefile.am (EXTRA_DIST): Move stpcpy.c there, from tar_SOURCES.
1132 Reported by Ulrich Drepper.
1134 1996-04-17 François Pinard <pinard@iro.umontreal.ca>
1136 * Prerelease 1.11.10.
1138 * Makefile.am (EXTRA_DIST): New name for DIST_OTHER.
1140 1996-02-28 François Pinard <pinard@iro.umontreal.ca>
1142 * msleep.c: New file, from elsewhere.
1143 * Makefile.am: Adjusted.
1145 1996-02-12 François Pinard <pinard@iro.umontreal.ca>
1147 * Makefile.am: Remove CONFIG_HEADER, not required by Automake 0.29.
1149 1996-01-14 François Pinard <pinard@iro.umontreal.ca>
1151 * Makefile.am (AUTOMAKE_OPTIONS): Select gnits.
1153 1996-01-07 François Pinard <pinard@iro.umontreal.ca>
1155 * Makefile.am: Add parts of previous Makefile.in as FIXME comments.
1157 1996-01-01 François Pinard <pinard@iro.umontreal.ca>
1159 * error.h: New file, from elsewhere.
1160 * Makefile.am: Add error.h to HEADERS.
1161 Reported by Jim Meyering.
1163 1995-12-30 François Pinard <pinard@iro.umontreal.ca>
1165 * Makefile.am (INCLUDES): Add -I../intl to get libintl.h.
1166 Reported by Daniel S. Barclay, Göran Uddeborg, Jonathan Thornburg
1169 1995-12-29 François Pinard <pinard@iro.umontreal.ca>
1171 * Prerelease 1.11.9.
1173 * Makefile.am: New file.
1175 1995-11-22 François Pinard <pinard@iro.umontreal.ca>
1177 * Makefile.in (DISTFILES): Distribute ChangeLog.
1178 * ChangeLog: New, extracted from the top-level ChangeLog.
1180 1995-06-18 François Pinard <pinard@iro.umontreal.ca>
1182 * execlp.c (execlp): New, extracted from src/port.c.
1183 * Makefile.in: Adjusted.
1185 * open3.h: New, moved from src/.
1186 * open3.c: New, extracted from src/port.c.
1187 * Makefile.in: Adjusted.
1188 Clean out old NO_OPEN3 code.
1190 * insremque.h, insremque.c: Deleted.
1191 * Makefile.in: Adjusted.
1193 1995-06-17 François Pinard <pinard@iro.umontreal.ca>
1195 * Makefile.in (DISTFILES): Remove COPYING.LIB.
1196 * COPYING.LIB: Deleted.
1198 1995-06-15 François Pinard <pinard@iro.umontreal.ca>
1200 * Makefile.in (dist): Do not hide copying rule.
1202 1995-06-07 François Pinard <pinard@iro.umontreal.ca>
1204 * Makefile.in: Use subdir and distdir.
1206 * stpcpy.c, xgetcwd.c: New functions needed by gettext.
1207 * Makefile.in: Adjusted to always compile these.
1209 1995-05-16 François Pinard <pinard@iro.umontreal.ca>
1211 * insremque.h, insremque.c: New files, from GNU gettext.
1212 * Makefile.in: Take care of insremque.[hc].
1214 1995-03-19 François Pinard <pinard@iro.umontreal.ca>
1216 * Makefile.in: Remove GLOCALE, add LINGUAS, use fp_WITH_CATALOGS.
1218 1995-02-19 François Pinard <pinard@iro.umontreal.ca>
1220 * Makefile.in: Support ID files. Do not distribute TAGS.
1222 1995-02-05 François Pinard <pinard@iro.umontreal.ca>
1224 * Makefile.in (maintainer-clean): New name for realclean.
1226 1994-12-18 François Pinard <pinard@iro.umontreal.ca>
1228 * safe-stat.h: New, from elsewhere. This solves the fact that
1229 mkdir.c, rmdir.c and rename.c were needing it.
1230 * Makefile.in (Makefile): Distribute it.
1231 Reported by Bruno Haible and Sherwood Botsford.
1233 1994-12-11 François Pinard <pinard@iro.umontreal.ca>
1235 * rx.c, rx.h: New, from elsewhere.
1236 * Makefile.in: Adjust accordingly.
1238 1994-12-03 François Pinard <pinard@iro.umontreal.ca>
1240 * Makefile.in: Localize, adapting from how it is done in sharutils.
1242 1994-09-14 François Pinard <pinard@iro.umontreal.ca>
1244 * Makefile.in: Cleanup...
1245 (DISTFILES): Distribute TAGS.
1247 (TAGS): Make TAGS in $(srcdir) only.
1248 (distclean): Do not remove TAGS.
1249 (realclean): Remove TAGS.
1250 (Makefile): Have ./config.status create this Makefile only.
1252 1994-08-22 François Pinard <pinard@iro.umontreal.ca>
1254 Little cleanup in installation:
1255 * Makefile.in (install, check): Depend on all.
1257 1994-08-21 François Pinard <pinard@iro.umontreal.ca>
1259 * Makefile.in: Correct for when a different build directory.
1261 * rmdir.c: New, split out of mkdir.c.
1262 * Makefile.in: Distribute it.
1263 Reported by Greg Black.
1265 1994-08-17 François Pinard <pinard@iro.umontreal.ca>
1267 * ftruncate.c: Revised, because there is no ftruncate
1268 capability whatsoever in Interactive Unix.
1269 Reported by Peder Chr. Norgaard.
1271 1994-08-08 François Pinard <pinard@iro.umontreal.ca>
1272 * memset.c, mkdir.c, rename.c, strstr.c and
1273 ftruncate.c: New, from elsewhere.
1274 * Makefile.in: Distribute them.
1276 1994-08-05 François Pinard <pinard@iro.umontreal.ca>
1278 * Makefile.in (getdate.c): Tell the installer to expect 10
1279 shift/reduce conflicts instead of 9.
1280 Reported by Andreas Schwab.
1282 * fileblocks.c: New, from elsewhere.
1283 * Makefile.in: Distribute it.
1285 1994-08-02 François Pinard <pinard@iro.umontreal.ca>
1287 * xstrdup.c: New, from elsewhere.
1288 * Makefile.in: Adjusted.
1290 1994-07-29 François Pinard <pinard@iro.umontreal.ca>
1292 * error.c: Add error_print_progname virtual routine.
1294 1994-07-24 François Pinard <pinard@iro.umontreal.ca>
1296 * gmalloc.c: New, from elsewhere. This renames and updates
1297 what was previously malloc.c. This also solves __const vs const.
1298 * Makefile.in: Distribute gmalloc.c.
1299 Reported by Cliff Krumvieda, Francois Pinard, Henrik Bakman,
1300 J.T. Conklin, Nelson H.F. Beebe and Tilman Schmidt.
1302 1994-07-22 François Pinard <pinard@iro.umontreal.ca>
1304 * Makefile.in (LIBOBJS): Get configured list of replacements.
1305 * fnmatch.h: Undefine FNM_PATHNAME and FNM_PERIOD, for HP-UX
1306 defines them in <unistd.h>.
1308 * getdate.y: Acknowledging here a few reports which are
1309 likely solved by going to an updated version of getdate.y.
1310 Reported by Andrey A. Chernov, Bruce Evans, Dean Gaudet, Ian
1311 T. Zimmerman, Jeff Prothero, Mike Nolan, Milan Hodoscek, Peder
1312 Chr. Norgaard, Sarah Quady, Tarang Kumar Patel and Thomas
1315 1994-07-02 François Pinard <pinard@iro.umontreal.ca>
1317 * xmalloc.c: New file, from elsewhere.
1318 * error.c: New, from elsewhere.
1319 * Makefile.in: Adjusted.
1321 1994-06-30 François Pinard <pinard@iro.umontreal.ca>
1323 * Makefile.in: New file.
1326 ----- po/ChangeLog -----
1328 1997-04-25 François Pinard <pinard@iro.umontreal.ca>
1332 1997-04-18 François Pinard <pinard@iro.umontreal.ca>
1336 * fr.po: Updated file.
1338 1997-04-11 François Pinard <pinard@iro.umontreal.ca>
1342 1997-03-26 François Pinard <pinard@iro.umontreal.ca>
1346 1997-02-14 François Pinard <pinard@iro.umontreal.ca>
1348 * pl.po: Updated file.
1350 1996-11-22 François Pinard <pinard@iro.umontreal.ca>
1352 * POTFILES.in: Add src/common.h.
1353 Reported by Christian Kirsch.
1355 1996-11-18 François Pinard <pinard@iro.umontreal.ca>
1357 * Prerelease 1.11.14.
1359 * POTFILES.in: Adjust for changes in src/.
1361 1996-09-05 François Pinard <pinard@iro.umontreal.ca>
1363 * Prerelease 1.11.12.
1367 1995-06-17 François Pinard <pinard@iro.umontreal.ca>
1371 * Makefile.in (.po.gmo): Force moving the created .gmo file to
1372 $(srcdir), in case it was not already found and replaced there.
1373 (install-data): Find files in $(srcdir) if not in current dir,
1374 because .gmo files are taken there, right out the distribution.
1375 * intl/Makefile.in (DISTFILES): Ensure an all ready stamp-cat-id
1376 and cat-id-tbl.c into the distribution.
1377 (stamp-cat-id): Rewrite rule so it replaces files in $(srcdir),
1378 remove a useless rm and cat.
1380 * intl/cat-compat.c, int/gettext.h, intl/po-to-tbl.sed,
1381 Makefile.in: Last minutes additions, and glimpses to the future
1383 Reported by Ulrich Drepper.
1385 * Makefile.in (install-data, uninstall): Avoid using basename.
1387 1995-06-15 François Pinard <pinard@iro.umontreal.ca>
1389 * Makefile.in (dist): Comment out tupdate action for now, it
1390 needs more tweeking before being distributed active.
1392 * intl/Makefile.in (dist), Makefile.in (dist): Correct
1393 missing reference to $(srcdir) on cp call, also avoid outputting
1394 clutter while doing the work.
1396 * intl/Makefile.in: Use top_srcdir for referring to $(PACKAGE).pot.
1398 * Makefile.in (.po.gmo): Get around what seems to be an msgfmt
1399 bug, which adds .mo even to FILE in `-o FILE'.
1401 * intl/Makefile.in, Makefile.in: Adjustments to NLS, so .sed
1402 scripts may now all reside in intl/.
1404 1995-06-07 François Pinard <pinard@iro.umontreal.ca>
1406 * POTFILES: New file.
1407 * Makefile.in: Use POTFILES instead of TRANSCSRCS, also use
1410 * intl/linux-msg.sed, intl/po-to-tbl.sed, intl/xopen-msg.sed: New
1411 files, all taken from gettext 0.6.
1413 1995-06-05 François Pinard <pinard@iro.umontreal.ca>
1415 * intl/*: New from GNU gettext 0.6, replacing the previous
1416 version of this directory. This change should solve many problems.
1418 Reported by Bruno Haible, Christopher Vickery, Jan Carlson,
1419 Jean-Philippe Martin-Flatin, John David Anglin, Joseph E.
1420 Sacco, Kaveh R. Ghazi, Kurt Jaeger, Mark W. Eichin, Marty
1421 Leisner, Minh Tran-Le, Stephen Saroff, Thomas Koenig, Thomas
1422 Krebs and William Bader.
1424 1995-05-16 François Pinard <pinard@iro.umontreal.ca>
1426 * intl/Makefile.in, Makefile.in: Many adjustments for GNU gettext.
1428 1995-05-09 François Pinard <pinard@iro.umontreal.ca>
1430 * Makefile.in: New file.
1431 * de.po, fr.po, pt.po, sv.po: New files, adapted from
1432 the corresponding .tt files in src/.
1434 1995-05-08 François Pinard <pinard@iro.umontreal.ca>
1436 * intl/*: New, from nlsutils.
1438 1995-01-09 François Pinard <pinard@iro.umontreal.ca>
1440 * src/de.tt: New file, for Swedish.
1441 Reported by Jan Djarv.
1443 1994-12-10 François Pinard <pinard@iro.umontreal.ca>
1445 * de.tt: New file, for German.
1446 Reported by Ulrich Drepper.
1449 ----- scripts/ChangeLog -----
1451 1997-04-24 François Pinard <pinard@iro.umontreal.ca>
1455 * level-1, level-0: Replace --block-size by --blocking.
1457 1996-04-17 François Pinard <pinard@iro.umontreal.ca>
1459 * Prerelease 1.11.10.
1461 * Makefile.am (EXTRA_DIST): New name for DIST_OTHER.
1463 1996-01-14 François Pinard <pinard@iro.umontreal.ca>
1465 * Makefile.am (AUTOMAKE_OPTIONS): Select gnits.
1467 1996-01-08 François Pinard <pinard@iro.umontreal.ca>
1469 * Makefile.am: New file.
1471 1995-12-31 François Pinard <pinard@iro.umontreal.ca>
1473 * Makefile.in (check, dvi): New goals, doing nothing.
1474 Reported by Cesar Romani and Ulrich Drepper.
1476 1995-06-21 François Pinard <pinard@iro.umontreal.ca>
1478 * Prerelease 1.11.9.
1480 * Makefile.in: Distribute the ChangeLog, now recovered!
1481 Reported by Andreas Schwab.
1483 1995-06-17 François Pinard <pinard@iro.umontreal.ca>
1487 * WARNING: New file.
1488 * Makefile.in (DISTFILES): Distribute it.
1490 1995-06-15 François Pinard <pinard@iro.umontreal.ca>
1492 * sripts/Makefile.in (dist): Do not hide copying rule.
1494 1995-06-07 François Pinard <pinard@iro.umontreal.ca>
1496 * Makefile.in: Use subdir and distdir.
1498 1995-02-05 François Pinard <pinard@iro.umontreal.ca>
1500 * Prerelease 1.11.7.
1502 * Makefile.in (maintainer-clean): New name for realclean.
1504 1994-12-03 François Pinard <pinard@iro.umontreal.ca>
1506 * Prerelease 1.11.6.
1508 * ChangeLog: Replaced by a warning for now. It has
1509 seemingly been overwritten by the weekly script :-(.
1511 * Makefile.in (dist): Correct .../examples to .../scripts.
1513 1994-09-14 François Pinard <pinard@iro.umontreal.ca>
1515 * Makefile.in: Cleanup...
1517 (Makefile): Have ./config.status create this Makefile only.
1519 1994-06-30 François Pinard <pinard@iro.umontreal.ca>
1521 * Prerelease 1.11.5.
1523 * ChangeLog: Initialized by moving entries related to
1524 scripts out of this ChangeLog.
1526 1993-11-24 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1528 * dump-remind: Send mail notification to the original recipients
1529 that the dump has been continued when that is the case.
1531 1993-03-31 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1533 * level-0, level-1 (LOGFILE): Put logfile in `log' subdirectory.
1535 1993-03-28 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1537 * dump-remind (volno): Don't increment by one.
1539 1993-03-25 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1541 * level-0, level-1 (TAR_PART1): Use `--block-size', not just
1542 `--block', which is now ambiguous.
1544 1993-03-24 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1546 * backup-specs (TAR): New variable.
1548 * level-0, level-1 (TAR_PART1): Get path of GNU tar from `TAR'
1549 variable, don't hardcode it.
1551 1993-03-20 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1553 * backup-specs (SLEEP_MESSAGE): put backslashes in front of nested
1556 * level-0, level-1 (BACKUP_DIRS): Don't put in quotes.
1557 (LOGFILE): Use sed to construct name, not awk.
1559 * dump-remind (recipients): Replaced inefficient pipeline with a
1560 single, simple sed script.
1561 (volno): Deal with the possibility that VOLNO_FILE may not be
1564 1993-03-19 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
1566 * backup-specs (VOLNO_FILE): Removed abusive comment by Noah.
1568 1993-03-18 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1570 * Makefile.in (AUX): Include `dump-remind' in distribution.
1572 * backup-specs (SLEEP_MESSAGE): New variable.
1573 level-0, level-1: Use it instead of external `dont_touch' file.
1575 * level-0, level-1: Put most of the script in () and pipe
1576 everything from the subshell through tee -a $LOGFILE. Since you
1577 really want most of the output to go to the logfile anyway, and
1578 since all those pipelines were preventing one from getting the
1579 exit status of most commands, this seems like the right idea.
1581 * level-0, level-1 (LOGFILE): Use YYYY-MM-DD (all numeric) format
1582 for log file name, since that makes the file names sortable in a
1583 coherent way. Suffix should always be `level-n' where n is the
1584 dump level. level-0 script was just using `-full' instead.
1586 * level-0, level-1 (DUMP_LEVEL): New variable. Set to `0' or `1'
1587 in each script as appropriate.
1589 * level-0, level-1 (HOST): Renamed to `localhost' for clarity.
1590 (host): renamed to `remotehost' for clarity.
1592 * level-0, level-1 (startdate): New variable. Use it in Subject
1593 line of mailed report.
1595 * level-0, level-1: Fixed all instances where sed is called with a
1596 script on the command line to use `-e' option.
1598 * level-0, level-1: Don't try to call logfile.sed to filter
1599 LOGFILE. It's not distributed with tar and was never really used
1602 * level-0, level-1: Put quotes around most variable names (barring
1603 those that are known to intentionally contain text that should be
1604 expanded into multiple words, like `TAR_PART1').
1606 * level-0, level-1: Got rid of annoying trailing backslashes in awk
1607 scripts. They were gratuitous. Made them a little more readable
1608 by adding some whitespace.
1610 1992-10-21 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1612 * level-0, level-1: put curly braces around variables for clarity.
1614 * backup-specs (DUMP_REMIND_SCRIPT): define it (but commented out
1615 so that distributed dump scripts won't use it by default).
1616 level-0, level-1 (TAR_PART1): use --info-script if
1617 DUMP_REMIND_SCRIPT is defined.
1618 dump-remind: new file (intended as an example).
1620 1992-10-15 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1622 * level-0, level-1: remove $LOGFILE.tmp files before exiting.
1624 1992-09-24 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
1626 * level-0, level-1 (TAR_PART1): remove --atime-preserve
1627 because of a total screw.
1629 1992-09-10 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1631 * level-0, level-1 (TAR_PART1): put --atime-preserve inside quotes.
1633 1992-09-09 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
1635 * level-0, level-1 (TAR_PART1): Use --atime-preserve.
1637 1992-07-10 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
1639 * level-0, level-1: Avoid silly Sun awk lossage.
1641 1992-04-30 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1643 * level-1: Added `$' before VOLNO_FILE in definition of TAR_PART1.
1644 Added line to remove $VOLNO_FILE from any previous dump before
1647 * level-0, level-1: Change long options to use `--' instead of `+'
1648 (support for `+' will go away soon)
1650 1991-10-17 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
1652 * level-0: Repair damage from previous mod: stdin to rsh must
1653 be the terminal or tar's questions lose.
1655 1991-08-31 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
1657 * level-0: Fixed several syntax errors associated with
1658 stdout/stderr redirection.
1659 Made sure remote host executes commands from sh where redirection
1660 is necessary, since root's shell might be csh in some places and
1661 the redirect syntax differs.
1663 1991-07-01 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
1665 * Fix a misplaced quote in level-0 and change some >& into
1669 ----- src/ChangeLog -----
1671 1997-04-25 François Pinard <pinard@iro.umontreal.ca>
1675 * tar.c (main): Attempt to clarify the delayed error exit message.
1676 Reported by Richard Stallman.
1678 * list.c (decode_mode): New name for demode.
1680 * list.c (read_and): Set current_stat.st_mtime before testing it.
1681 Reported by Sven Verdoolaege.
1683 1997-04-24 François Pinard <pinard@iro.umontreal.ca>
1685 * create.c (dump_file): Before asserting that we cannot access
1686 a directory, make sure tar is not installed suid root.
1687 Reported by Dietmar Braun.
1689 * misc.c (quote_copy_string): Undo 1996-05-02 change, meant for
1690 the file mangler, now obsolete. This will do neater listings.
1691 Reported by Max Hailperin and Noah Friedman.
1693 * buffer.c, incremen.c, misc.c, tar.c: Replace dangling semicolons
1694 by continue; or break; depending on context.
1695 Reported by Robert E. Brown.
1697 1997-04-23 François Pinard <pinard@iro.umontreal.ca>
1699 * arith.c (add_to_tarlong_helper): Compare a superdigit against a
1700 value, rather than an unsigned sum against zero.
1701 Reported by Bruno Haible.
1703 * misc.c (quote_copy_string): Replace many if's by a switch.
1705 1997-04-22 François Pinard <pinard@iro.umontreal.ca>
1709 * extract.c (extract_archive): Check if directory extraction was
1710 attempted over an existing directory before attempting recovery,
1711 so avoiding extraction loops in cases like DIR/../DIR.
1712 Reported by Marc Boucher.
1714 * delete.c (delete_archive_members): New name for junk_archive.
1715 * common.h, tar.c (main): Adjusted.
1717 1997-04-20 François Pinard <pinard@iro.umontreal.ca>
1719 * tar.c (usage): Update comment about --mode.
1721 1997-04-19 François Pinard <pinard@iro.umontreal.ca>
1723 * buffer.c: Include <fnmatch.h> if necessary.
1724 Reported by Bruno Haible.
1726 * common.h: Declare write_dir_file for incremen.c.
1727 Reported by Bruno Haible.
1729 * incremen.c (get_directory_contents): Nest an assignment and test
1730 within another set of aesthetical parentheses.
1731 Reported by Bruno Haible.
1733 * tar.c (check_octal): Deleted.
1734 Reported by Bruno Haible.
1736 * buffer.c (flush_archive): Add one impossible switch case.
1737 * delete.c (junk_archive): Add two impossible switch cases.
1738 * list.c (read_and): Add one impossible switch case.
1739 * update.c (update_archive): Add two impossible switch cases.
1740 Reported by Bruno Haible.
1742 * names.c (name_gather): Explicitly declare allocated_length as
1743 an int, do not imply it.
1744 Reported by Bruno Haible.
1746 1997-04-18 François Pinard <pinard@iro.umontreal.ca>
1750 * Makefile.am (tar._o, rmt._o): Revise rules further.
1751 Reported by Bruno Haible and Ken Steube.
1753 1997-04-16 François Pinard <pinard@iro.umontreal.ca>
1755 * arith.h: Prefer a single long over a long long, if possible.
1756 Also reject long long if it is not long enough :-).
1757 Reported by Bruno Haible.
1759 1997-04-15 François Pinard <pinard@iro.umontreal.ca>
1761 * buffer.c, tar.c, update.c, common.h: Replace _COMMAND suffixed
1762 constants by _SUBCOMMAND suffixed. Rename enum command by
1763 enum subcommand, main_command_option by subcommand_option and
1764 set_main_command_option by set_subcommand_option.
1766 * create.c (dump_file): Remove badperror label, call WARN
1767 explicitly at the two other needed places instead. Remove
1768 badfile label, expand the proper code at the three other
1769 needed places instead. Delete the critical_error flag, just
1770 set exit_status to TAREXIT_FAILURE rather than setting this flag.
1772 1997-04-12 François Pinard <pinard@iro.umontreal.ca>
1774 * delete.c (move_archive): Declare it void.
1775 Reported by Bruno Haible and Kaveh R. Ghazi.
1777 1997-04-11 François Pinard <pinard@iro.umontreal.ca>
1781 * Makefile.am: Duplicate rules for the ansi2knr case.
1782 Reported by Kaveh R. Ghazi and Marcus Daniels.
1784 1997-04-10 François Pinard <pinard@iro.umontreal.ca>
1786 * common.h: Change mode_option from int to struct mode_change *.
1787 * tar.c (decode_option): Use mode_compile.
1788 * create.c (start_header): Use mode_adjust.
1790 1997-04-09 François Pinard <pinard@iro.umontreal.ca>
1792 * All: Replace all flag_ prefixed variables by _option suffixed.
1793 * tar.c: Replace OPTION_ prefixed macros by _OPTION suffixed.
1795 * buffer.c, tar.c, update.c, common.h: Replace COMMAND_ prefixed
1796 macros by _COMMAND suffixed, COMMAND_NONE by UNKNOWN_COMMAND,
1797 and delete TOO_MANY_COMMAND. Turn these into an enum and declare
1798 main_command_option of this enum type, to replace command_mode,
1799 which was an int, everywhere.
1800 * tar.c (decode_options): Initialise main_command_option.
1801 (set_main_command_option): New function to replace
1802 SET_COMMAND_MODE. Diagnostic ambiguous command as soon as seen.
1803 However, be forgiving if command has merely been repeated.
1805 * buffer.c, tar.c, common.h: Have info_script_option be at the
1806 same time a flag and the option value, no need for a separate
1807 info_script variable. Rename rsh_command to rsh_command_option,
1808 tape_length to tape_length_option, compress_program to
1809 use_compress_program_option, volno_file to volno_file_option.
1810 * tar.c (set_use_compress_program_option): New function.
1812 * buffer.c, names.c, tar.c, common.h: Have files_from_option
1813 be at the same time a flag and the option value, no need for
1814 a separate namefile_name variable.
1816 * buffer.c, create.c, tar.c, commun.h: Rename volume_label to
1817 volume_label_option.
1819 * incremen.c, tar.c, common.h: Rename gnu_dumpfile to
1820 listed_incremental_option. Let it unitialised for just incremental.
1821 * create.c (create_archive): No need to check both
1822 incremental_option and listed_incremental_option, as the later
1823 implies the former already.
1825 * create.c, tar.c, common.h: Rename preset_owner to owner_option,
1826 preset_group to group_option and preset_mode to mode_option.
1828 * create.c, incremen.c, list.c, tar.c, commun.h: Have
1829 after_date_option be a Boolean instead of a three-valued flag.
1830 Rename threshold_time to newer_mdate_option, which may be looked
1831 at without checking after_date_option first, as threshold_time
1832 before. Make newer_cdate_option an alias for newer_mdate_option.
1834 1997-04-08 François Pinard <pinard@iro.umontreal.ca>
1836 * buffer.c: Use int after extern to declare time_to_start_writing.
1837 * extract.c: Use int after static to declare we_are_root.
1838 Reported by Ariel Faigon.
1840 1997-04-03 François Pinard <pinard@iro.umontreal.ca>
1842 * list.c (read_and): Use the proper enum constants in switch,
1843 instead of oldish and wrong numbers.
1844 Reported by Martin Mares.
1846 1997-04-01 François Pinard <pinard@iro.umontreal.ca>
1848 * arith.c [SUPERDIGIT] (zerop_tarlong, lessp_tarlong,
1849 clear_tarlong, add_to_tarlong, add_to_tarlong, mult_tarlong,
1850 print_tarlong): Rename all functions by adding a _helper suffix.
1851 * arith.h [SUPERDIGIT]: Replace function prototypes by macros,
1852 each calling the function with _helper appended, and extracting
1853 pointers out of the tarlong structures.
1854 Reported by Andrew A. Ivanov and Kaveh R. Ghazi.
1856 * buffer.c (child_open_for_compress): Copy all records coming out
1857 of the compressor, not only the last one.
1858 Reported by Alois Steindl, Mark Bynum, Martin Mares, Nelson
1859 H. F. Beebe, Scott J. Kramer and Torkel Hasle.
1861 1997-03-29 François Pinard <pinard@iro.umontreal.ca>
1863 * create.c (dump_file): Ignore unreadable directories when
1864 --ignore-failed-read.
1865 Reported by Ralph Schleicher.
1867 * create.c (deal_with_sparse): Chain the last partial zero block
1868 with the preceding data, do not try sparing it. This correction
1869 is approximative, as the whole thing should be rethought.
1870 Reported by Andreas Degert.
1872 1997-03-24 François Pinard <pinard@iro.umontreal.ca>
1874 * All: Rename head to current_header, hstat to current_stat, and
1875 header_format to current_format.
1876 * update.c (update_archive): Rename nstat to stat_data.
1877 * create.c: Do not extern hstat, as common.h does it.
1878 (deal_with_sparse): Get rid of amidst_data, since numbytes is
1879 already usable as a flag for the same thing.
1881 1997-03-21 François Pinard <pinard@iro.umontreal.ca>
1883 * names.c (name_gather): Do not declare static variables which
1884 do not need to be. Have allocated_length represent the full
1885 allocated length, instead of only the name part. It's clearer.
1886 (addname): Similar cleanups.
1888 1997-03-20 François Pinard <pinard@iro.umontreal.ca>
1890 * compare.c: Always call report_difference when there is a
1891 problem, so the exit status will be set in all cases. Build the
1892 message string if necessary, so avoiding stdargs/varargs.
1893 (report_difference): If NULL argument, just set the exit status
1894 without reporting a message. Move out the word `differs'
1895 in all callers, do not insert into an English message.
1896 (read_and_process): Return void, as the int result is never used.
1897 Assume processors returns nonzero for success and zero for
1898 failure, instead of 0 for success and -1 for error.
1899 (process_rawdata, process_dumpdir): Adjusted.
1901 * compare.c: Remove different as a global variable, it is useless.
1902 (diff_sparse_files): Make different a local variable, reinitialise
1903 it on each call. Otherwise, after any error elsewhere, all sparse
1904 files were always and falsely reported as erroneous.
1905 Reported by James E. Carpenter and Tim Towers.
1907 1997-02-25 François Pinard <pinard@iro.umontreal.ca>
1909 * tar.c: Adjust copyright years in --version output.
1911 * create.c (dump_file): Allow saving directories even with -o.
1912 Reported by Daniel Trinkle.
1914 1996-11-26 François Pinard <pinard@iro.umontreal.ca>
1916 * compare.c (verify_volume) [FDFLUSH]: Use fsync even in that case.
1917 Reported by Marty Leisner.
1919 1996-11-25 François Pinard <pinard@iro.umontreal.ca>
1921 * buffer.c (new_volume): Write file name in two words.
1922 * names.c (name_next): Idem.
1923 * buffer.c (flush_read): Speak of record size instead of blocksize.
1924 Reported by Christian Kirsch.
1926 1996-11-22 François Pinard <pinard@iro.umontreal.ca>
1928 * list.c (read_header): Return failure, instead of success,
1929 whenever checksums do not match.
1930 Reported by Marc Boucher and Marty Leisner.
1932 * incremen.c (get_directory_contents): Use stat_data instead of
1933 current_header for checking normal files. Otherwise, new or
1934 modified files in old directories were not dumped, that is, if a
1935 directory was older than the listed entry, it was skipped
1936 completely without checking the contained files.
1937 Reported by David Johnson, John David Anglin and Wolfram Wagner.
1939 * buffer.c (open_archive): When updating the archive, initialize
1940 the access variable with reading mode, not update mode.
1941 Reported by Andreas Schwab.
1943 * delete.c (junk_archive): Initially jump directly into the loop,
1944 so deleting a file after a big one will not destroying the archive.
1945 Reported by Akiko Matsushita, Andreas Schwab, Eric Backus, Jeff
1946 Siegel, Saul Lubkin, Stuart Kemp and Yasushi Suzudo.
1948 1996-11-19 François Pinard <pinard@iro.umontreal.ca>
1950 * incremen.c (get_directory_contents): Compute distance using the
1951 start of the proper buffer.
1952 Reported by David Johnson, Donald H. Locker, John David Anglin,
1953 Marc Boucher and Noah Friedman.
1955 * tar.c (usage): Revise the mandatory/optional sentence again.
1956 Reported by Karl Berry.
1958 1996-11-18 François Pinard <pinard@iro.umontreal.ca>
1960 * Prerelease 1.11.14.
1962 * tar.c (usage): Explain the purpose of the program.
1964 * tar.c (usage): Clarify the mandatory/optional sentence.
1965 Reported by Alex Schmidt.
1967 * system.h [HAVE_SYS_TAPE_H]: Include sys/buf.h if it exists, to
1968 avoid many warnings on BSD/OS.
1969 Reported by Dan Reish.
1971 1996-11-11 François Pinard <pinard@iro.umontreal.ca>
1973 * incremen.c (write_directory_file): Renamed from write_dir_file.
1974 (get_directory_contents): Renamed from get_dir_contents.
1975 * common.h: Adjusted.
1977 * all: Cleanup around local variables, renaming them more
1978 appropriately, using initializers when natural, and moving them
1979 closer to the blocks where they are used.
1981 A bit of reorganisation in the sources:
1982 * common.h: New file, for holding all GNU tar specific definitions,
1983 which were previously held in tar.h.
1984 * tar.h: Now limited to the archive format description only.
1985 * all: Include common.h instead of tar.h.
1986 * delete.c: New file, holding delete code out of update.c.
1987 * update.c: Now limited to appending type of commands.
1988 * compare.c: New name for diffarch.c.
1989 * incremen.c: New name for increm.c.
1990 * names.c: Moved over all name processing from tar.c.
1991 * tar.c, common.h: Adjusted.
1992 * Makefile.am: Adjusted.
1994 * system.h (lstat) [!S_ISLNK]: Define as stat.
1995 * create.c, diffarch.c, increm.c: Remove similar definitions.
1997 * tar.c: Merge --version-control into --backup, make it obsolete.
1999 1996-11-10 François Pinard <pinard@iro.umontreal.ca>
2001 * all: Add a FIXME comment everywhere errno is modified by tar.
2003 * buffer.c (new_volume): Return nonzero/zero for success/failure,
2004 instead of zero/negative. Callers adjusted. Use xstrdup on
2005 file name given by user with the answer "n", so avoiding the
2006 apparently useless allocation of one extra byte. Avoid using p.
2008 * buffer.c: Add DEBUG_FORK conditional code.
2009 Reported by Thomas König and Ulrich Drepper.
2011 * misc.c (maybe_backup_file): In the renaming message, say that
2012 the previous file is being renamed, not the newly extracted one.
2014 * buffer.c (backspace_output): Change return type to void, since
2015 returned values were never used.
2016 * update.c (move_arch): Idem.
2017 (xdup2): New name for redirect, order of arguments was not natural.
2019 1996-11-09 François Pinard <pinard@iro.umontreal.ca>
2021 * all: Remove all white lines between open braces and comments.
2023 * tar.h: Declare access_mode as an enum and as a variable.
2024 Adjust declaration of open_archive.
2025 * buffer.c: (open_archive, new_volume): Use access instead of
2026 reading. Callers adjusted for using enum access_mode arguments.
2027 (flush_archive, close_archive): Use access_mode, and cleanup.
2028 * diffarch.c (verify_volume): Use access_mode.
2030 * buffer.c (child_open_for_compress, child_open_for_uncompress):
2031 Split of previous child_open_for_compress. Clean up.
2032 (open_archive): Adjusted for calling the proper function above.
2034 1996-11-09 François Pinard <pinard@iro.umontreal.ca>
2036 * Prerelease 1.11.13.
2038 * tar.c (usage): Do not tie --posix anymore to 1.12.
2040 * extract.c (set_stat): Until we know better, for the time being,
2041 limit restoring symbolic link attributes to lchown only.
2043 * all: Mini clean up. Systematically set logical variables to
2044 one instead of auto-incrementing them (PDP-11 time is over by
2045 now! :-). Replace some single letter counters or cursors by
2046 variables named counter or cursor. Simplify a few C constructs.
2048 * buffer.c, tar.h: Delete read_error_flag, set but never used.
2049 Rename r_error_count to read_error_count.
2051 * create.c (clear_buffer): Use memset instead of explicit loop.
2052 (zero_block_p): Renamed from zero_block, callers adjusted.
2054 1996-11-07 François Pinard <pinard@iro.umontreal.ca>
2056 * rmt.c (private_strerror): Add const's to sys_errlist declaration.
2057 Reported by Fabio d'Alessi.
2059 1996-11-06 François Pinard <pinard@iro.umontreal.ca>
2061 * tar.h: Add OPTION_BACKUP, OPTION_SUFFIX, OPTION_VERSION_CONTROL.
2062 Renumber options from 3 instead of from 10. Declare flag_backup.
2063 * tar.c: Include backupfile.h. Implement --backup, --suffix and
2064 --version-control decoding. Adjust usage documentation.
2066 * misc.c (maybe_backup_file, un_backup_file): New functions.
2068 * buffer.c (child_open_for_compress, open_archive, new_volume):
2069 Use the new functions.
2070 * extract.c (extract_archive): Idem.
2071 Reported by Jeffrey Mark Siskind, Karl Berry, Karl Heuer, Marty
2072 Leisner, Melissa Weisshaus and William Bader.
2074 * misc.c (assign_string): Moved over from tar.c.
2077 1996-10-28 François Pinard <pinard@iro.umontreal.ca>
2079 * tar.h: Declare enum read_header, for return values of read_header.
2080 * diffarch.c (verify_volume): Adjusted.
2081 * list.c (read_and, read_header): Adjusted.
2082 * update.c (junk_archive, update_archive): Adjusted.
2083 * update.c: Rename prev_status to previous_status.
2084 * update.c (junk_archive): Delete found_stuff, use logical_status.
2086 1996-10-15 François Pinard <pinard@iro.umontreal.ca>
2088 * buffer.c (new_volume, open_archive): Soften messages.
2089 * create.c, extract.c: Add quotes around slashes in some messages.
2090 * tar.c (usage): Added a missing equal sign after --directory.
2091 Reported by Jan Djarv.
2093 1996-09-22 François Pinard <pinard@iro.umontreal.ca>
2095 * tar.c: Write --no-recursion instead of --no-recurse.
2096 Reported by Noah Friedman.
2098 1996-09-20 François Pinard <pinard@iro.umontreal.ca>
2100 * tar.h: Delete label_pattern.
2101 * tar.c (main): Do not compile anymore volume_label as a regexp.
2102 (usage): Document --label as accepting a globbing pattern.
2103 * buffer.c, tar.c: Do not include regex.h neither rx.h.
2104 * buffer.c (check_label_pattern): New function.
2105 (open_archive, flush_read): Use it, instead of re_match.
2107 * tar.c (decode_options): Better space --version output.
2109 1996-09-19 François Pinard <pinard@iro.umontreal.ca>
2111 * Prerelease 1.11.12
2113 * Makefile.am (EXTRA_PROGRAMS): Compile rmt properly, instead of
2114 letting make use default .c to executable rule.
2116 * tar.c: Include getopt.h.
2119 * increm.c (get_dir_contents): Consider all NFS devices as equal
2120 before deciding that a directory was renamed, so automount will
2121 not fool GNU tar into spurious incremental redumping.
2122 Reported by Frank Koenen, Giorgio Signorini, Joachim Holzfuss,
2123 Konno Hiroharu, R. Kent Dybvig and Wolfram Wagner.
2125 * tar.c (usage): Add bug report address in --help output.
2126 (decode_options): Add copyright and authors in --version output.
2128 * increm.c: New name for gnu.c.
2129 * Makefile.am (tar_SOURCES): Adjusted.
2131 * gnu.c (init_buffer, add_buffer, get_buffer, flush_buffer): Moved
2132 over from misc.c. Deleted is_dot_or_dot_dot and remove_any_file.
2133 * misc.c (is_dot_or_dotdot, remove_any_file): Moved over from gnu.c.
2134 Deleted init_buffer, add_buffer, get_buffer and flush_buffer.
2137 1996-09-18 François Pinard <pinard@iro.umontreal.ca>
2139 * buffer.c (write_error): Obey --totals before aborting.
2140 Reported by Greg Chung.
2142 * buffer.c (read_error, write_error): Renamed from readerror and
2144 * tar.c (read_name_from_file): Rename c to character.
2146 1996-09-17 François Pinard <pinard@iro.umontreal.ca>
2148 * arith.h (tarlong): The typedef tarlong, when an array, is now
2149 wrapped inside a struct to avoid bugs in EWS 4.2 C compiler.
2150 * arith.c: Adjusted.
2151 Reported by Paul Eggert.
2153 * buffer.c: Declare archive_stat statically.
2154 (open_archive): Do not declare archive_stat locally.
2155 (close_archive): Limit archive draining to while reading a pipe.
2156 Reported by Andreas Schwab.
2158 1996-09-16 François Pinard <pinard@iro.umontreal.ca>
2160 * system.h: Define protected defaults for open parameter symbols.
2161 [EMUL_OPEN3]: Intercept open calls and redirect them to open3.
2162 * open3.c: New file, moved over from lib/. Merely include
2163 system.h rather than config.h, errno.h and open3.h.
2164 [EMUL_OPEN3]: The compilation of the file depends on this symbol.
2165 When it was in lib/, we were using LIBOBJS to control this.
2166 * Makefile.am: Adjusted.
2167 * extract.c: Don't call open3.h.
2168 Reported by Jim Meyering.
2170 1996-09-09 François Pinard <pinard@iro.umontreal.ca>
2172 * Makefile.am (libexec_PROGRAMS): Rely on @RMT@, not rmt.
2173 (bin_PROGRAMS): Do not include @RMT@.
2175 * gnu.c (remove_any_file): Protect value of errno in case
2176 of failure to remove a directory, in non-recursive mode.
2177 This should correct spurious diagnostics while extracting
2178 directories over already existing hierarchies.
2179 Reported by Martin Mares and Marty Leisner.
2181 1996-09-04 François Pinard <pinard@iro.umontreal.ca>
2183 * gnu.c (read_dir_file): Diagnose file names over PATH_MAX.
2184 (get_dir_contents, add_dir_name): Increase namebuf many times if
2185 this is needed to receive a loong file name.
2186 Reported by Carsten Heyl.
2188 * Makefile.am (tar.o, rmt.o): Special rules for defining
2189 LOCALEDIR, instead of having it defined on all compiles.
2191 * Makefile.am: Remove check related lines, moved over to tests/.
2193 1996-09-03 François Pinard <pinard@iro.umontreal.ca>
2195 * Makefile.am: Use genfile in check_PROGRAMS, not noinst_PROGRAMS.
2196 (check-local): Do not depend on genfile.
2198 1996-08-24 François Pinard <pinard@iro.umontreal.ca>
2200 * Makefile.am (EXTRA_DIST): Do not mention ansi2knr.1 nor
2201 ansi2knr.c, as Automake now handle them automatically.
2203 1996-07-18 François Pinard <pinard@iro.umontreal.ca>
2205 * arith.h: Include tar.h, not arith.h, so FATAL_ERROR is defined.
2206 [!SUPER_DIGIT]: Declare arguments to ..._tarlong routines as
2207 pointers to unsigned long and not arrays, for avoiding pointers
2208 to arrays, and nevertheless have arrays passed by reference
2209 rather than by value.
2210 * arith.c: Adjusted function headers accordingly.
2211 * buffer.c, tar.c: Removed address-of operators, using tarlongs.
2212 Reported by Christian T. Dum, Jim Meyering and Kaveh R. Ghazi.
2214 * arith.h [SUPER_DIGIT]: Avoid indirection in all macros for
2215 Accumulators. This, in particular, solves a bug where the pointer
2216 value itself was printed, rather than the pointed to value.
2217 Reported by Drew Sullivan and Wolfram Wagner.
2219 * Makefile.am (EXTRA_DIST): Include ansi2knr.[1c] for now.
2220 Reported by Christian T. Dum, Jim Meyering and Kaveh R. Ghazi.
2222 1996-07-17 François Pinard <pinard@iro.umontreal.ca>
2224 * Prerelease 1.11.11.
2226 * Makefile.am (check-local): Ensure relinking if the service
2227 libraries where modified (waiting for Automake to do it!).
2229 1996-07-16 François Pinard <pinard@iro.umontreal.ca>
2231 * rmt.c (strerror): It is a macro on some systems.
2232 Reported by Santiago Vila Doncel.
2234 1996-07-15 François Pinard <pinard@iro.umontreal.ca>
2236 * Prerelease 1.11.10.
2238 * checktar.sh: Use a more regular WARNING in message.
2240 1996-07-09 François Pinard <pinard@iro.umontreal.ca>
2242 * tar.h: Declare that unquote_string as returning int, not char *.
2243 * misc.c (unquote_string): New name for un_quote_string. Clean
2244 up a bit, return a boolean indicator for success, not a string.
2245 * gnu.c (read_dir_file), mangle.c (extract_mangle), tar.c
2246 (add_exclude): Callers adjusted, so they never use a NULL return
2247 as an actual string. In fact, the result of unquote_string is
2248 always used, even if the quoting was improper.
2249 Reported by Johan Vromans.
2251 1996-05-03 François Pinard <pinard@iro.umontreal.ca>
2253 * tar.h: Define TTY_NAME as a macro, instead of an external array.
2254 * tar.c: Remove declaration of TTY_NAME.
2256 * tar.h: Rename new_time to threshold time. Make it GLOBAL.
2257 * tar.c, create.c, gnu.c, list.c: Adjusted.
2258 (decode_options): Clarify -N and --newer-mtime decoding, ensure
2259 one of them is called at most, otherwise it would misbehave.
2261 1996-05-02 François Pinard <pinard@iro.umontreal.ca>
2263 * misc.c (quote_copy_string): Ensure spaces are backslash-quoted.
2264 Reported by Max Hailperin.
2266 * list.c (decode_header): Some clean up. Recognize POSIX archive
2267 headers, avoid fetching atime or ctime in this case.
2268 [!S_IFBLK || !S_IFCHR]: Ensure st_rdev is cleared appropriately.
2269 * tar.h: Rename head_standard to header_format, so turning an
2270 int to an enum archive_format. Adjust decode_header prototype.
2271 * diffarch.c, extract.c, list.c, update.c: Usages changed.
2272 * create.c: Ensure oldgnu_header is only used when OLDGNU_FORMAT.
2273 (Correction just starting to be made--will be comprehensive...)
2274 Reported by Anders Andersson, Bdale Garbee, Chris G Demetriou and
2277 * buffer.c, gnu.c, rtapelib.c, tar.c: Diagnose errors on fclose.
2278 Reported by Jim Meyering.
2280 1996-05-01 François Pinard <pinard@iro.umontreal.ca>
2282 * buffer.c (close_archive): If reading and the archive is
2283 finished, read until end of archive, for avoiding an error
2284 message from the upstream process if we are reading from a pipe.
2285 Reported by Bennett Todd, Dick Streefland, Don Bennett, Ian Lance
2286 Taylor, Jean-loup Gailly and Piercarlo Grandi.
2288 * create.c (dump_file): Add note about accuracy of st_blocks.
2289 Reported by Dick Streefland.
2291 * diffarch.c: Include <linux/fd.h> if it exists.
2292 (verify_volume): fsync, than ioctl(, FDFLUSH) first.
2293 Reported by Marty Leisner.
2295 1996-04-29 François Pinard <pinard@iro.umontreal.ca>
2297 * list.c (isotime): New function.
2298 (print_header) [!USE_OLD_CTIME]: Use it instead of ctime.
2299 Reported by Karl Berry and Markus Kuhn.
2301 1996-04-23 François Pinard <pinard@iro.umontreal.ca>
2303 * extract.c (set_stat): Accept a new parameter telling if this is
2304 a symbolic link. In this case, and if lchown exists, use it
2305 instead of chown. Callers adjusted.
2306 (extract_archive): Do call set_stat over restored symbolic links.
2307 Reported by Andreas Koppenhoefer, Bernard Derval, Ian Jackson,
2308 Matt Power, Warren Dodge and Wolfram Gloger.
2310 * extract.c (extr_init): If the umask was very restrictive at
2311 start of tar, nevertheless ensure we create intermediate
2312 directories with such permissions that we can at least add files
2314 (extract_archive): Same, but for final directory. Ensure
2315 directory attributes are restored in all cases.
2316 Reported by Piercarlo Grandi.
2318 * tar.c: Implement --owner, --group and --mode options.
2319 * tar.h: Declare preset_owner, preset_group and preset_mode.
2320 * create.c: Obey these variables.
2321 Reported by Ken Raeburn, Richard Stallman and Stephen Gildea.
2323 * create.c (dump_file): When wanting the length of the link
2324 name, use strlen, rather then doing wrong arithmetic giving
2325 the number of removed slashes at the beginning of it.
2326 Reported by Brian R. Smith.
2328 * create.c (start_header): Try removing leading slashes even for
2330 Reported by Art Isbell, Fritz Elfert and Robert E. Brown.
2332 * buffer.c (new_volume): Avoid calling closeout_volume_number if
2333 the --volno-file option was not specified, so avoiding crashes.
2334 * tar.c (usage): Document the --volno-file option.
2335 Reported by Christoph Litauer, Daniel S. Barclay, David Taylor,
2336 Erik D. Frederick, Larry Creech, Loïc Prylli, Loren J. Rittle,
2337 Marty Leisner, Neil Faulks, Paul Mitchell, Rocky Giannini, Roy
2338 Marantz, Sylvain Rougier, Timothy J. Lee and Werner Almesberger.
2340 1996-04-22 François Pinard <pinard@iro.umontreal.ca>
2342 * system.h (N_): Define marking macro for delayed translations.
2343 * rmt.c: Use N_ instead of _ for returned strings. It does not
2344 make sense translating messages in a remote process, not knowing
2345 the language in use in the local process.
2347 1996-04-18 François Pinard <pinard@iro.umontreal.ca>
2349 Instead of -UU for removing directories, request a long option.
2350 * tar.c: Implement --recursive-unlink.
2351 (usage): Document --recursive-unlink.
2352 (decode_options): Have --recursive-unlink imply --unlink-first.
2353 * tar.h: Declare --recursive-unlink.
2354 * extract.c (extract_archive): Use flag_recursive_unlink instead
2355 of flag_unlink_first > 1.
2356 Reported by Andreas Schwab.
2358 1996-04-17 François Pinard <pinard@iro.umontreal.ca>
2360 * Makefile.am (EXTRA_DIST): New name for DIST_OTHER.
2362 * tar.c (addname, name_gather): Zero out freshly allocated struct
2363 name, to prevent garbage to get into the structure.
2364 Reported by Jonathan Kamens.
2366 1996-03-28 François Pinard <pinard@iro.umontreal.ca>
2368 * create.c (dump_file): Cast %ld argument to (long).
2369 Reported by Constantin Belous and Jörgen Hägg.
2371 1996-03-21 François Pinard <pinard@iro.umontreal.ca>
2373 * tar.c (main): Return int, not void.
2374 Reported by Timothy J. Lee and Peter Seebach.
2376 1996-02-28 François Pinard <pinard@iro.umontreal.ca>
2378 * Makefile.am: Use RMT instead of PROGRAMS and noinst_HEADERS
2381 1996-02-12 François Pinard <pinard@iro.umontreal.ca>
2383 * Makefile.am: Remove CONFIG_HEADER, not required by Automake 0.29.
2385 1996-02-03 François Pinard <pinard@iro.umontreal.ca>
2387 Ensure --totals work correctly for huge archives:
2388 * arith.h, arith.c: New files.
2389 * Makefile.am: Use arith.h and arith.c.
2390 * tar.h: Do not declare tot_written anymore, include "arith.h".
2391 * tar.c (main): Call init_total_written and print_total_written.
2392 * buffer.c: Rename tot_written to total_written, make it tarlong.
2393 (init_total_written, print_total_written): New routines.
2394 Reported by Albert W. Dorrington, Chris F.M. Verberne, David
2395 Martin, Eduardo Villasenor de Rivas, Greg Chung, Jim Meyering,
2396 John R. Vanderpool, Jon Lewis, Jörg Weule, Jörgen Hägg, Rod
2397 Thompson, Russell Cattelan, Ted Rule and Tor Lillqvist.
2399 Ensure --tape-length is usable for huge media:
2400 * tar.h: Declare tape_length as tarlong instead of int.
2401 * tar.c (decode_option): Decode tape_length as tarlong, and use
2402 its value pre-multiplied by 1024.
2403 * buffer.c (flush_write): Use bytes_written and tape_length as
2404 tarlongs. Declare bytes_written outside flush_write.
2405 (init_total_written): Zero out bytes_written as well.
2406 Reported by Dave Barr.
2408 1996-01-15 François Pinard <pinard@iro.umontreal.ca>
2410 * rtapelib.c (rmt_open__) [MSDOS]: Do not call setuid/setgid.
2411 Reported by Yasushi Suzudo.
2413 1996-01-14 François Pinard <pinard@iro.umontreal.ca>
2415 * Makefile.am (AUTOMAKE_OPTIONS): Select gnits and ansi2knr.
2417 1996-01-08 François Pinard <pinard@iro.umontreal.ca>
2419 * create.c: Initialize linklist to NULL.
2420 Reported by Bradley A. Smith.
2422 1996-01-07 François Pinard <pinard@iro.umontreal.ca>
2424 * Makefile.am: Add parts of previous Makefile.in as FIXME comments.
2426 1996-01-03 François Pinard <pinard@iro.umontreal.ca>
2428 * tar.c (usage): Avoid an unescaped new line.
2429 Reported by Kaveh R. Ghazi and Mark Bynum.
2431 * system.h: Declare valloc if it exists and is not #defined.
2432 * create.c (start_header): Add missing DEFAULT_FORMAT case.
2433 * gnu.c (read_dir_file): Use NULL instead of (char *) 0.
2435 * Makefile.am: Install rmt in $(libexec), not in sbin.
2437 * tar.c (decode_options): Add a semicolon so default case is
2438 not completely empty, for better ANSI C compliance.
2439 Reported by John David Anglin, Kaveh R. Ghazi and Mark Bynum.
2441 1996-01-02 François Pinard <pinard@iro.umontreal.ca>
2443 * buffer.c (open_archive): Allocate real_s_name at run time
2444 instead of statically, because PATH_MAX is not always constant.
2445 Reported by Bruno Haible, John David Anglin, Jonathan Thornburg,
2446 Kaveh R. Ghazi, Martin Bellenberg, Marty Leisner, Nelson
2447 H. F. Beebe, Roland McGrath and Thomas König.
2449 * Makefile.am (DIST_OTHER): Distribute BACKLOG.
2450 Reported by Marty Leisner.
2452 1996-01-01 François Pinard <pinard@iro.umontreal.ca>
2454 * system.h: Include "error.h" instead of declaring error ().
2455 Reported by Jim Meyering.
2457 1995-12-31 François Pinard <pinard@iro.umontreal.ca>
2459 * Makefile.am: New file.
2461 1995-12-30 François Pinard <pinard@iro.umontreal.ca>
2463 * Makefile.in: Define LOCALEDIR in DEFS.
2464 * system.h [!ENABLE_NLS]: Add replacement for bindtextdomain.
2465 * tar.c (main): Add call to bindtextdomain.
2466 * rmt.c (main): Add calls to bindtextdomain and textdomain.
2467 Reported by Ulrich Drepper.
2469 * buffer.c, create.c, diffarch.c, gnu.c, list.c, rmt.h, system.h,
2470 tar.h, update.c: Replace __P by PARAMS, to respect ANSI C.
2471 * rtapelib.c, rmt.h: Replace all __rmt* symbols by rmt*__.
2473 1995-12-28 François Pinard <pinard@iro.umontreal.ca>
2475 * Prerelease 1.11.9.
2477 * extract.c (extr_init): Initialize variables in any case,
2478 instead of partly relying on static initializations. Remove
2479 static initializations for those variables.
2481 1995-12-24 François Pinard <pinard@iro.umontreal.ca>
2483 * extract.c (extract_archive): On systems not having symbolic
2484 links, attempt extracting symbolic links as hard links instead,
2485 as POSIX suggests. Emit a diagnostic on first occurrence.
2487 * extract.c (extract_archive): On systems not having contiguous
2488 files, continue extracting them as regular files as before, but
2489 emit a diagnostic on first occurrence.
2491 1995-12-23 François Pinard <pinard@iro.umontreal.ca>
2493 * tar.h: Declare remove_any_file.
2494 * gnu.c (remove_any_file): New name for recursively_delete.
2495 Add a parameter to control recursion. Inverse return value,
2496 so 0 is failure. Ensure errno is always valid in this case.
2497 (gnu_restore): Specify recursion when calling remove_any_file.
2498 * extract.c (maybe_recoverable): New routine.
2499 (extract_archive): Call maybe_recoverable rather than
2500 make_directories, so deleting files is also tried. Some cleanup.
2502 * tar.h: Declare flag_unlink_first.
2503 * tar.c (decode_options): Decode --unlink-first (-U).
2504 (usage): Document it.
2505 * extract.c (extract_archive): With -U, call remove_any_file
2506 prior to extraction for everything except directories.
2508 Reported by Andrew J. Schorr, Andrey A. Chernov, Axel Boldt, Bo
2509 Nygaard Bai, Chris F.M. Verberne, Chris G. Demetriou, Christian
2510 Callsen, Daniel S. Barclay, Ian Jackson, James Stevens, Seth
2511 Robertson, Tito Flagella, Warner Losh and Wolfram Wagner.
2513 1995-12-22 François Pinard <pinard@iro.umontreal.ca>
2515 * tar.c (name_close): Specify static.
2516 (main): Call name_close after create_archive.
2517 * create.c (create_archive): Do not call name_close.
2519 * tar.c: Clean out names_arg[cv] crumb.
2520 (name_next): Simplify routine by merging both loops.
2521 (addname): Avoid xstrdup'ing result of new_name, this corrects a
2524 * extract.c: Normalize error message so the file is identified at
2525 the beginning of it.
2527 * tar.h (USAGE_ERROR): New macro.
2528 * tar.c: Use USAGE_ERROR as far as possible. Cleanup and
2529 normalization in string for usage errors. Better detection of
2530 conflicting options about archive format or compression program.
2532 * tar.c (decode_options): Decouple cases for -C and files. Count
2533 number of input files. Cowardly refuse to create an empty archive
2534 file, if -c is given without input file or list.
2535 Reported by Karl Berry and Robert Bernstein.
2537 1995-12-21 François Pinard <pinard@iro.umontreal.ca>
2539 * buffer.c: Rename a few err variables to status.
2540 * extract.c: Rename a few check variables to status.
2542 Corrections to speed-up the sizeing pass in Amanda:
2543 * tar.h: Declare dev_null_output.
2544 * buffer.c (open_archive): Detect when archive is /dev/null.
2545 (flush_write): Avoid writing to /dev/null.
2546 * create.c (dump_file): Do not open file if archive is being
2547 written to /dev/null, nor read file nor restore times.
2548 Reported by Greg Maples and Tor Lillqvist.
2550 * gnu.c: Have dir_list properly initialized to NULL.
2551 Reported by Paul Nordstrom and Tim Lashua.
2553 * extract.c: Rename ourmask to newdir_umask. Rename and
2554 complement notumask to current_umask.
2555 * list.c (print_for_mkdir): New name for pr_mkdir.
2556 * tar.h: Adjust declaration.
2557 * extract.c (make_directories): New name for make_dirs. Some
2558 cleanup in variable names.
2560 * extract.c: Let newdir_umask be a global variable.
2561 (make_directories): Use newdir_umask while creating intermediate
2562 directories. They used to be 0777 unconditionally.
2563 Reported by Bruce Evans, Harald König and James Crawford Ralston.
2565 1995-12-20 François Pinard <pinard@iro.umontreal.ca>
2567 * create.c (finish_header): Avoid printing the header for long
2568 names or links, this avoids spurious `Visible longname error's.
2570 Reported by Arne Wichmann, Chris F.M. Verberne, Frank Koenen,
2571 Franz-Werner Gergen, Ian Jackson, Jon Lewis, Mark Kollert, Paul
2572 Nordstrom, Ted Rule, Thomas Priesner, Tim Rylance and Tom Tromey.
2574 1995-12-19 François Pinard <pinard@iro.umontreal.ca>
2576 * buffer.c: Have real_s_name able to hold PATH_MAX characters,
2577 not only NAME_FIELD_SIZE. It was breaking --multi-volume
2578 --listed-incremental when backing up long file names.
2579 Many symptoms really: a screwed-up date on the incremental data
2580 file, dumping incremental which should not have been, etc.
2581 * (flush_read): Avoid altering save_name pointer value, use
2582 cursor instead. Also avoid the optimization of cleaning each
2583 save_name only once per flush_read if it did not change: it
2584 was using `save_name = real_s_name;', and since save_name may
2585 be freed at any time, this is/was really running after trouble.
2587 Reported by Alexander V. Lukyanov, Axel Habermann, Chance
2588 Reschke, Claus Heine, Christian von Roques, Daniel Hagerty,
2589 Daniel S. Barclay, Dirk Herr-Hoyman, Donald H. Locker, Ed Childs,
2590 Heiko Schinke, Hunyue Yau, Goeran Uddeborg, Grant McDorman,
2591 Joachim Seelig, Joe DeBattista, Jonathan Thornburg, Joutsiniemi
2592 Tommi Il, Jürgen Lüters, Keith Young, Kelly Stephens, Kevin
2593 Dalley, Konno Hiroharu, Larry Creech, Martin Mares, Michael
2594 Dietrich, Michael Giddings, Michael Meissner, Michael P Urban,
2595 Paul Siddall, Pierce Cantrell, Peter Fox, Robert Frey, Roderich
2596 Schupp, Sam Richards, Stephen J Bevan, Torsten Lull, Wolfram
2597 Gloger and Yu-Min Liang.
2599 * system.h: Include <sys/tprintf.h> and <sys/device.h> for BSDi.
2600 Reported by Chris Arthur, Dan Reish, Karl Berry and Skip Montanaro.
2602 * rmt.c (private_strerror): New, copied from lib/error.c.
2603 Remove sys_errlist declaration, and use syserror instead.
2604 Reported by Chris Arthur, Coranth Gryphon, Erich Stefan Boleyn,
2605 Fabio d'Alessi, Greg Hudson, Jason R. Mastaler, Skip Montanaro,
2606 Thomas Krebs and Troy Rudolph.
2608 1995-12-17 François Pinard <pinard@iro.umontreal.ca>
2610 * extract.c (extract_archive): Unrecognized types were defaulted
2611 to sparse files instead of regular files, because of an improper
2612 /* Fall through. */.
2614 * create.c, diffarch.c, extract.c, gnu.c, list.c, rtapelib.c,
2615 tar.c: Drop register specifications, useless in GNU's tar, as
2616 tar does not use longjmp, and GNU C has -O automagically set.
2618 * extract.c (extract_archive): Inhibit creation of links, special
2619 devices, directories, etc., when --to-stdout option is being used.
2620 Reported by Donald B Gordon, Gerben Wierda, Greg Chung, Norbert
2621 Kiesel and Roman Czyborra.
2623 1995-12-04 François Pinard <pinard@iro.umontreal.ca>
2625 * tar.h: Implement FATAL_ERROR, telling error is not recoverable.
2626 * tar.c (main): Diagnose delayed error, for TAREXIT_FAILURE only.
2627 * buffer.c, diffarch.c, gnu.c, list.c, tar.c, update.c: Replace
2628 all `ERROR ((TAREXIT_FAILURE,' by `FATAL_ERROR ((0,'.
2629 Reported by Marty Leisner.
2631 * list.c (read_and): When telling block numbers in verbose output,
2632 clearly list block numbers for NUL blocks and end of file.
2633 Reported by Jörg Weule.
2635 * tar.c (usage): Document --newer-time.
2636 Reported by Greg Chung.
2638 1995-11-30 François Pinard <pinard@iro.umontreal.ca>
2640 * system.h: Conditionally include <sgtty.h> prior to <mtio.h>.
2641 * rmt.c: Do not include <sgtty.h> anymore.
2642 Reported by Harald König and Kaveh R. Ghazi.
2644 * rtapelib.c: Remove seemingly useless include of setjmp.h.
2646 * rtapelib.c: Try to get EOPNOTSUPP defined in all cases.
2647 If needed, include net/errno.h or sys/inet.h when they exist.
2648 Reported by Goeran Uddeborg, J.J. Bailey, John L. Chmielewski,
2649 Peder Chr. Norgaard and Yasushi Suzudo.
2651 1995-11-29 François Pinard <pinard@iro.umontreal.ca>
2653 * tar.c (decode_options): Diagnose --block-compress properly.
2654 Was segment violating because falling into --blocking-factor.
2656 * buffer.c, create.c, diffarch.c, genfile.c, gnu.c, tar.c:
2657 Uniformly write nonzero instead of non-zero.
2658 Reported by Karl Berry.
2660 * system.h, buffer.c, create.c, diffarch.c, tar.c, update.c [MSDOS]:
2661 Instead of __MSDOS__, all occurrences.
2662 * extract.c (extract_archive) [MSDOS]: Avoid delaying restoration
2663 of timestamps for directories.
2664 * buffer.c (child_open_for_compress): Add a missing semi-colon.
2665 * diffarch.c (diff_archive): Avoid comparing uid and gid.
2666 Reported by Yasushi Suzudo.
2668 * tar.c (usage): Correct absolute-paths to absolute-names.
2669 Reported by Jonathan Kamens.
2671 * tar.c (usage): Indicate that --exclude uses globbing, and that
2672 --label uses regexps.
2673 Reported by John R. Vanderpool and Matti Aarnio.
2675 * tar.c (names_notfound): Do not report a fake namelist entry, so
2676 gzipped empty archives will not produce spurious diagnostics.
2677 Reported by Jonathan Kamens.
2679 1995-11-23 François Pinard <pinard@iro.umontreal.ca>
2681 * tar.c (name_scan, name_match): Avoid labels and gotos.
2683 1995-11-22 François Pinard <pinard@iro.umontreal.ca>
2685 * Makefile.in (DISTFILES): Distribute ChangeLog.
2687 * ChangeLog: New, extracted from top-level ChangeLog.
2689 * tar.c (main, decode_options): Delay request_stdin for `-f'
2690 until all options processed, so we now for sure that `-' means
2691 standard input, not standard output.
2693 * tar.c (usage): Document that users should not count on
2694 POSIX support yet, saying it is only partially implemented so far.
2696 1995-10-27 François Pinard <pinard@iro.umontreal.ca>
2698 * rtapelib.c (_rmt_shutdown): Add the errno_value parameter.
2699 (__rmt_open): Call shutdown if remote open fails, or else, we lose
2701 Reported by Holger Teutsch.
2703 1995-10-20 Tom Tromey <tromey@drip.colorado.edu>
2705 * tar.c (request_stdin): New function.
2706 (stdin_used_by): New variable.
2707 (name_init, add_exclude_file, decode_options): Use request_stdin
2709 (confirm): Check stdin_used_by to see if stdin in use.
2711 * list.c (read_header): Consistently use sizeof to find size
2714 1995-08-26 François Pinard <pinard@iro.umontreal.ca>
2716 * names.c (uid_to_uname, gid_to_gname): Ensure that the empty
2717 string is returned when not found, instead of the previous one.
2719 1995-08-06 François Pinard <pinard@iro.umontreal.ca>
2721 * buffer.c (new_volume): Use stderr rather than stdlis for
2722 interactions. Clarify `archive == 0' into `archive == STDIN'.
2723 Reported by Scott Hunziker.
2725 1995-08-02 François Pinard <pinard@iro.umontreal.ca>
2727 * diffarch.c (diff_archive): When symlink differs, report the
2728 file name, not the link name.
2729 Reported by Dale R. Worley and Wolfram Wagner.
2731 1995-07-23 François Pinard <pinard@iro.umontreal.ca>
2733 * Makefile.in (Makefile): Remove some useless lines.
2735 1995-06-27 François Pinard <pinard@iro.umontreal.ca>
2737 * tar.h: Sort out declarations a little better.
2738 * tar.c (decode_options): Reorder the cases in the big switch.
2740 * tar.h: Introduce OLDGNU_COMPATIBILITY, enum archive_format,
2741 variable archive_format. Delete flag_old_archive, flag_standard.
2742 * tar.c (decode_options): Initialize archive_format so that -o
2743 yields V7_FORMAT, nothing yields OLDGNU_FORMAT, --posix yields
2744 GNU_FORMAT, and --posix with POSIXLY_CORRECT yields POSIX_FORMAT.
2745 * create.c (start_header): Use TMAGIC and TVERSION if required.
2746 Replace all flag_old_archive and flag_standard appropriately.
2748 * tar.c: Implement a --record-size option, which is an
2749 alternate way of saying --blocking-factor, in bytes this time.
2751 * tar.h, tar.c, create.c (dump_file): Implement
2752 a --no-recurse option, to help using tar with find.
2753 Reported by Chris G. Demetriou, Jamie Zawinski, Kimball
2754 Collins, Oswald P. Backus IV and Stuart Poulin.
2756 * tar.h, tar.c, buffer.c (child_open_for_compress):
2757 Delete --block-compress, issue a warning if used. It was never
2758 obeyed while outputting on disk files, where it would have been
2759 useful. It was only obeyed for pipes, remotes and devices, that
2760 is, exactly when it would be an error not to specify it.
2762 Reported by Hans Guerth, James H Caldwell Jr, Jean-loup Gailly,
2763 Jeffrey W. Parker, John D. Sybalsky, Kai Schlichting, Marcin
2764 Matuszewski, Mike Silano, Paul O'Connor, Pete Geenhuizen and
2767 * buffer.c (open_archive): Cosmetic changes.
2769 * buffer.c, diffarch.c, tar.h, update.c: Rename fl_read by
2770 flush_read and fl_write by flush_write.
2772 1995-06-26 François Pinard <pinard@iro.umontreal.ca>
2774 * tar.c (usage): Remind that `USER@' may be specified.
2775 Reported by John J. Szetela and Oliver Trepte.
2777 * tar.c (usage): Replace `modificators' by `modifiers'.
2778 Reported by Alan Modra.
2780 * extract.c (set_mode, set_stat): New functions, from
2781 previous code, elsewhere. Replace various occurrences of code
2782 appropriately with function calls. Ensure mode bits are properly
2783 set in all circumstances. This may imply calling set_mode twice.
2784 Reported by Piercarlo Grandi and Tim Magill.
2786 * extract.c: Save the whole stat information in saved
2787 directory information, instead of parts of it, all mistyped.
2788 (restore_saved_dir_info): Free information as we consume it.
2789 Simplify code by using set_mode and set_times. Rename routine to
2790 apply_delayed_set_stat, and do some other cleanup around it.
2792 * *.[hc]: Replace flag_confirm by flag_interactive,
2793 flag_do_chown by flag_same_owner,
2794 flag_exstdout by flag_to_stdout,
2795 flag_follow_links by flag_dereference,
2796 flag_gnudump by flag_incremental,
2797 flag_ignorez by flag_ignore_zeros,
2798 flag_keep by flag_keep_old_files,
2799 flag_local_filesys by flag_one_file_system,
2800 flag_modified by flag_touch,
2801 flag_multivol by flag_multi_volume,
2802 flag_namefile by flag_files_from,
2803 flag_new_files by flag_after_date,
2804 flag_oldarch by flag_old_archive,
2805 flag_reblock by flag_read_full_records,
2806 flag_run_script_at_end by flag_info_script,
2807 flag_sayblock by flag_block_number,
2808 flag_sorted_names by flag_same_order,
2809 flag_sparse_files by flag_sparse,
2810 flag_startfile by flag_starting_file,
2811 flag_use_protection by flag_same_permissions,
2812 OPTION_COMPRESS_PROG by OPTION_USE_COMPRESS_PROGRAM,
2813 flag_volhdr by volume_label,
2814 flag_compressprog by compress_program,
2815 flag_rsh_command by rsh_command,
2816 and flag_volno_file by volno_file.
2818 * tar.c: Rename --modification-time by --touch, and provide a
2819 warning for the old option.
2821 1995-06-24 François Pinard <pinard@iro.umontreal.ca>
2823 * list.c (decode_header): At extraction time, use the stored
2824 uid if uname is unknown in this system, and use the stored gid if
2825 gname is unknown in this system, instead. This solves a long
2826 lasting bug by which restored files were all owned by root, using
2827 an incomplete /etc/passwd or /etc/group file.
2828 * names.c: Rename finduname to uid_to_uname and findgname to
2829 gid_to_gname, exchanging the order of arguments. Use uid_t and
2830 gid_t instead of int's. Use empty strings in cached_[ug]name for
2831 marking there is no valid cached translation, instead of using
2832 magic values for cached_[ug]id. Rename finduid to uname_to_uid
2833 and findgid to gname_to_gid, adding a second argument to store the
2834 result if found, and returning a success/failure indication, not
2835 anymore assuming the current [ug]id by default.
2836 * tar.h, create.c, list.c: Adjust prototypes and callers.
2838 Reported by Anders Andersson, Bernard Derval, Brian Perkins,
2839 Charles Fu, Daniel Trinkle, Ian Jackson, Johannes Helander,
2840 Michael Lin, Richard Sims, Robert E. Brown, Tim P. Starrin and
2843 * tar.h, create.c, list.c, names.c, tar.c:
2844 Implement --numeric-owner, to replace the NONAMES define. Then,
2845 ensure some reasonable values to magic and linkflags if POSIX.
2846 Reported by Benedikt Stockebrand, Ian Jackson and Stephen Gildea.
2848 * buffer.c: Delete save_block function, as well as
2849 saved_block_pointer and saved_block variables. Blocks were
2850 carefully saved indeed, but never consulted after the fact.
2851 * tar.h: Delete save_block prototype.
2852 * *.c: Delete all usages of save_block.
2854 * rmt.c: Add static to variable declarations.
2855 * list.c (read_header): Rename recsum to recorded_sum.
2857 1995-06-23 François Pinard <pinard@iro.umontreal.ca>
2859 * *.[hc]: Rename --read-full-blocks to --read-full-records,
2860 --block-size to --blocking-factor, and --record-number to
2862 * tar.c (decode_options): Diagnose usage of old names.
2864 * *.[hc]: Rename saverec to save_block, findrec to
2865 find_next_block, and userec to set_next_block_after.
2866 Replace endofrecs by available_space_after which does the space
2867 computation instead of returning the end pointer, adjust and
2868 simplify all callers, by using variable data_block systematically.
2869 Also, rename union block field charptr to buffer.
2871 1995-06-22 François Pinard <pinard@iro.umontreal.ca>
2873 * *.[hc]: Exchange "record" and "block" almost everywhere and
2874 whenever appropriate, to follow the terminology used in
2875 P1003.1-1990, and so removing a lot of confusion in sources.
2877 * tar.h: Prefer naming constants and fields per P1003-1.1990 as
2878 far as possible. Rename those remaining LF_xxx to GNUTYPE_xxx.
2879 * *.c: Adjusted accordingly.
2881 * tar.h: Clean up the header structure. Make very clear what is
2882 specified by POSIX, and what is GNU format, and what is extended
2883 header for sparse files. Use xxx_FIELD_SIZE instead of NAMSIZ,
2884 TUNMLEN and TGNMLEN. Dismangle some other names, on the way...
2885 * *.c: Adjusted accordingly.
2887 * tar.h: Do not declare baserec, declare current_block_ordinal.
2888 * buffer.c (current_block_ordinal): New function.
2889 Rename baserec to record_start_block, and make it static.
2890 * list.c: Use current_block_ordinal, avoid baserec computations.
2891 * buffer.c, list.c: Get rid of saved_recno and annofile.
2893 * buffer.c, diffarch.c: Move no_op and wantbytes from
2894 buffer.c to diffarch.c. Correct prototypes so first arg is long.
2895 * tar.h: Do not declare no_op nor wantbytes, anymore.
2897 * tar.h, buffer.c: Move ar_block, ar_record and ar_last
2898 from tar.h to buffer.c, renaming them to record_start,
2899 current_block, record_end respectively.
2900 * update.c: Add temporary extern declaration for record_start,
2901 current_block and record_end.
2903 * tar.h, buffer.c: Move ar_reading from tar.h to buffer.c,
2904 renaming it to reading_archive.
2905 * diffarch.c: Add temporary extern declaration for
2908 * buffer.c, create.c, diffarch.c, extract.c, gnu.c,
2909 list.c, names.c, rmt.c, rmt.h, rtapelib.c,
2910 tar.c, update.c: Replace many #ifdef's by #if's, and
2911 #ifndef's by #if !'s.
2913 * buffer.c (redirect): New name for dupto. Callers changed.
2915 * create.c (dump_file), extract.c (extract_archive,
2916 extract_sparse_file), tar.h: Remove crumb about ending_blanks
2919 * Makefile.in (all): Do not prepare genfile by default, as it
2920 is only needed for checking.
2922 * tar.c (decode_options): Diagnose lacking arguments to old
2924 Reported by Aage Robeck, Alan Cox, Benny Holmgren, Bruno Haible,
2925 Daniel Quinlan, Michael Schmidt, Richard J. Kettlewell and Robert
2928 1995-06-21 François Pinard <pinard@iro.umontreal.ca>
2930 * rtapelib.c (__rmt_open): Avoid dereferencing remote_user
2933 Reported by Alois Steindl, Amos Yahil, Anders Liljeborg, Andre
2934 Novaes Cunha, Andreas Haumer, Andreas Reuter, Andy Gay, Bdale
2935 Garbee, Bradley A. Smith, Brett Gaines, Bruce Jerrick, Calvin
2936 Cliff, Cameron Elliott, Charles Lopes, Charles M. Hannum, Chris
2937 Metcalf, Christophe Colle, Christopher T. Johnson, Dale Wiles,
2938 David Shaw, Dimitri Bougoulias, Daniel Hagerty, Dave Gregorich,
2939 David Mansfield, David Nugent, David Shaw, David Steiner,
2940 Douglas Scott, Dunstan Vavasour, Edgar Taube, Eduardo Kortright,
2941 Elmer Fittery, Eric Benson, Eric M. Boehm, Gerd Knorr, Graham
2942 Whitted, Harald Milz, Heiko Schlichting, James V. Di Toro III,
2943 Jan Carlson, Janne Snabb, Jeff Sorensen, Jens Henrik Jensen,
2944 Jim Clausing, John J. Szetela, John R. Vanderpool, Jurgen Botz,
2945 Karl Berry, Karlos Z. Smith, Karsten Thygesen, Koji Kishi,
2946 Luke Mewburn, Manuel Munier, Marc Ewing, Matthew J. D'Errico,
2947 Martin Goik, Maxime Taksar, maximum entropy, Michael Hayes,
2948 Michael Schwingen, Michael Smolsky, Michael Kaufman, Mike Walker,
2949 Minh Tran-Le, Mitsuaki Masuhara, Nelson H. F. Beebe, Noel Cragg,
2950 Olaf Wucknitz, Oliver Trepte, Olivier Roussel, Patrick Fulconis,
2951 Paul Kanz, Paul Nordstrom, Pekka Janhunen, Peter Carah, Peter
2952 Kutschera, Phil Hands, Randy Bias, Reuben J. Ravago, Ricardo
2953 Marek, Robert Anthony Nader, Rod Buchanan, Roderich Schupp,
2954 Russell Cattelan, Scott J. Kramer, Scott L. Burson, Simon
2955 Wright, Sisira Jayasinghe, Steffen Stempel, Thomas M. Browder
2956 Jr., Thomas Waas, Tim Bradshaw, Tim Lashua, Timothy J. Lee, Tom
2957 Popovitch, Toshiaki Nishi, Victor J. Griswold, Wayne Christopher,
2958 William J. Eaton, Wlodzimierz Jan Martin, Wolfgang Rupprecht
2961 * tar.h: Remove external prototypes related to rtapelib.c, as
2962 those are already declared in rmt.h.
2964 1995-06-18 François Pinard <pinard@iro.umontreal.ca>
2966 * buffer.c (xclose): New, from port.c (ck_close).
2967 Replace ck_close by xclose in all modules.
2968 * port.c: Remove ck_close.
2970 * port.c: Remove ck_malloc, because xmalloc can be used
2971 instead, now that it protects against malloc(0) returning NULL.
2972 * gnu.c (gnu_restore), list.c (read_header): Replace
2973 ck_malloc with xmalloc. In gnu_restore, remove skipping code in
2974 case of failed allocation, because tar already aborted in xmalloc.
2975 * tar.h: Delete ck_malloc declaration.
2977 * port.c: Remove mknod, link, chown and geteuid, which
2978 normally exist on Unix. To be reinserted later, as needed.
2979 Reported by Jyh-Shyang Wang, Nelson H. F. Beebe, Philippe Defert
2982 * tar.c: Declare TTY_NAME, moved over from port.c.
2984 * extract.c (extract_archive), tar.c (decode_options):
2985 Clean out old NO_OPEN3 code.
2986 * Makefile.in: Adjusted.
2988 * buffer.c (child_open): In-line previous ck_pipe code.
2989 * tar.h: Delete ck_pipe declaration.
2990 * port.c: Delete ck_pipe function.
2992 * misc.c: New, reorganizing remaining code from port.c.
2994 * Makefile.in: Adjusted.
2996 * misc.c (un_quote_string): If `\' ends a string to unquote,
2997 just pass it undisturbed.
3000 * system.h: Replace many #ifdef by #if, #ifndef by #if !.
3002 1995-06-17 François Pinard <pinard@iro.umontreal.ca>
3006 * Makefile.in (mostlyclean): Remove also _*.c and _*.o.
3008 * create.c (dump_file), gnu.c (get_dir_contents): Cast
3009 (int) explicitely for test.
3011 * Makefile.in ($(OBJECTS)): Depend on ../intl/libgettext.h
3012 instead of ../intl/libintl.h, which does not always exist.
3014 * genfile.c: Define EXIT_SUCCESS and EXIT_FAILURE if not.
3015 * tar.c (main): Use TAREXIT_SUCCESS instead of EXIT_SUCCESS.
3017 * tar.h: Use off_t instead of long for the second argument in
3018 __rmt_lseek declaration.
3019 * system.h: Remove typedef of off_t, because AC_TYPE_OFF_T
3020 takes care of it now.
3021 Reported by Coranth Gryphon, Jim Blandy and Thomas Krebs.
3023 1995-06-15 François Pinard <pinard@iro.umontreal.ca>
3025 * checktar.sh: Send a message saying that it is still useless.
3027 1995-06-11 François Pinard <pinard@iro.umontreal.ca>
3029 * tar.h, tar.c (decode_options), extract.c
3030 (extract_archive), diffarch.c (diff_archive), create.c
3031 (dump_file, start_header), tar.c (decode_options): Replace
3032 flag_absolute_paths by flag_absolute_names.
3033 * tar.c (decode_options): Implement OBSOLETE_ABSOLUTE_NAMES for
3034 reporting --absolute-paths as obsolete.
3036 * system.h: Conditionnaly include <locale.h> and define
3037 setlocale to void independently of ENABLE_NLS.
3038 Reported by Ulrich Drepper.
3040 1995-06-10 François Pinard <pinard@iro.umontreal.ca>
3042 * tar.c (long_options): Use no_argument and require_argument,
3043 instead of constants. Have long option names translated to short
3044 options whenever possible, rather than setting flags directly:
3045 easing option management is worth a few extra nanoseconds.
3047 * tar.c (long_options): Add --gunzip as meaning -z.
3048 Reported by Bruno Haible.
3050 1995-06-07 François Pinard <pinard@iro.umontreal.ca>
3052 * Makefile.in: Use subdir and distdir.
3054 * system.h [NLS]: Simplify by merely including <libintl.h>.
3055 Also, define setlocale to empty only if the setlocale function is
3056 not known, instead of when <locale.h> is missing.
3057 * Makefile.in (INCLUDES): Use ../intl in compilations,
3058 taking care of the fact libintl.h might have been symlinked there.
3060 1995-06-05 François Pinard <pinard@iro.umontreal.ca>
3062 * tar.c, tar.h: Rename TAR_EXTERN to GLOBAL.
3064 * tar.h: Delete COMMAND_VERSION.
3065 * tar.c: Replace OPTION_HELP and OPTION_VERSION commands by
3066 show_help and show_version variables, so `--version --create' will
3067 not diagnose `Too many commands'. Adjust things so this works.
3068 Reported by Marty Leisner.
3070 1995-06-04 François Pinard <pinard@iro.umontreal.ca>
3072 * Makefile.in (check): New goal.
3073 * checktar.sh: New script.
3074 * genfile.c: New file.
3075 * Makefile.in (all): Prepare genfile.
3076 * Makefile.in: Distribute checktar.sh and genfile.c.
3078 1995-06-03 François Pinard <pinard@iro.umontreal.ca>
3080 * tar.h: Adjust so extracted doc/header.texi is neater.
3082 1995-05-30 François Pinard <pinard@iro.umontreal.ca>
3084 * tar.c (name_match): Use %s for printing directory, not %d.
3085 Reported by Marty Leisner.
3087 * tar.c (name_gather, addname): chdir_name receives string
3088 pointers which might later be overwritten, but nevertheless saved
3089 into structures, so, use xstrdup for the time being.
3090 Reported by Michael Holmes.
3092 * tar.c (name_next, name_from_list): Abort when chdir fails.
3093 Reported by Ian Jackson and Marty Leisner.
3095 1995-05-28 François Pinard <pinard@iro.umontreal.ca>
3097 * rmt.h: Declare second argument of __rmt_lseek to be off_t
3098 instead of long, so it is the same as in rmt.c.
3099 Reported by Chris Arthur.
3101 * buffer.c (close_archive): Compensate for the addition of 2
3102 to ar_block at open_archive time, for when -M used, just before
3104 Reported by Bruno Haible, Clinton Carr, Hernan Prieto Schmidt,
3105 Kevin Dalley, Loren J. Rittle and Marty Leisner.
3107 * rmt.c: Replace SSIZE by STRING_SIZE, avoiding a conflict
3108 with some header files.
3109 Reported by Kaveh R. Ghazi and William Bader.
3111 * tar.c: Use DEVICE_PREFIX instead of DEVICE_PREXIX, and
3112 WITH_REGEX instead of WITH_REGEC.
3113 Reported by Bruno Haible.
3115 1995-05-16 François Pinard <pinard@iro.umontreal.ca>
3117 * Prerelease 1.11.7.
3119 * Makefile.in (tar): Have $(OBJECTS) depend on system.h.
3121 * system.h: Many adjustements for GNU gettext.
3123 1995-05-09 François Pinard <pinard@iro.umontreal.ca>
3125 * Makefile.in: Clean glocale out.
3127 1995-05-08 François Pinard <pinard@iro.umontreal.ca>
3129 * Makefile.in: Use libintl.a while linking.
3130 * system.h: Include <libintl.h> unconditionally, instead only
3131 if WITH_CATALOG. Let <libintl.h> define _() appropriately.
3132 * tar.c (main): Call textdomain.
3134 1995-05-02 François Pinard <pinard@iro.umontreal.ca>
3136 * system.h, gnu.c, list.c, port.c: Avoid
3137 superfluous parentheses in macro definitions.
3138 * port.c: Capitalize macro arguments.
3139 * buffer.c, create.c, diffarch.c, tar.c: Use comma
3140 operator when assignment in test.
3142 1995-04-27 François Pinard <pinard@iro.umontreal.ca>
3144 * port.c (link): Use WARN to report the message.
3145 Reported by Sherwood Botsford.
3147 1995-03-19 François Pinard <pinard@iro.umontreal.ca>
3149 * Makefile.in: Remove GLOCALE, add LINGUAS, use fp_WITH_CATALOGS.
3150 * system.h: Use WITH_CATALOGS to define _() differently.
3152 1995-03-14 François Pinard <pinard@iro.umontreal.ca>
3154 * rtapelib.c (__rmt_open): Close the unused side of each
3155 pipe, instead of the useful one, prior to processing.
3156 Reported by Charles Lopes and Minh Tran-Le.
3158 1995-02-22 François Pinard <pinard@iro.umontreal.ca>
3160 * Makefile.in: Replace `date' by `echo timestamp'.
3162 1995-02-19 François Pinard <pinard@iro.umontreal.ca>
3164 * Makefile.in: Support ID files. Do not distribute TAGS.
3166 1995-02-13 François Pinard <pinard@iro.umontreal.ca>
3168 * Makefile.in: Use top_srcdir.
3170 1995-02-11 François Pinard <pinard@iro.umontreal.ca>
3172 * gnu.c (is_dot_or_dotdot): Through NFS, readdir might deliver
3173 empty filenames under old Solaris 2.4, causing endless loops in
3174 tar. As a workaround, avoid `' as done already for `.' and `..'.
3175 Reported by Jan Carlson.
3177 1995-02-05 François Pinard <pinard@iro.umontreal.ca>
3179 * Makefile.in (maintainer-clean): New name for realclean.
3181 1995-01-04 François Pinard <pinard@iro.umontreal.ca>
3183 * extract.c (make_dirs) [MSDOS]: Correct for Turbo C, which may
3184 return EACCES instead of EEXIST on mkdir.
3185 Reported by Jeffrey Goldberg.
3187 * tar.c (usage) [MSDOS]: Do not tell about -N and related.
3188 (decode_options) [MSDOS]: Be blind to -N and related.
3189 Reported by Jeffrey Goldberg.
3191 * rmt.h (_remdev): A filename is not remote if the colon is
3192 preceeded by a slash, to take care of `/:/' which is a shorthand
3193 for `/.../<CELL-NAME>/fs' on OSF's Distributing Computing
3194 Environment (DCE) and Distributed File System (DFS).
3195 Reported by Travis L. Priest.
3197 1995-01-03 François Pinard <pinard@iro.umontreal.ca>
3199 * tar.c (decode_options): Renamed from options. Convert
3200 oldish-style non-dashed options to modern writing before
3201 performing option decoding. Diagnose when modern options are met
3202 before old style options are fully converted. This allows
3203 mixing of option styles on a single call. Avoid getoldopt and
3204 use getopt_long instead.
3205 * getoldopt.c: Deleted.
3206 * tar.h: Prototype deleted.
3207 * Makefile.in: Adjusted.
3208 Reported by Bruno Haible, Les Mikesell, Patrick Timmons and Saul
3211 1995-01-02 François Pinard <pinard@iro.umontreal.ca>
3213 * system.h: New file, split out of tar.h.
3214 * buffer.c, create.c, diffarch.c, extract.c,
3215 getoldopt.c, gnu.c, list.c, mangle.c, names.c,
3216 port.c, tar.c, update.c: Include "system.h", and move
3217 the inclusion of "tar.h" down after system dependent definitions.
3218 * Makefile.in: Distribute system.h.
3220 * rmt.c: Include "system.h", and simplify accordingly.
3221 * rtapelib.c: Include "system.h", and simplify accordingly.
3222 * rmt.h: Simplify according to the inclusion of "system.h".
3224 * system.h: Include conditionnaly <sys/gentape.h>,
3225 <sys/tape.h>, <sys/mtio.h>, <sys/ioctl.h> and <sys/io/trioctl.h>.
3226 * buffer.c, diffarch.c, rmt.c, rtapelib.c,
3227 update.c: Simplify accordingly.
3229 * system.h: If it exists, include <sys/ioccom.h> prior to
3230 <sys/mtio.h>, to account for problems when GNU libc 1.0x is
3231 installed over SunOS 4.1.3: GNU libc does not provide sys/mtio.h,
3232 so it is taken from Sun header files which use things like _IOW,
3233 which GNU libc despises, sys/ioccom.h then provides definitions.
3234 Reported by Joseph E. Sacco.
3236 1994-12-27 François Pinard <pinard@iro.umontreal.ca>
3238 * rmt.h: Ensure strrchr is defined to rindex in some cases.
3239 Reported by Karl Vogel.
3241 1994-12-18 François Pinard <pinard@iro.umontreal.ca>
3243 * tar.h: Include <ctype.c> and declare ISASCII.
3244 * gnu.c: Adjust, declare and use ISDIGIT and ISSPACE.
3245 * list.c: Adjust, declare and use ISODIGIT and ISSPACE.
3246 * port.c: Adjust, declare and use ISPRINT.
3247 Reported by Bruno Haible, Konno Hiroharu and Max Hailperin.
3249 1994-12-11 François Pinard <pinard@iro.umontreal.ca>
3251 * buffer.c, tar.c [WITH_REGEX]: Check it.
3253 1994-12-03 François Pinard <pinard@iro.umontreal.ca>
3255 * Prerelease 1.11.6.
3257 * rmt.c: Adjust for localization, by including <locale.h> and
3258 <libintl.h>, by defining _(), by defining and calling setlocale,
3259 and by defining and initializing program_name.
3260 * Makefile.in: Use locale.o and libtar.a with rmt.
3262 * Makefile.in: Ensure INSTALL_DATA is defined.
3264 * Makefile.in, tar.h, tar.c:
3265 Localize, adapting from how it is done in sharutils.
3267 * Makefile.in, tar.c: Rename PRODUCT to PACKAGE.
3269 1994-11-29 François Pinard <pinard@iro.umontreal.ca>
3271 * buffer.c (backspace_output): Change cur from long to off_t.
3272 * diffarch.c (diff_archive): Idem for offset.
3273 * extract.c (extract_archive): Idem for offset.
3274 * rmt.c: Idem for lseek ().
3275 (main): For case 'L', use atol instead of atoi, and cast the
3276 result to (off_t) rather than (long).
3277 * rtapelib.c (__rmt_lseek): Idem of offset argument.
3278 * tar.h: Change offset of sp_array from int to off_t.
3279 * update.c (move_arch): Change cur from long to off_t.
3280 Reported by David J. MacKenzie.
3282 1994-11-26 François Pinard <pinard@iro.umontreal.ca>
3284 * rmt.h, tar.h, buffer.c, create.c,
3285 diffarch.c, extract.c, gnu.c, list.c,
3286 rtapelib.c, update.c: Rename _ to __P.
3287 * tar.h, rmt.h: Declare _ as a macro returning its
3288 argument, or else, include <libintl.h> and declare _ as gettext.
3289 * tar.c: Possibly include <locale.h> and call setlocale.
3290 * rmt.c, buffer.c, create.c, diffarch.c,
3291 extract.c, getoldopt.c, gnu.c, list.c,
3292 mangle.c, port.c, rtapelib.c, tar.c,
3293 update.c: Use _ macro over all localizable strings.
3295 * rtapelib.c: Declare prototype for xstrdup. Do not declare
3296 strstr, which is not needed.
3298 1994-11-01 François Pinard <pinard@iro.umontreal.ca>
3300 * Makefile.in: Clean up, following those of GNU m4. I will
3301 not detail all the changes here.
3302 * tar.c: Use PRODUCT and VERSION instead of version_string.
3304 1994-10-30 François Pinard <pinard@iro.umontreal.ca>
3306 * tar.h [__STDC__]: Use #if instead of #ifdef.
3308 1994-10-27 François Pinard <pinard@iro.umontreal.ca>
3310 * rmt.h, tar.h, buffer.c, create.c, diffarch.c,
3311 extract.c, gnu.c, list.c, mangle.c, tar.c,
3312 update.c: Rename all f_* variables to flag_*.
3314 * tar.h, buffer.c, tar.c, update.c: Rename cmd_mode into command_mode.
3315 * tar.c (SET_COMMAND_MODE): New macro, use it.
3317 * port.c (quote_copy_string): Prevent sign extension of
3318 character while copying it to an int.
3319 * (un_quote_string): Increment to_there pointer in all cases.
3320 Reported by Konno Hiroharu, Mats Lofkvist, Max Hailperin and
3323 1994-10-09 François Pinard <pinard@iro.umontreal.ca>
3325 * rmt.c, rtapelib.c, tar.h: Get rid of CONFIG_BROKETS.
3327 1994-10-04 François Pinard <pinard@iro.umontreal.ca>
3329 * diffarch.c (fill_in_sparse_array): Add a cast for Pyramid's
3330 dumb compiler. Later remove the cast and compare to 0 instead.
3331 * extract.c (extract_archive): Idem.
3332 Reported by Karl Vogel and Kaveh R. Ghazi.
3334 1994-09-27 François Pinard <pinard@iro.umontreal.ca>
3336 * diffarch.c: Normalize capitalization in diagnostics.
3338 1994-09-26 François Pinard <pinard@iro.umontreal.ca>
3340 * tar.c (name_next, name_match): Abort tar if directory cannot
3341 be changed, instead of going on. This is not an innocuous error.
3342 Reported by Marty Leisner.
3344 1994-09-15 François Pinard <pinard@iro.umontreal.ca>
3346 * rtapelib.c: Include "rmt.h" only once <sys/types.h> has been
3347 included, because off_t might not be defined otherwise.
3348 Reported by James W. McKelvey, John L. Chmielewski, Karl
3349 Vogel, Kaveh R. Ghazi an and Jim Meyering and Tilman Schmidt.
3351 1994-09-14 François Pinard <pinard@iro.umontreal.ca>
3353 * Makefile.in: Cleanup...
3354 (DISTFILES): Distribute TAGS.
3355 (ansi2knr): Use $(LIBS).
3356 (TAGS): Make TAGS in $(srcdir) only.
3357 (distclean): Do not remove TAGS.
3358 (realclean): Remove TAGS.
3359 (Makefile): Have ./config.status create this Makefile only.
3361 1994-09-13 François Pinard <pinard@iro.umontreal.ca>
3363 * buffer.c: Remove the presetting of stdlis, because stdout is
3364 not a constant in GNU libc.
3365 Reported by Joseph E. Sacco and Thomas Bushnell n/BSG.
3367 * buffer.c (new_volume): Pass an otherwise unused argument to
3368 wait, do not use NULL.
3369 Reported by Thomas Bushnell n/BSG.
3371 1994-09-05 François Pinard <pinard@iro.umontreal.ca>
3373 * Makefile.in (TAGS): Remove -t on etags call. It has been
3374 the default behavior for a few releases of Emacs and it seems that
3375 option -t is now disappearing (from Emacs 19.25, at least).
3376 Reported by Goeran Uddeborg.
3378 1994-09-02 François Pinard <pinard@iro.umontreal.ca>
3380 * gnu.c (get_dir_contents): Do not set dp->allnew if dp is not
3382 Reported by Piercarlo Grandi.
3384 * extract.c (extract_archive): Issue diagnostic or verbose
3385 messages to msg_file, instead of stdout.
3386 Reported by Piercarlo Grandi.
3388 1994-08-23 François Pinard <pinard@iro.umontreal.ca>
3390 * tar.h: Do not declare alloca if already defined, so HP's
3391 +Olibcalls compiler option works.
3392 Reported by John David Anglin.
3394 * rtapelib.c (__rmt_open): Use REMOTE_SHELL only if defined.
3395 Otherwise, if the command argument has been specified and
3396 REMOTE_SHELL is not defined, immediately return an error.
3397 Reported by Bruno Haible, Kaveh R. Ghazi, Marty Leisner,
3398 Torkel Hasle and William Bader.
3400 Because --rsh-command may always be given, even if no remote shell
3401 was found at configure time, remote capabilities are always
3402 compiled. This also solve other problems related to RTAPELIB.
3403 * Makefile.in: Always compile $Urtapelib.o.
3404 * buffer.c (child_open): Always test _remdev, do not depend
3405 anymore on HAVE_RTAPELIB.
3406 * rmt.h [!HAVE_RTAPELIB]: Remove some code.
3407 Reported by Andreas Schwab and Vic Abell.
3409 * rtapelib.c: Remove unused COMPAT (mis)feature. Remove most
3410 length limitations for remote host name, remote user name and
3411 remote device name. Duplicate path, and free it in all cases.
3412 * (_rmt_rexec): The `user' parameter may never by the empty
3413 string. Remove code for that case.
3415 1994-08-22 François Pinard <pinard@iro.umontreal.ca>
3417 Little cleanup in installation:
3418 * Makefile.in: Remove rule for ../lib/libtar.a.
3420 1994-08-21 François Pinard <pinard@iro.umontreal.ca>
3422 * Prerelease 1.11.5.
3424 * Makefile.in: Correct for when a different build directory.
3426 * tar.h: Replace W* definitions. Adapted from make 3.71.
3427 * buffer.c (close_archive): Replace WIFCOREDUMPED by
3428 WCOREDUMP. Previous WIFSIGNALED definition was excluding SIGSTOP,
3429 new definition do not exclude it anymore. We'll see.
3430 Reported by Demizu Noritoshi, Greg Black, Kaveh R. Ghazi,
3431 Robert E. Brown and Russ Evans.
3433 1994-08-20 François Pinard <pinard@iro.umontreal.ca>
3435 This might (?) solve the dirent problems on NeXT's and Apollo's:
3436 * tar.h: Change includes and defines from older AC_DIR_HEADER
3437 style to newer and clearer AC_HEADER_DIRENT style.
3438 * create.c, gnu.c: Replace NLENGTH by NAMLEN.
3439 Reported by Drew Trieger, Hugh Secker-Walker, James W. McKelvey,
3440 Robert E. Brown and Thomas Krebs.
3442 1994-08-17 François Pinard <pinard@iro.umontreal.ca>
3444 Remove some shadowings.
3445 * update.c (update_archive): Rename head_standard to unused.
3446 * buffer.c (open_archive): Rename head to label.
3447 (fl_read): Rename head to cursor.
3449 * gnu.c (dirent_cmp): Use (char *const *), not (const char **)
3450 for not loosing the const specifier while casting.
3452 * mangle.c (extract_mangle): Remove unused argument.
3453 * tar.h: Adjust prototype.
3454 * extract.c (extract_archive): Caller changed.
3456 * rtapelib.c (__rmt_open): Remove useless mode parameter.
3457 * rmt.h, tar.h: Adjust prototype.
3458 * rmt.h: Adjust macros calling __rmt_open.
3459 * create.c (deal_with_sparse): Remove unused argument.
3460 * create.c (dump_file): Caller changed.
3461 Reported by Greg Black.
3463 * Makefile.in: Avoid $U in defining RTAPELIB. Remove both
3464 rtapelib.o and _urtapelib.o explicit rules, not needed anymore.
3465 * rmt.h, buffer.c [HAVE_RTAPELIB]: Instead of !NO_REMOTE.
3466 Reported by Andreas Schwab.
3468 * Makefile.in: Correct a typo in $Ubuffer.o dependencies.
3469 Reported by Andreas Schwab.
3471 * rtapelib.c (__rmt_ioctl): Compile the MTIOCGET case only if
3472 this symbol is defined. This also solves a missing mt_type field
3473 on NS32016 running SysVr2.2.
3474 Reported by Greg Black.
3476 * rtapelib.c (__rmt_ioctl) : Conditionnalize only the MTIOCTOP
3477 case, not the whole routine, with the MTIOCTOP symbol. In case of
3478 unrecognized operation, return EOPNOTSUPP instead of EINVAL.
3479 * rmt.h: Always provide a prototype for __rmt_ioctl. Delete
3480 the RMTIOCTL machinery.
3482 1994-08-16 François Pinard <pinard@iro.umontreal.ca>
3484 * rmt.c, buffer.c: Use a more uniform way of including
3485 <sys/mtio.h> or its alternates.
3486 Reported by Daniel R. Guilderson and Kaveh R. Ghazi.
3488 * Makefile.in: Split rule for $Urtapelib.o into one rule for
3489 rtapelib.o and one rule for _rtapelib.o, taking care of the fact
3490 that rtapelib.c is in $(srcdir) while _rtapelib.c is in current
3492 Reported by Andreas Schwab, Kaveh R. Ghazi, Minh Tran-Le and
3495 * rmt.c (string_error): Correct DEBUG2 into DEBUG1, and strint
3497 Reported by Anders Andersson, Bruno Haible, Thomas Krebs and
3500 * Makefile.in: Add $U's to rtapelib and rmt specific rules.
3501 Reported by Thomas König.
3503 1994-08-15 François Pinard <pinard@iro.umontreal.ca>
3505 * Prerelease 1.11.4.
3507 * rmt.c (numeric_error): Renamed from error.
3508 (string_error): New, to replace ERROR ((...)), unavailable in rmt.c.
3510 * rmt.c (checkbuf): Do not accept, nor return record. Use the
3511 global instead. This will get rid of useless shadowings.
3513 * rmt.h: Give prototypes for __rmt_* routines.
3514 * rtapelib.c: Include "rmt.h".
3515 * update.c (move_arch): Cast last rmtioctl argument to char *.
3516 * buffer.c (backspace_output): Idem.
3517 * diffarch.c (verify_volume): Idem.
3519 * Makefile.in (rmt): Declare dependencies over rmt.h.
3521 1994-08-14 François Pinard <pinard@iro.umontreal.ca>
3523 * rtapelib.c: Use MTIO_CHECK_FIELD instead of mt_type.
3524 Reported by Ben A. Mesander.
3526 1994-08-13 François Pinard <pinard@iro.umontreal.ca>
3528 * tar.h: Include <sys/wait.h> if it exists, whether POSIX or not.
3529 Check if WIFSTOPPED is defined, to decide if defining others WIF*.
3530 Reported by Bruno Haible.
3532 1994-08-11 François Pinard <pinard@iro.umontreal.ca>
3534 * extract.c (extract_archive) [O_CTG]: Declare longname variable.
3535 Initialize it as NULL. This dirty kludge will allow the module to
3536 compile on Masscomp's, for the time being.
3537 Reported by Ben A. Mesander.
3539 * tar.h, rtapelib.c: Declare strstr if we replaced it.
3540 Reported by Ben A. Mesander, Christian T. Dum and Kaveh R. Ghazi.
3542 1994-08-10 François Pinard <pinard@iro.umontreal.ca>
3544 * create.c (dump_file): Do not test only for hpux, but also
3545 for __hpux. I added __hpux__ too, as done in tar.h.
3546 Reported by Richard Lloyd.
3548 * tar.h: Do not include <sys/mknod.h> anymore for HP-UX from
3549 HP-UX 8 and after, for which definitions are in <sys/sysmacros.h>,
3550 and reorganize the tests in this area.
3551 Reported by Christian T. Dum, Dimitris Fousekis, Kimmy Posey,
3552 Michael Maass, Richard Lloyd and Thomas König.
3554 1994-08-09 François Pinard <pinard@iro.umontreal.ca>
3556 These changes for const-cleaning gnu.c and tar.c:
3557 * tar.c (read_name_from_file): Work directly on global
3558 variables instead of accepting parameters. Return success or
3559 failure as an int instead of the relocated name_buffer.
3560 (name_next): Caller changed, internal clean-up of the function.
3561 Remove trailing slashes on the command call too, not only when
3562 reading from a file through -T option.
3563 * gnu.c: Add const to name and dir_text in struct dirname.
3564 Reported by Ben A. Mesander, Bruno Haible, Christian T. Dum,
3565 Dean Gaudet, James W. McKelvey, Richard Lloyd and Robert E. Brown.
3567 1994-08-08 François Pinard <pinard@iro.umontreal.ca>
3569 * tar.c (name_next, name_gather, addname): Use strcmp for
3570 checking for "-C", instead of decomposed tests, just for clarity.
3572 * Makefile.in (RSH): Define from configuration.
3573 (rtapelib.o): Define REMOTE_SHELL from $(RSH) while compiling.
3574 * rtapelib.c (__rmt_open): If command not given, use
3575 REMOTE_SHELL, instead of cascading tries of filenames.
3576 Reported by Bruno Haible.
3578 * tar.c: Include <fnmatch.h> if FNM_LEADING_DIR is not
3579 defined, instead of checking for FNM_PATHNAME, because some
3580 <unistd.h> define the later without defining the former.
3581 Reported by Thomas König.
3583 * create.c (dump_file): Cast alloca results, for those
3584 compilers not processing void * properly.
3585 Reported by Kaveh R. Ghazi.
3587 * Makefile.in: Get prefix and exec_prefix from configure.
3588 Reported by Andreas Schwab, Christian T. Dum and Dean Gaudet.
3590 * src/port.c: Delete mkdir (and rmdir), rename, strstr and
3591 ftruncate replacements.
3592 Reported by Kaveh R. Ghazi (for memset and strstr).
3593 Reported by Bruno Haible (for mkdir and rename).
3595 1994-08-05 François Pinard <pinard@iro.umontreal.ca>
3597 * tar.h: Replace msg_file by stdlis.
3598 * buffer.c, gnu.c, list.c, diffarch.c: Idem.
3600 * tar.c (main): Print version on stdout, not stderr.
3602 * tar.h: Unconditionnaly insert the pad. Why play the game of
3603 forcing the compiler to do it for us? (Hum! I'm not so sure.)
3604 Reported by Bruno Haible.
3606 * list.c (read_header): Initialize signed_sum to 0. Use this
3607 opportunity for slightly reorganizing the code around.
3608 Reported by Anders Andersson, Andrey A. Chernov, Bruno Haible
3611 * tar.c: Declare name_buffer_length as size_t instead of int.
3612 Reported by Andreas Schwab, J.T. Conklin, Kaveh R. Ghazi and
3615 * rmt.h: Have the NO_REMOTE case be a particular case of the
3616 other, for rmtopen and rmtcreat were not transmitting the proper
3617 number of parameters to open and creat (since 26 July 1994).
3618 Reported by Andreas Schwab.
3620 * extract.c (extract_archive): Delay changing owner to after
3621 doing utime, for keeping long enough the permission of utime'ing.
3622 (extract_archive, restore_saved_dir_info): Idem for directories.
3623 Reported by Jonathan I. Kamens.
3625 * tar.h: Change malloc_dbg to dmalloc, mutatis mutandis.
3627 * tar.h: Undefine many macros if stat macros found to be
3628 broken. Define mkfifo only if configure did not find it.
3629 Include <sys/param.h> if not _POSIX_SOURCE, then <unistd.h> if
3630 we have it, than "pathmax.h". Move _POSIX_VERSION dependent
3631 code further down. Do not declare getcwd if we do not have it.
3632 * tar.c: Do not include <unistd.h>, now in "tar.h".
3633 Reported by Bernard Chen, Jean-Michel Soenen, John L.
3634 Chmielewski and Kaveh R. Ghazi.
3636 * tar.h: Define DEV_BSIZE, ST_BLKSIZE and ST_NBLOCKS,
3637 borrowing this code from both fileutils-3.9's "lib/system.h" and
3638 textutils-1.9's "system.h".
3639 * create.c (dump_file): Straighten the test for sparseness,
3640 which was requiring one block too much, most probably for trying
3641 to get around DEV_BSIZE/st_blksize confusion. Use ST_NBLOCKS,
3642 instead of computing a variable block_size and doing specific
3643 tests for HP-UX or Linux. Also rewrite the test so it works
3644 when ST_NBLOCKS is unsigned.
3645 Reported by Bruno Haible, Dean Gaudet, Dick Streefland, Harald
3646 König, Jim Meyering, Kai Petzke, Kaveh R. Ghazi and Torkel Hasle.
3648 1994-08-04 François Pinard <pinard@iro.umontreal.ca>
3650 * tar.c: Do not include <unistd.h> if we do not have it.
3651 Reported by Kaveh R. Ghazi.
3653 * Makefile.in (RTAPELIB): Prefix by $U for unprotoization.
3654 Reported by Kaveh R. Ghazi and Christian T. Dum.
3656 * port.c: Remove many static specifiers.
3657 Reported by Demizu Noritoshi, Kaveh R. Ghazi and William Bader.
3659 * rtapelib.c (__rmt_open): Replace system by remote, twice.
3660 Reported by Ben A. Mesander, Christian T. Dum, Demizu Noritoshi
3663 * tar.c (addname): Replace a forgotten EX_SYSTEM by
3665 Reported by Demizu Noritoshi, James W. McKelvey, Kaveh R.
3666 Ghazi and Robert E. Brown.
3668 1994-08-02 François Pinard <pinard@iro.umontreal.ca>
3670 * Prerelease 1.11.3.
3672 * tar.c (assign_string): New routines.
3673 * create.c (dump_file, start_header), extract.c
3674 (extract_archive), list.c (list_archive, read_header),
3675 buffer.c (open_archive), diffarch.c (diff_archive): Use
3676 assign_string for setting these variables to a string value or
3678 * buffer.c (open_archive): Sets current_file_name,
3679 current_link_name and save_name to NULL.
3680 (close_archive): Free each of them if not NULL.
3681 (fl_write): Take a copy of save_name into cursor, and advance the
3682 cursor instead, because save_name should stay free-able.
3683 Reported by Dave Gentzel, Harald Anlauf, Mark Clements, Robert
3684 Weissenfels, Ronald van Loon, Tsutomu Yamada and Vic Abell.
3686 * extract.c (extract_archive): Use xstrdup, for clarity.
3687 * gnu.c (add_dir): Idem.
3689 * list.c (print_header): Correct a little bug by which
3690 non-symbolic links were not printed properly quoted.
3692 * diffarch.c (diff_archive): Allocate tmpbuf to the proper
3693 size. NAMSIZ + 2 is not necessarily enough.
3695 1994-08-01 François Pinard <pinard@iro.umontreal.ca>
3697 * tar.h: Refresh str*/mem* configured declarations. Among
3698 other things, this will solve previously missing #undef's.
3699 * rmt.h: Revise strchr configured declaration.
3700 * *.c: Replace bzero by memset, bcopy by memcpy, bcmp by
3701 memcmp, index by strchr and rindex by strrchr.
3702 * port.c: Delete functions bzero and bcmp, said to not exist
3703 on Minix. AC_MINIX in configure.in should guarantee POSIX things.
3704 Reported by Drew Trieger, Hugh Secker-Walker and Vic Abell.
3706 * tar.h, tar.c, buffer.c, update.c: Change CMD_* to COMMAND_*.
3708 * buffer.c (open_archive): Use strcmp to compare archive name
3709 to `-', instead of doing it explicitely. Just for clarity.
3711 * tar.h, tar.c, buffer.c: Replace ar_files by
3712 archive_name_array, n_ar_files by archive_names and ar_files_len
3713 by allocated_archive_names. Replace the index cur_ar_file by
3714 archive_name_cursor, which is a cursor in archive_name_array.
3716 * tar.c (main): Move the initialization of
3717 archive_name_array at beginning, taken from options routine.
3718 Free it at end of main.
3719 (options): Use xrealloc instead of ck_realloc for archive_name,
3720 for the already saved names to be preserved.
3721 Reported by Per Bojsen.
3723 * tar.h, tar.c: Replace name_file by namefile_name.
3724 * tar.c: Replace n_ind by name_array, n_indused by names,
3725 n_indalloc by allocated_names, and n_indscan by name_index.
3726 Replace namef by name_file, n_argv by names_argv and n_argc by
3728 (main): Make an initial allocation for name_array at beginning,
3729 moved out from name_add, free it at end of main.
3731 * buffer.c (close_archive): Free ar_block at end.
3733 1994-07-30 François Pinard <pinard@iro.umontreal.ca>
3735 * tar.h [WITH_MALLOC_DBG]: Include "malloc_dbg.h".
3737 * create.c (create_archive): Do not attempt creating a
3738 directory summary file if -G, since -G sets gnu_dumpfile to 0.
3739 Reported by Alexander Dupuy.
3741 * create.c (dump_file): Avoid a NULL dereference with -G when
3742 trying to dump an empty directory.
3743 * gnu.c (add_dir_name): Same thing.
3744 Reported by Rainer Orth.
3746 Correction for the improper `data differs' diagnostic given when
3747 the continuation of a multi-volume was compared.
3748 * diffarch.c (diff_archive): If multi-volume, update save_name
3749 and save_totsize before calling wantbytes.
3750 * buffer.c (wantbytes): If multi-volume, update save_sizeleft.
3751 Reported by Andreas Schwab, Denis Fortin, François Pinard,
3752 Hiroyuki Bessho, Olaf Schlueter, Simon Wright and Saul Lubkin.
3754 1994-07-30 François Pinard <pinard@iro.umontreal.ca>
3756 * tar.c (options): Implement DEVICE_PREFIX and DENSITY_LETTER.
3757 Reported by Danny R. Johnston.
3759 * gnu.c (gnu_restore): Use CURRENT_FILE_NAME abbreviation.
3760 * extract.c (extract_archive): Idem.
3761 Reported by Timothy Fossum.
3763 1994-07-29 François Pinard <pinard@iro.umontreal.ca>
3765 * create.c (dump_file): Abort if no memory for a possible
3766 link, remove related bogus code, and the variable nolinks.
3767 Reported by Andreas Schwab.
3769 * create.c (dump_file): Detect file sparseness correctly for
3770 Linux ext2 filesystem.
3771 Reported by Kai Petzke.
3773 * port.c (link) [!MSDOS]: Do not call setmode.
3774 Reported by Richard Deal.
3776 Reorganization for `tar -d' to provide a different exit status.
3777 * tar.h: Replace errors by exit_status. Declare TAREXIT_*.
3778 * buffer.c (child_open): Exit with exit_status.
3779 * tar.c (main): Initialize exit_status to TAREXIT_SUCCESS, and
3780 exit with exit_status.
3781 * buffer.c, diffarch.c, gnu.c, list.c, port.c,
3782 rmt.c, tar.c, update.c: Replace EXIT_FAILURE by
3783 TAREXIT_FAILURE, and EXIT_SUCCESS by TAREXIT_SUCCESS.
3784 * tar.h (ERROR), create.c (dump_file): Set exit_status to
3785 TAREXIT_FAILURE instead of increasing errors.
3786 * diffarch.c (sigh, diff_sparse_files): On differences, set
3787 exit_status to TAREXIT_DIFFERS if nothing more serious already.
3788 Reported by Tilman Schmidt.
3790 * rmt.c: Define EXIT_FAILURE and EXIT_SUCCESS if not already.
3791 * rtapelib.c: Define EXIT_ON_EXEC_ERROR to 128 and use it.
3793 1994-07-27 François Pinard <pinard@iro.umontreal.ca>
3795 * diffarch.c (sigh): Increment errors, so a difference will
3796 yield a non-zero exit status at end.
3797 Reported by Nick Holloway.
3799 * tar.h: Rename TARERROR to WARN, then add ERROR which is similar,
3800 but increments the errors counter.
3801 * *.c: Replace all TARERROR by WARN or ERROR, deciding for each
3802 case. Many errors were not reflected in exit status.
3804 Reported by Carl Streeter, Esa Karell, George Chyu, Ian Jackson,
3805 Judy Ricker, Massimo Dal Zotto, Roland McGrath, Tilman Schmidt
3808 * buffer.c (child_open): Exit with EXIT_FAILURE if any error.
3810 * rtapelib.c: Use error for reporting errors.
3811 (do_command): New name for command.
3812 (get_status): New name for status.
3814 * buffer.c: Remove definition of MAGIC_STAT.
3815 (close_archive): Do not check MAGIC_STAT for an exit value, since
3816 this value is never returned.
3818 * *.c: Use TARERROR or exit with EXIT_FAILURE, instead of various
3819 esoteric statuses. Normalize using TARERROR with an exit status,
3820 instead of calling TARERROR with 0 first, then _exit. On exit
3821 calls, use EXIT_SUCCESS instead of 0.
3822 * tar.c: Do not use the exit status anymore for outputting an
3823 error counter value. Wrap around was creating spurious success.
3824 * tar.h: Remove EX_* definitions for tar exit statuses.
3825 Reported by Bob Mende and Torbjorn Granlund.
3827 1994-07-26 François Pinard <pinard@iro.umontreal.ca>
3829 * tar.h: Add f_rsh_command variable.
3830 * tar.c: Add and process --rsh-command option.
3831 * buffer.c (open_archive, child_open, new_volume): Pass
3832 f_rsh_command to rmtopen and rmtcreat calls.
3833 * rmt.h (rmtopen, rmtcreat): Pass a supplementary argument.
3834 * rtapelib.c (__rmt_open): Accept and process a command
3835 argument, to replace rsh.
3836 Reported by Jonathan I. Kamens.
3838 * tar.h: Instead of including <sys/file.h> with BSD42 or
3839 <fcntl.h> for V7, merely include <fcntl.h> if it exists,
3840 otherwise <sys/file.h>.
3841 * buffer.c, diffarch.c, extract.c, list.c,
3842 port.c, update.c: Do not include <fcntl.h> or
3843 <sys/file.h>, because they are indirectly included through
3846 * create.c (dump_file): Remove the BSD42 conditional. If not
3847 f_sparse_files, initialize upperbound as when not BSD42.
3848 Reported by Alan Bawden, Claude Scarpelli, Laurent
3849 Sainte-Marthe, Noah Friedman, Reuben Sumner, Tom Quinn and
3852 1994-07-24 François Pinard <pinard@iro.umontreal.ca>
3854 * tar.h: Merely define valloc as being malloc if valloc does
3856 * port.h: Remove valloc, which was only a dummy for malloc.
3857 Reported by Cliff Krumvieda, Francois Pinard, Henrik Bakman,
3858 J.T. Conklin, Nelson H.F. Beebe and Tilman Schmidt.
3860 1994-07-22 François Pinard <pinard@iro.umontreal.ca>
3862 * create.c (start_header): Cast NAMSIZ to size_t before
3863 comparing it to strlen result.
3864 Reported by Mark Frost.
3866 * tar.c (main): Zero out label_pattern before compiling in
3867 regular expressions, instead of using uninitialized memory.
3868 Reported by Holger Teutsch.
3870 * tar.c [!FNM_PATHNAME]: Include fnmatch.h only if unistd.h fails
3871 to define this symbol.
3872 Reported by Alan Modra, Christian T. Dum, Eddy ?, John
3873 Oleynick and Richard Lloyd.
3875 * buffer.c, diffarch.c, rtapelib.c, update.c:
3876 Include <sys/io/trioctl.h> before <sys/mtio.h>, if it exists.
3877 Reported by Kaveh R. Ghazi.
3879 * tar.c (options): Use defined OPTION_* constants instead of
3880 anonymous numbers for long options not having a short option form.
3882 * rmt.h [!MTIOCTOP]: Do not define RMTIOCTL, so __rmt_ioctl
3883 will not be called if it has not been compiled in rtapelib.c.
3885 * tar.h: Add CMD_TOO_MANY.
3886 * tar.c (main): Use CMD_TOO_MANY, and get rid of badopt label.
3887 Reported by David J. MacKenzie.
3889 * tar.c (usage): New name for describe(). Rewritten with
3890 better help formatting and more logical grouping of options.
3891 Accepts an exit status argument. Callers adapted.
3892 Reported by Richard O'Neill.
3894 1994-07-20 François Pinard <pinard@iro.umontreal.ca>
3896 * port.c (rename): Constify the arguments.
3897 Reported by Elmar Heeb, Jeff Prothero and John Clark.
3899 * tar.c (main): Declare version_string locally.
3900 * version.c: Deleted.
3901 * Makefile.in: Adjusted.
3903 1994-07-19 François Pinard <pinard@iro.umontreal.ca>
3905 * tar.h: Merge "port.h" towards the beginning of tar.h.
3906 Include <stdio.h> and <errno.h>, and define errno if needed.
3907 * *.c: Do not include "port.h" anymore after "tar.h", do not
3908 include <stdio.h>, <errno.h> nor <sys/types.h>. Also move
3909 "tar.h" as the first file included in every module. This
3910 would solve, among other things, the problem of RE_DUP_MAX
3911 being redefined by <limits.h>, when included after "regex.h".
3913 * Makefile.in: Adjusted.
3914 Reported by Alan Modra, Christian T. Dum, Dimitris Fousekis,
3915 John David Anglin, Matthew Braun, Michael Maass, Richard Lloyd
3916 and Stefan Skoglund.
3918 * create.c (dump_file): Do not cast alloca result to (char *).
3919 The problem reported was that alloca result was seen as int, but
3920 with the changes just made, alloca should be properly declared.
3921 Reported by Bryant Fujimoto and Michael Kubik.
3923 1994-07-06 François Pinard <pinard@iro.umontreal.ca>
3925 * create.c, extract.c [HAVE_UTIME_H]: Instead of _POSIX_VERSION,
3926 for choosing to include <utime.h>.
3927 Reported by Carl Swanson and Thomas Krebs.
3929 1994-07-05 François Pinard <pinard@iro.umontreal.ca>
3931 * tar.c: Replace DEF_AR_FILE with DEFAULT_ARCHIVE, replace
3932 DEFBLOCKING with DEFAULT_BLOCKING.
3934 * rtapelib.c: Replace "??'" by "?? '" at two places in a
3935 comment, so avoiding Pyramid's DC/OSx compiler to complain about
3936 ANSI trigraph sequences. Even comments can trigger bugs, now!
3937 Reported by Mark Frost.
3939 * tar.h: Declare valloc.
3940 * buffer.c, diffarch.c: Remove declaration for valloc.
3942 * testpad.c: Deleted.
3943 * tar.h: Do not include "testpad.h" anymore.
3944 * Makefile.in: Delete testpad matters.
3946 * buffer.c (new_volume): Inside case 'n', strcpy into r then
3947 assign r to p, instead of strcpy'ing directly into p, for making
3948 the module const clean.
3950 1994-07-03 François Pinard <pinard@iro.umontreal.ca>
3952 Rename a few variables to avoid shadowing variables or functions:
3953 * list.c (print_header): Change name to quoted_name.
3954 * buffer.c (child_open): Change pipe to local_pipe.
3955 * extract.c (extract_archive): Change namelen to namelen_bis.
3956 * rtapelib.c (__rmt_open): Change system to remote.
3958 * tar.c (options): Add two missing arguments to getoldopt
3959 call, NULL is not necessarily implied on all systems.
3961 * list.c (print_header): Add a few missing long specification
3963 * diffarch.c (compare_chunk, diff_sparse_files): Idem.
3964 * port.c (msg, msg_perror): Idem.
3966 * tar.h: Include prototypes for all functions which call from
3967 one module to another. Declare voidstar (use it everywhere
3968 instead of PTR). Move in the include <sys/stat.h> from
3969 <port.h>, and the include of option.h from tar.c and
3970 getoldopt.c, waiting for a better solution for all these things.
3971 * port.c: Removed PTR declaration and including <sys/stat.h>.
3972 * getoldopt.c, tar.c: Remove including "option.h".
3974 1994-07-02 François Pinard <pinard@iro.umontreal.ca>
3976 * *: Protoized all function headers. Added static to
3977 functions which can take it. Add many const specifiers. Remove
3980 * port.c (xmalloc): Delete function, do not mask the true one.
3981 * port.c (ck_malloc): Use xmalloc, waiting for annihilation.
3982 * port.c (ck_realloc): Use xrealloc, waiting for annihilation.
3983 * *: Begin switching from ck_malloc (or even pure malloc) to
3984 xmalloc. Same for ck_realloc (pure realloc) to xrealloc.
3985 Doing this correctly is a delicate matter, which I'll continue
3986 without reporting it anymore, while doing other modifications.
3988 * *: Replace msg and msg_perror calls by TARERROR macro calls.
3989 Capitalize first word of all error messages, remove ending
3990 punctuation or newline. Systematically avoid contractions for
3991 `Cannot' and `Could not'. Always write `WARNING:' all in capitals.
3992 * tar.h: Declare TARERROR as calling error(). Rename
3993 variable tar to program_name.
3994 * tar.c (main, options), buffer.c (child_open), port.c
3995 (msg, msg_perror), gnu.c (gnu_restore): Rename variable tar to
3997 * gnu.c (gnu_restore): Remove a spurious repetition of
3998 program_name in error message.
4000 1994-07-01 François Pinard <pinard@iro.umontreal.ca>
4002 * buffer.c, create.c extract.c, gnu.c, list.c,
4003 names.c, rmt.c, tar.c, update.c: Remove all (void)
4004 prefixes to function calls. There are limits to lint clutter.
4006 1994-06-30 François Pinard <pinard@iro.umontreal.ca>
4008 * port.h: Remove definition of const. Let configure do it.
4010 * tar.h, rmt.c, rtapelib.c, version.c, testpad.c: Add a block
4011 for including <config.h> or "config.h". If "tar.h" was included
4012 everywhere, the block will only be needed there.
4014 * *.[ch]: Reindented to GNU standards (they were not far).
4015 Got rid of all `* ' left prefixes in comments and refilled them.
4016 There is still a lot of cosmetic changes needed everywhere.
4017 I will not report them any more, doing them along the way of
4018 other things in the future.
4020 * Makefile.in: New file.
4022 * Split distribution into a few subdirectories, for easing
4025 * Taking over maintenance duties.
4027 1993-08-31 David J. MacKenzie <djm@goldman.gnu.ai.mit.edu>
4029 * rmt.c [M_UNIX]: Include sys/tape.h instead of sys/mtio.h.
4030 Reported by Drew Sullivan and William Bader.
4032 1993-07-29 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4034 * Makefile.in (config.status): Run config.status --recheck, not
4035 configure, to get the right args passed.
4037 1993-07-19 David J. MacKenzie <djm@churchy.gnu.ai.mit.edu>
4039 * Makefile.in (libdir): Use standard GNU value --
4040 $(exec_prefix)/lib, not /etc.
4042 1993-07-08 David J. MacKenzie <djm@goldman.gnu.ai.mit.edu>
4044 * Makefile.in (installdirs, configure, config.status,
4045 Makefile): New targets.
4047 1993-06-14 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
4049 * Makefile.in (.c.o): Put -I. before -I$(srcdir), and make
4052 1993-05-22 The King <elvis@graceland.gnu.ai.mit.edu>
4054 * extract.c (extract_archive, restore_saved_dir_info): Print
4055 mode in octal, not in decimal.
4056 Reported by Scott S. Bertilson.
4058 1993-03-26 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
4060 * configure.in: Better way of detecting HP-UX.
4061 Reported by Noah Friedman.
4063 1993-03-25 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4065 * version.c: Released version 1.11.2.
4067 * Makefile.in (dist): Do the link differently; some of the
4068 files have changed filesystems which makes it more complex.
4070 * Makefile.in (dist, shar): Use gzip instead of compress.
4072 * create.c (dump_file): Test for curdev == -1, not curdev < 0.
4073 Some losing NFS systems give negative device numbers sometimes.
4074 Reported by Thorbjxrn Willoch.
4076 1993-03-19 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4078 * buffer.c (new_volume): Write the global volume number to the
4079 volno file before running the info script, so that the script
4082 1993-03-17 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4084 * tar.c (describe, long_options): Changed --compress-block to
4086 (options): Fixed f_compress_block sanity check error message
4087 to give the correct name of the option.
4089 1993-03-16 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4091 * extract.c (extract_archive): case LF_DIR: Do chown when
4092 necessary. Don't bother jumping to set_filestat for
4093 f_modified; repeat the chmod code here. Replace `break',
4094 deleted on 2 September 1992.
4096 * tar.c (describe, long_options, options): Added gzip options
4097 and use-compress-program option.
4098 * tar.h: Added new compression options.
4099 * buffer.c (child_open, open_archive): Use new compression options.
4101 * create.c (start_header): Only mask off high bits when
4102 creating old-style archives.
4103 * list.c (decode_header): Mask off potentially misleading
4104 high bits from the mode when reading headers.
4105 Reported by Paul Eggert.
4107 1993-03-15 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4109 * extract.c (extract_archive): Put arguments in the right
4110 order for error message.
4111 Reported by Bruno Haible.
4113 * create.c (deal_with_sparse): If the last byte was null, we
4114 didn't write it out.
4116 * gnu.c, create.c, extract.c, diffarch.c, list.c:
4117 Replace malloc calls with ck_malloc and realloc with ck_realloc.
4118 Reported by Jonathan Kamens.
4120 * tar.c (describe): Improve doc for -L.
4122 * tar.c (name_next): Don't apply exclusion to explicitly named
4125 * tar.c (long_options, describe): Added new-volume-script as
4126 an alias for info-script.
4128 * extract.c (extract_archive): LF_DUMPDIR case; misplaced paren.
4130 * extract.c (extract_archive): extract_file case, first if,
4131 include space for null in namelen computation.
4133 * extract.c (extract_sparse_file): Use value returned by write
4134 to properly create error message.
4136 * create.c (create_archive): Don't assume we have anything to
4139 * buffer.c (open_archive): Set current_file_name for the
4140 volume header so that verbose listings work properly.
4142 * Makefile.in (realclean): Added getdate.c.
4144 * create.c (deal_with_sparse): If exactly 26 elements in
4145 sparsearray, only 25 were written.
4146 Reported by Jim Murray.
4148 * create.c (deal_with_sparse): If the file ends with a zero
4149 block, the last byte was not written. This is fixed in create
4150 rather than extract: if amidst_data is not set at EOF, put out a
4151 block with just the last byte of the file.
4152 Reported by Jim Murray.
4154 1993-01-14 David J. MacKenzie <djm@kropotkin.gnu.ai.mit.edu>
4156 * tar.c: Include fnmatch.h after port.h to make sure we get our FNM_*
4159 1992-11-24 David J. MacKenzie <djm@goldman.gnu.ai.mit.edu>
4161 * tar.c (addname), gnu.c (read_dir_file) [HAVE_GETCWD]: Instead of USG.
4163 * port.h, rmt.h [HAVE_STRING_H]: Instead of USG.
4165 * port.h: Add dir header decls.
4166 * create.c, gnu.c: Use SYSNDIR, SYSDIR, and NDIR
4167 instead of BSD42 and USG. Rename DP_NAMELEN to NLENGTH.
4168 Use `struct dirent' instead of `struct direct'.
4169 * create.c, gnu.c, tar.c: Remove dir header decls.
4171 1992-11-18 David J. MacKenzie <djm@goldman.gnu.ai.mit.edu>
4173 * tar.c: Change FNM_TARPATH to FNM_LEADING_DIR to match change
4176 1992-10-02 David J. MacKenzie <djm@goldman.gnu.ai.mit.edu>
4178 * tar.c (describe): Fix some tab alignments.
4180 * Makefile.in (SRC3): Add getdate.c, for systems without bison/yacc
4183 * diffarch.c (diff_sparse_files): Add missing arg to fprintf calls.
4185 * extract.c (extract_archive, restore_saved_dir_info),
4186 buffer.c (child_open), list.c (decode_header, print_header):
4189 * port.c [__MSDOS__]: Have strstr, rename, and mkdir. Don't
4192 * buffer.c, tar.c (init_volume_number, closeout_volume_number),
4193 create.c (write_long): Declare as void, not int, since they
4194 don't return a value.
4196 1992-09-22 Michael I Bushnell <mib@wookumz.gnu.ai.mit.edu>
4198 * buffer.c (close_archive): Removed leftover `break' from when
4201 1992-09-22 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
4203 * create.c, port.h: indented #pragma directives with 1 space.
4205 1992-09-18 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4207 * All source files: re indented using GNU indent.
4209 * rtapelib.c (__rmt_read): Only read the amount left in the
4210 buffer; otherwise a broken rmt server (which puts too much
4211 data out) could overwrite past our buffer.
4213 1992-09-17 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4215 * configure.in: Check for getpwuid and getgrgid.
4216 Reported by J.T. Conklin.
4218 * create.c: Throughout, use struct utimbuf rather than array
4220 Reported by J.T. Conklin and Michael Ellis.
4222 * Makefile.in (SRC3, AUX): Move alloca.c to SRC3.
4223 (OBJ3): Add @ALLOCA@.
4225 * Makefile.in (getdate.c): Look in srcdir for getdate.y.
4227 * buffer.c (close_archive): We can't check WTERMSIG
4228 meaningfully unless we already know tha WIFSIGNALED is true.
4229 (There is no guarantee it WTERMSIG will return zero when
4230 WIFSIGNALED is false.)
4231 * port.c (rmdir, mkdir): Check WIFSIGNALED rather than
4234 * Makefile.in (getdate.c): Use $(YACC) instead of `yacc'.
4236 1992-09-15 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4238 * version.c: Released version 1.11.1.
4240 * Makefile (AUX): Added NEWS.
4242 * Makefile.in (rmt): Added $(LIBS).
4244 * mangle.c (extract_mangle): Null terminate link name for
4245 losing archives missing it.
4247 * configure.in: Added tests for libraries needed on Solaris.
4249 * Makefile.in: added target and rule for getdate.c: getdate.y;
4250 some makes don't have one built in.
4252 1992-09-14 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4254 * tar.c (options, main): Advise use of --help rather than
4256 Reported by J.T. Conklin.
4258 * create.c (write_long): Using hstat here is a Bad Idea, and
4259 totally unnecessary at that.
4261 * list.c (read_header): Compute both signed and normal
4263 Reported by Robert E. Brown.
4265 * diffarch.c, buffer.c: Declare valloc as void* rather than
4267 Reported by Robert E. Brown.
4269 * Makefile.in: Don't install info files.
4271 * port.h: Undefine index and rindex if necessary; some
4272 string.h's define them for us.
4274 * tar.c (addname): Missing braces after if.
4275 * gnu.c (read_dir_file): Missing braces after if.
4277 * names.c: Add include of <stdio.h>,
4279 * create.c (start_header): Set current_file_name so that
4280 print_header, used for verbose create, works properly.
4281 (dump_file): Set current_link_name when setting up symlink
4282 and hardlink records.
4283 Reported by Robert Crowe.
4285 * configure.in: Define BSD in the presence of /sdmach or
4287 Reported by Robert E. Brown.
4289 * configure.in: Check for malloc was scrambled.
4291 1992-09-11 David J. MacKenzie <djm@nutrimat.gnu.ai.mit.edu>
4293 * fnmatch.[ch]: New files.
4294 * wildmat.c: File removed.
4295 * tar.c: Include fnmatch.h and use fnmatch instead of wildmat.
4296 * Makefile.in, makefile.pc: Replace wildmat.o(bj) with fnmatch.
4298 1992-09-10 David J. MacKenzie <djm@nutrimat.gnu.ai.mit.edu>
4300 * buffer.c, tar.c: Remove redundant decls of getenv, rindex.
4302 * Makefile.in: Add uninstall target.
4303 Define libdir instead of hardcoding /etc for installing rmt.
4305 1992-09-10 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4307 * list.c (read_header): On second thought, that doesn't work
4308 either, so just store the names in malloced areas. Sigh.
4311 * README: Removed things that belong in NEWS; point to it.
4313 * list.c (read_header): current_file_name and
4314 current_link_name need to be set to the arrays in head rather
4315 than header; header is the actual read buffer and will change.
4317 * extract.c (extract_archive):
4318 * buffer.c (new_volume): `#' directives need to start in
4320 Reported by J.T. Conklin.
4322 1992-09-09 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4324 * version.c: Release of version 1.11.
4326 * Makefile.in (AUX): Add getpagesize.h.
4327 (AUX): Comment out manuals.
4328 (all): Comment out dependency on tar.info.
4330 * Makefile, configure.in: Arrange to use local malloc on HP-UX.
4332 * port.h Use the canonical Autoconf chunk for alloca instead
4333 of just looking for gcc.
4335 1992-09-09 Noah Friedman <friedman@nutrimat.gnu.ai.mit.edu>
4337 * port.h: If compiling with gcc, use __builtin_alloca.
4339 1992-09-08 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4341 * extract.c: Removed long name support from here.
4342 * list.c (read_header): Understand and skip longname/longlink
4343 headers here. Names for current file are stored in new global
4344 variables. All source files except create.c changed to refer
4345 to current_file_name and current_link_name instead of fields
4346 directly from the current header.
4348 1992-09-03 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4350 * create.c (write_long): New function.
4351 (dump_file): When writing link records or symlink records, use
4352 new write_long function instead of mangling when the link
4354 (start_header): Use write_long instead of mangling for long
4356 * extract.c (saverec): Recognize LF_LONGNAME and LF_LONGLINK.
4357 (saverec): Throughout, use longname and longlink if they are set.
4359 1992-09-02 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4361 * mangle.c: This is now deprecated; retain extract_mangle for
4362 backward compatibility.
4364 * list.c (print_header): Prevent printing 0 when the gid or uid is
4366 Reported by Chris Arthur.
4368 * list.c (decode_header): Use the gid field when the gid is empty,
4369 and similarly for uid.
4370 Reported by Chris Arthur.
4372 * extract.c: saved_dir_info, saved_dir_info_head: new type and
4374 (extract_archive): When extracting directories, now save info
4375 in saved_dir_info_head.
4376 (restore_saved_dir_info): New function.
4377 * list.c (read_and): Call restore_saved_dir_info at the end of
4379 Reported by Chris Arthur.
4381 1992-08-31 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4383 * create.c (create_archive): If there are no names specified,
4384 write nothing on the archive instead of dumping ".".
4386 * buffer.c (open_archive): Useful error message.
4388 * tar.c, tar.h: Recognize f_atime_preserve.
4389 * create.c (dump_file): Implement f_atime_preserve.
4391 * rmt.h (_remdev): Don't require /dev/ to be in remote archive
4392 names; obey new force-local flag.
4393 * tar.c, tar.h: Implement new force-local flag.
4394 Reported by Roland Schemers III.
4396 * tar.c (describe): same-owner and same-order were confused.
4398 * create.c (dump_file): Check for toplevel had sense reversed.
4400 * buffer.c (new_archive): Don't free old_name...when these
4401 come from the command line, they aren't malloced, and it isn't
4402 important to save this trivial amount of memory.
4404 * tar.h: replace ar_file with ar_files, n_ar_files,
4406 * buffer.c (open_archive): multi-volume compressed archives
4407 never worked; give an appropriate error. Change open of
4408 ar_file to open of ar_files[0].
4409 (writeerror, readerror, flush_archive): use
4410 ar_files[cur_ar_file] instead of ar_file.
4411 (new_archive): Necessary changes to support ar_files.
4412 * tar.c (options): handle multiple tape drive arguments.
4414 1992-08-28 Michael I Bushnell <mib@wookumz.gnu.ai.mit.edu>
4416 * list.c (decode_header), create.c (start_header), tar.h (TMAGIC):
4417 Undo djm's changes below; tar does not support the final
4418 Posix.1 format; it's bad to make it look like it does.
4420 1992-07-19 David J. MacKenzie <djm@nutrimat.gnu.ai.mit.edu>
4422 * port.h: Try to prevent redefining major.
4423 * port.c [minix]: Implies HAVE_BZERO. Fix a typo.
4425 * list.c (decode_header): Recognize the final POSIX.1 magic as
4426 well as the early draft magic for ustar.
4427 * create.c (start_header): Create a final POSIX.1 magic string
4428 instead of an early draft string for ustar.
4429 * tar.h (TMAGIC): Remove the trailing blanks.
4431 * rmt.c, rtapelib.c: Use POSIX and STDC headers if available.
4432 * rmt.h: Declare the external functions defined in rtapelib.c.
4434 1992-07-14 David J. MacKenzie <djm@apple-gunkies.gnu.ai.mit.edu>
4436 * pathmax.h: New file.
4437 * port.h: Include it.
4438 * create.c (create_archive): Allocate PATH_MAX instead of
4439 NAME_MAX for temporary buffer so we don't have to figure out
4440 what NAME_MAX is (portably).
4442 1992-07-10 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4444 * gnu.c (collect_and_sort_names): write_dir_file has no argument.
4446 1992-07-06 David J. MacKenzie <djm@nutrimat.gnu.ai.mit.edu>
4448 * port.c (rename): If unlinking the source at the end fails,
4449 unlink the destination instead to avoid leaving a mess.
4451 1992-07-03 David J. MacKenzie <djm@nutrimat.gnu.ai.mit.edu>
4453 * buffer.c, diffarch.c, update.c, rtapelib.c [HAVE_SYS_MTIO_H]:
4456 * port.c, tar.h [HAVE_FOO]: Instead of FOO_MISSING.
4458 1992-06-23 David J. MacKenzie <djm@goldman.gnu.ai.mit.edu>
4460 * rmt.c: Add #ifdefs to work on ISC.
4462 1992-05-20 David J. MacKenzie <djm@churchy.gnu.ai.mit.edu>
4464 * port.h: Define major, minor, makedev if the system doesn't.
4466 1992-05-13 Michael I Bushnell <mib@apple-gunkies.gnu.ai.mit.edu>
4468 * gnu.c (add_dir_name): Store legitimate value into
4469 dir_contents when get_dir_contents returns NULL.
4471 1992-05-07 Michael I Bushnell <mib@apple-gunkies.gnu.ai.mit.edu>
4473 * gnu.c (add_dir_name): Check for return of NULL from
4474 get_dir_contents; see djm's change of Fri Jul 26 01:12:58 1991.
4476 1992-05-04 David J. MacKenzie <djm@churchy.gnu.ai.mit.edu>
4478 * tar.h: Make comments for option names say -- instead of +.
4480 1992-04-29 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4482 * tar.c, tar.t: Added +volno-file option.
4483 buffer.c (init_volume_number, closeout_volume_number): New functions.
4484 tar.c (main): Call new functions in the right place.
4486 * buffer.c (fl_write, fl_read): Mod to allow losing tape
4487 drives which use short counts to indicate end of tape
4488 correctly handle the multi-tape stuff. The read half won't
4489 co-exist with f_reblock; there's no way to fix that, of
4492 * tar.c, tar.h: Added new option +show-omitted-dirs.
4493 list.c (read_and): Implemented show-omitted-dirs.
4494 Reported by Karl Berry.
4496 * tar.c, tar.h: Added new option +checkpoint.
4497 buffer.c (fl_read, fl_write): Implemented +checkpoint lazily.
4499 * create.c (dump_file): Added toplevel argument; some devices
4500 can be negative, so the old method was bogus. All callers
4502 Reported by Max Hailperin.
4504 * tar.c, tar.h: Added new option +ignore-failed-read.
4505 create.c (dump_file): Implemented +ignore-failed-read.
4506 Reported by Bob Mende Pie.
4508 * create.c (finish_sparse_file): Commented out debugging printf.
4510 * tar.c, tar.h: Added new option +remove-files to delete files
4511 after they are added to the archive.
4512 create.c (dump_file): Implemented +remove-files for
4513 everything but directories. I don't think they need it.
4515 1992-04-28 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4517 * create.c: (dump_file): save_name needs to be set equal to p,
4518 not something inside the header, because the header changes at
4519 the first buffer flush.
4521 1992-04-24 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4523 * create.c: Djm incorrectly moved the include of port.h to
4524 precede the include of sys/file.h; restored.
4526 * tar.c (main): Cases CMD_EXTRACT and CMD_LIST: declare error
4529 * gnu.c (collect_and_sort_names): Leave if around
4530 write_dir_file in place.
4532 1992-04-22 David J. MacKenzie <djm@churchy.gnu.ai.mit.edu>
4534 * rtapelib.c: SIGTYPE -> RETSIGTYPE.
4536 1992-03-09 David J. MacKenzie <djm@nutrimat.gnu.ai.mit.edu>
4538 * rtapelib.c: Reformat and make comments more complete.
4539 Rename a few variables for clarity.
4541 1992-03-05 David J. MacKenzie <djm@nutrimat.gnu.ai.mit.edu>
4543 * tar.c (describe): Document long options as starting with --.
4545 1992-01-23 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4547 * tar.c (options): Check get_date return value for error indication.
4549 1991-12-24 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4551 * tar.c, gnu.c, extract.c, create.c, port.h, rmt.h [HAVE_UNISTD_H,
4552 _POSIX_VERSION]: Instead of POSIX ifdefs.
4554 1991-12-20 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4556 * testpad.c (main): flush stderr so perror and fprintf
4559 1991-12-18 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4561 * port.h [MAJOR_IN_MKDEV, MAJOR_IN_SYSMACROS]: To find where to
4562 get major, minor and makedev.
4563 * create.c, list.c, update.c: Don't check USG to include
4566 1991-12-12 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4568 * mangle.c (extract_mangle): Correctly null terminate name of
4571 1991-11-21 Michael I Bushnell <mib@nutrimat>
4573 * create.c (dump_file, at start of ISREG output loop): use
4574 filename from header instead of real name to make sure that we
4575 get the mangled version and not one that is too long and
4578 1991-11-16 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4580 * tar.h: Use new criteria for STDC version of msg.
4582 1991-11-02 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4584 * create.c, gnu.c, tar.c [USG]: Use DIRENT instead of NDIR to select
4585 between dirent.h and ndir.h.
4587 * port.c [FOO_MISSING]: Instead of WANT_FOO, to make sharing code
4588 and configure script with other utilities easier.
4589 [VPRINTF_MISSING, DOPRNT_MISSING]: Instead of FOO_MSG, to select
4590 error reporting routines.
4592 1991-08-29 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4594 * tar.c (long_options). Fixed info-script long option.
4595 Reported by Eric Norum.
4597 1991-08-26 David J. MacKenzie <djm@pogo.gnu.ai.mit.edu>
4599 * configure, Makefile.in: Only put $< in Makefiles if VPATH
4600 is being used, because older makes don't understand it.
4602 1991-08-19 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4604 * create.c: Indent '#pragma alloca' so non-ANSI compilers
4607 1991-08-14 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
4609 * list.c (UGSWIDTH): Increase from 11 (sort of like Unix tar) to
4610 18, so that with normal user and group names of <= 8 chars,
4611 the columns never shift in a tar -t listing.
4613 1991-08-02 David J. MacKenzie <djm@apple-gunkies>
4615 * Makefile.in (dist): Include texinfo.tex and tar.info*.
4616 (install): Install tar.info*.
4617 * configure: Set INSTALLDATA.
4619 * configure: Create config.status. Remove it and Makefile if
4620 interrupted while creating them.
4622 * configure: Check for +srcdir etc. arg and look for
4623 Makefile.in in that directory. Set VPATH if srcdir is not `.'.
4624 * Makefile.in: Add `prefix'.
4625 (tar.info): New target.
4627 1991-07-30 David J. MacKenzie <djm@apple-gunkies>
4629 * configure [FTIME_MISSING]: Instead of NEED_TZSET.
4631 1991-07-29 David J. MacKenzie <djm@wombat.gnu.ai.mit.edu>
4633 * port.c [F_CHSIZE]: Additional version.
4635 1991-07-27 David J. MacKenzie <djm@wombat.gnu.ai.mit.edu>
4637 * rmt.h: Clean up ifdefs.
4639 * makefile.pc: Fix typo.
4640 * port.h [__MSDOS__]: Instead of MSDOS.
4641 [__MSDOS__]: Define off_t. Include io.h and not sys/param.h.
4642 [__TURBOC__]: Use void * and don't define const.
4644 1991-07-26 David J. MacKenzie <djm@bleen>
4646 * buffer.c: Rename `eof' to `hit_eof' to avoid conflict with an
4648 * gnu.c (get_dir_contents): Return NULL, not "\0\0\0\0", on error.
4649 * diffarch.c (diff_archive): Open files in binary mode.
4650 Don't use or free a non-malloc'd return value from get_dir_contents.
4651 * msd_dir.c [__TURBOC__]: Include stdlib.h.
4652 * rmt.h: lseek returns off_t, not long.
4654 * tar.c (describe): -X is +exclude-from, not +exclude.
4655 (names_notfound): Free memory only if amiga, not !unix.
4657 * tar.h, tar.c: Add +null option to make -T read
4658 null-terminated filenames (such as those produced by GNU find
4659 -print0), and disable -C option.
4660 This guarantees that odd filenames will get archived.
4661 * tar.c (read_name_from_file): New function.
4662 (name_next): Call it instead of fgets.
4663 From David J. MacKenzie.
4665 1991-07-24 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4667 * create.c [_AIX]: Declare alloca.
4669 * buffer.c (open_archive): Check for successful open before,
4670 not after, fstatting the fd.
4672 1991-07-23 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4674 * configure: Only define BSD42 if sys/file.h exists.
4675 If alloca is missing and /usr/ucblib exists (SVR4), use it
4678 * port.h [!__STDC__]: #define const.
4679 * gnu.c (dirent_cmp): Fix args to agree with ANSI C prototype.
4680 * create.c: Declare ck_realloc.
4681 * gnu.c, diffarch.c: Move check for symlinks to after port.h include.
4683 1991-07-20 David J. MacKenzie <djm@apple-gunkies>
4685 * msd_dir.[ch]: Use POSIX-style `struct dirent' instead of
4687 * create.c, gnu.c, tar.c: Adjust callers.
4689 1991-07-18 David J. MacKenzie <djm@bleen>
4691 * port.c (ck_malloc, ck_realloc): Return PTR, not char *.
4692 * gnu.c, create.c, tar.c: Fix decls.
4694 * port.c: Don't use the preprocessor to guess missing
4695 functions on Unix; let configure do it.
4696 [WANT_GETWD] (getwd): Function removed; not needed because
4697 getcwd is used if needed.
4698 * gnu.c, tar.c [POSIX]: Use getcwd.
4700 * rtapelib.c: Use SIGTYPE instead of testing SIGNAL_VOID.
4701 Default to void (more common these days) instead of int.
4703 * tar.c, gnu.c, mangle.c: Remove VOIDSTAR defn. Use PTR instead.
4704 * port.h: Define PTR.
4706 * gnu.c, tar.c [__MSDOS__ || USG]: Remove incorrect getcwd decl.
4707 [!POSIX]: Put correct one in port.h.
4709 * tar.c (describe): Print on stdout instead of stderr; it's
4710 not so much a usage message (since you have to ask for it
4711 explicitly) as on-line help, and you really need to be able to
4712 page it because it's more than a screen long.
4714 * Make #ifdefs for sys/file.h or fcntl.h, directory header,
4715 sys/mtio.h consistent between files. Use NO_MTIO instead of
4716 tricks with USG and HAVE_MTIO and NO_RMTIOCTL.
4717 * Move decls of ANSI C and POSIX functions to port.h and
4718 use standard headers to declare them if available
4719 [STDC_HEADERS or POSIX].
4720 * Add many missing function declarations and return types.
4721 * Some places used __MSDOS__, some MSDOS; standardize on __MSDOS__.
4722 * Change S_IF macros to S_IS for POSIX.
4723 * port.h: Define appropriate S_IS macros if missing.
4724 * port.h [POSIX]: Rename macros for testing exit status to conform to
4725 POSIX; use the system's versions if available.
4726 * Use POSIX PATH_MAX and NAME_MAX instead of MAXPATHLEN and MAXNAMLEN.
4727 * port.h: Define PATH_MAX and NAME_MAX.
4728 * create.c, gnu.c, tar.c: Use ck_malloc and free instead of
4729 auto arrays of size PATH_MAX or NAME_MAX, since with pathconf
4730 they might not be constants.
4731 * Move all definitions of O_* to port.h to reduce redundancy.
4732 * Make all source files that now need to include port.h do so.
4733 * port.c: Remove #undefs of WANT_* so you can use -DWANT_*
4734 when compiling, instead of having to edit port.c.
4735 [WANT_DUMB_GET_DATE] (get_date): Function removed.
4736 Even systems without bison can get bison output and compile it.
4737 [WANT_STRING] (index, rindex, bcopy, bzero, bcmp): Functions
4738 removed; the translation is now done by macros in port.h.
4739 * wildmat.c (wildmat): Use POSIX.2 '!' instead of '^' to negate
4742 1991-07-15 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4744 * testpad.c (main): Return type void.
4746 * port.c [WANT_STRING]: Don't include memory.h if NO_MEMORY_H.
4748 * create.c (dump_file) [AIX]: Fix typo, `allocate' for `alloca'.
4749 * gnu.c (collect_and_sort_names): Move misplaced brace out of #ifdef.
4750 Reported by Minh Tran-Le.
4752 * configure: Also look in sys/signal.h for signal decl.
4754 1991-07-10 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4756 * Rename rtape_server.c to rmt.c and rtape_lib.c to rtapelib.c.
4758 * configure, Makefile.in: $(INSTALLPROG) -> $(INSTALL).
4760 1991-07-09 David J. MacKenzie <djm@wookumz.gnu.ai.mit.edu>
4762 * Most files: Refer to GPL version 2.
4763 * COPYING: Use version 2.
4765 * port.c [__TURBOC__] (utime): New function.
4767 * xmalloc: New function (just calls ck_malloc), for alloca.c
4768 and bison.simple (in getdate.y output).
4770 * Makefile.in (AUX): Include alloca.c and tcexparg.c, a
4771 command line globber for Turbo C.
4773 1991-07-08 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
4775 * testpad.c: Open and write to testpad.h instead of stdout,
4776 because some MS-DOS makes (Borland's at least) can't do
4777 redirection in commands.
4778 * Makefile.in: Don't redirect testpad output.
4780 1991-07-08 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
4782 * buffer.c (fl_read): Missing \n in printf.
4784 1991-07-08 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
4786 * create.c, extract.c, gnu.c, diffarch.c, tar.c: Comment out
4789 * tar.c (options): Cast get_date arg to VOIDSTAR instead of
4790 `struct timeb *', since on some non-BSD systems the latter is
4793 1991-07-06 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
4795 * Replace Makefile with configure, Makefile.in, and makefile.pc.
4796 Update README with current compilation instructions.
4798 * port.c [WANT_RENAME] (rename): New function.
4800 1991-07-03 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4802 * testpad.c (main): Avoid warning from some compilers on array
4805 * rtape_server.c (sys_errlist): Should be declared extern.
4806 Reported by Stuart Kemp.
4808 1991-07-01 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4810 * Release of version 1.10; appropriate changes to README.
4812 * create.c: Removed printf's about sparse files.
4814 1991-06-21 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4816 * list.c (skip_extended_headers): Userec was being called in
4819 1991-06-20 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
4821 * tar.h [STDC_MSG]: Use ANSI prototypes for msg and msg_perror,
4822 even if BSD42 is also.
4824 * Makefile: Replace DESTDIR with bindir.
4825 (install): Don't install tar.texinfo. There's no standard
4826 place for texinfo files, and /usr/local/man is inappropriate.
4827 Add TAGS, distclean, and realclean targets and SHELL= line.
4829 * version.c: Move old change history to bottom of ChangeLog.
4831 1991-06-12 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4833 * rtape_lib.c (__rmt_write) [SIGNAL_VOID]: Instead of USG.
4835 1991-06-05 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4837 * tar.c (name_match, addname): Ugly hack to handle -C without
4838 any files specified.
4839 tar.h (struct name): New field for ugly hack.
4841 1991-06-03 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4843 * testpad.c: New file to determine if we need special padding
4844 in struct header in tar.h.
4846 * tar.h (struct header): include padding if necessary, include
4849 * Makefile: rules to create testpad.h, etc.
4851 1991-05-22 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
4853 * tar.c (options): -L takes an argument.
4855 * rtape_lib.c (__rmt_open): add /usr/bin/nsh to the list of
4856 remote shell programs.
4858 * create.c: define MAXPATHLEN if we don't get it from a system
4861 * create.c (deal_with_sparse): return a real return value if
4862 we can't open the file.
4864 * tar.c (long_options): +newer takes an argument.
4865 (describe): fix printing in various trivial ways
4867 1991-05-21 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4869 * tar.c (long_options): +get and +concatentate don't require arguments
4871 1991-05-20 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4873 * create.c (write_eot): Don't try and write an EOF if we are
4876 * port.c (strstr): Looking for null string should return zero.
4878 1991-05-19 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4880 * tar.c (options): -l doesn't take an argument
4882 * Makefile: Minor fix for SGI 4D defines.
4883 Reported by Andrew Torda.
4885 * rtape_server.c (main.c): For 386/AIX. I'm suspicious about this
4887 * create.c (dump_file): For hidden files on AIX.
4888 gnu.c (collect_and_sort_name, get_dir_contents): AIX hidden file mod.
4889 Reported by Minh Tran-Le.
4891 * tar.c: (name_next): Allow -C inside a file list given to -T.
4892 Reported by David Taylor.
4894 * Makefile: Comment describing presence of USE_REXEC.
4896 * extract.c (extract_archive, case LF_SPARSE): zero check for
4897 last element on numbytes needs to look at value after
4898 converted from octal.
4900 * port.c [HAVE_STRSTR]: Check it, instead of always demanding strstr.
4901 Makefile: Comment describing presence of HAVE_STRSTR option.
4903 1991-05-19 David J. MacKenzie <djm@churchy.gnu.ai.mit.edu>
4905 * port.c (get_date): Renamed from getdate, to avoid SVR4 conflict.
4906 * tar.c: Call get_date instead of getdate.
4908 1991-05-10 Noah Friedman <friedman@nutrimat>
4910 * tar.c: added "\n\" to the end of some documentation strings
4911 where they were left off.
4913 1991-05-09 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4915 * Makefile: added level-0, level-1, and backup-specs to AUX.
4916 * version.c: changed to 1.10 beta.
4917 * README: updated for 1.10 beta release.
4919 1991-04-02 Michael I Bushnell <mib@godwin>
4921 * create.c (dump_file): HPUX's st_blocks is in 1024 byte units
4922 instead of 512 like the rest of the world, so I special cased
4924 * tar.c: Undo Noah's changes.
4926 1991-04-01 Noah Friedman <friedman@wookumz.gnu.ai.mit.edu>
4928 (This ought to be temporary until things are fixed properly. )
4930 * tar.c: (struct option long_options): flag for "sparse" zero if
4931 compiling under hpux.
4932 tar.c: (functon options): case 'S' is a no-op if compiling under
4935 1991-03-30 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4937 * tar.h: new variable tape_length.
4939 * tar.c (options): add new option +tape-length / -L.
4941 * buffer.c (fl_write): Turn #ifdef TEST code for limited tape
4942 length on always, for tape-length option.
4944 * create.c (dump_file): avoid apollo lossage where S_IFIFO == S_IFSOCK.
4946 * buffer.c: include regex.h
4947 * buffer.c (fl_read, open_archive): Use regex routines for
4948 volume header match.
4949 * xmalloc.c: removed file; wasn't necessary.
4950 * tar.c: (main) use ck_malloc instead of xmalloc.
4952 1991-03-28 Noah Friedman <friedman@goldman>
4954 * regex.c, regex.o: New links.
4955 * tar.c: include regex.h.
4956 * Makefile (OBJ2): Add regex.o.
4957 (regex.o, tar.o): Depend on regex.h
4958 (SRC2, AUX): Add the new files.
4960 1991-03-23 Noah Friedman <friedman@wookumz.gnu.ai.mit.edu>
4962 * Makefile: added default flags and options for compiling under
4965 * Added files alloca.c and xmalloc.c.
4967 1991-03-23 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4969 * port.c [HPUX]: Define WANT_VALLOC.
4971 1991-03-15 David J. MacKenzie <djm@geech.ai.mit.edu>
4973 * rtape_lib.c [USG && !HAVE_MTIO]: Define NO_RMTIOCTL automatically.
4974 (_rmt_rexec): Temporarily re-open stdin and stdout to
4975 /dev/tty, to guarantee that rexec() can prompt and read the
4976 login name and password from the user.
4977 * Makefile: Mention -DUSE_REXEC.
4978 Reported by Pascal Meheut.
4980 1991-03-08 Michael I Bushnell <mib@wookumz.ai.mit.edu>
4982 * tar.h, Makefile [HAVE_SIZE_T]: Might be useful for some people.
4984 * gnu.c: lstat->stat define where appropriate
4986 * buffer.c (fl_write): keep track of amount written for +totals.
4987 * tar.c, tar.h: set flag f_totals from +totals option.
4988 * tar.h (f_totals, tot_written): new variables.
4989 * tar.c (main): print total written with CMD_CREATE.
4991 * tar.c (main): return appropriate exit status
4993 1991-01-17 David J. MacKenzie <djm@apple-gunkies>
4995 * port.c: Remove a spurious `+' between functions (a remnant
4996 of a context diff, apparently).
4998 1991-01-09 Michael I Bushnell <mib@pogo.ai.mit.edu>
5000 * create.c (where_is_data): Rewritten to be better, and then
5002 (deal_with_sparse): Severly pruned. Now we write or don't
5003 write only complete blocks, not worrying about partial blocks.
5004 This simplifies calculations, removes bugs, and elides the
5005 second scan through the block. The first was zero_record, the
5006 second was where_is_data.
5008 1991-01-07 Michael I Bushnell <mib@wookumz.ai.mit.edu>
5010 * create.c (deal_with_sparse): Second computation (for short
5011 reads) of numbytes increment had subtraction backwards.
5012 Need to handle calling where_is_data better when we did a
5013 short read (it might go past the end of the read), also, set
5014 sparsearray[...].offset in this case too.
5016 1991-01-04 Jay Fenlason <hack@ai.mit.edu>
5018 * buffer.c: Return a special error code if the archive
5019 you're trying to read starts with a different label than
5020 the one specified on the command line.
5022 1991-01-02 Jay Fenlason <hack@ai.mit.edu>
5024 * gnu.c: Prepend the current directory to the gnu_dumpfile, so that
5025 -C's won't affect where the output goes. (sigh.)
5027 1990-12-18 Jay Fenlason <hack@ai.mit.edu>
5029 * gnu.c: Don't complain if the gnudumpfile we're reading info
5032 * create.c: Write out gnudumpfile after finishing writing the archive.
5034 * tar.c: Add +exclude FNAME, and make +exclude-from do what +exclude
5036 * Make +version an operation, not an option.
5037 * Add +confirmation alias for +interactive.
5039 1990-12-04 Jay Fenlason <hack@ai.mit.edu>
5041 * tar.c (check_exclude): Don't let MUMBLE match MUMBLE.c or
5042 fooMUMBLE but only foo/MUMBLE.
5044 * mangle.c: New file.
5045 * create.c, extract.c: According changes.
5047 * extract.c: Don't complain when extracting an already existing link.
5048 Don't complain when extracting a directory iff it already exists.
5049 Don't ad u+wx to directories when running as root.
5050 Reported by Chip Salzenberg.
5052 * gnu.c: Make +listed-incremental work.
5053 Reported by Chip Salzenberg.
5055 * port.c: Add the F_FREESP emulation of the ftruncate syscall.
5057 1990-11-21 Jay Fenlason <hack@ai.mit.edu>
5059 Remove excess \n from lots of msg() calls.
5061 1990-11-19 Jay Fenlason <hack@ai.mit.edu>
5063 * tar.c: Rename +volume to +label.
5065 1990-11-16 David J. MacKenzie <djm@apple-gunkies>
5067 * tar.c (describe): Include the default values for -b and -f
5068 (as set in the Makefile) in the message.
5070 1990-11-15 Jay Fenlason <hack@ai.mit.edu>
5072 * extract.c (extract_archive): Do the utime() call before the
5073 chmod() call, 'cuz some versons of utime() trash the file's mode
5076 * list.c (read_and): Call do_something on volume headers and
5077 multivol files even if they don't match the names we're looking
5080 1990-11-06 Jay Fenlason <hack@ai.mit.edu>
5082 * port.c (un-quote-string): Don't try to write a null if there's
5085 1990-11-01 Jay Fenlason <hack@ai.mit.edu>
5087 * buffer.c (new_volume): fflush(msg_file) before reading for
5088 confirmation on new volume. On EOF or error, print error msg and
5091 1990-10-29 Jay Fenlason <hack@ai.mit.edu>
5093 * getdate.y: Use new version of getdate().
5095 * tar.c (name_add): Use sizeof(char *) instead of sizeof(int)
5097 * README: Give the correct return address.
5099 1990-10-25 Jay Fenlason <hack@ai.mit.edu>
5101 rtape_lib.c [NO_RMTIOCTL]: Instead of RMTIOCTL, so it is on by default.
5103 rmt.h [NO_REMOTE]: Add _isrmt() #define.
5105 gnu.c: Add forward reference for add_dir_name().
5107 1990-10-16 Jay Fenlason <hack@ai.mit.edu>
5109 Version 1.09 --- New -G file implementation of gnu-dump stuff.
5111 * tar.c (name_add): Get the calls to ck_realloc and ck_malloc right.
5113 1990-10-11 Jay Fenlason <hack@ai.mit.edu>
5115 * gnu.c: Fix A couple of typos.
5117 1990-09-19 David J. MacKenzie <djm@apple-gunkies>
5119 * getdate.y [USG && !DAYLIGHT_MISSING] (ftime): Use `daylight'.
5121 1990-09-17 Jay Fenlason <hack@ai.mit.edu>
5123 * gnu.c (gnu_restore): Don't use a passed char* for the
5124 file name, use skipcrud+head->header.name, just like everything
5125 else does. This means that gnu_restore will still work with
5128 1990-09-13 Jay Fenlason <hack@ai.mit.edu>
5130 * tar.c (add_exclude): Don't bus-error if the exclude file doesn't
5133 1990-09-09 David J. MacKenzie <djm@albert.ai.mit.edu>
5135 * Makefile (dist): Remove .fname when done.
5137 1990-09-06 Jay Fenlason <hack@ai.mti.edu>
5139 * gnu.c (gnu_restore): Rember to skip_file() over the directory
5140 contents, even if we don't have to do anything with them.
5142 * create.c, extract.c, diffarch.c: Free sparsearray after we're
5145 1990-09-04 Jay Fenlason <hack@ai.mit.edu>
5147 * Makefile: Include gnu.c in dist
5149 * gnu.c: Move add_dir above read_dir_file so that cc doesn't
5150 complain about add_dir returning void.
5152 1990-09-02 David J. MacKenzie <djm@apple-gunkies>
5154 * getdate.y: Declare some more functions and add storage
5155 classes where omitted to shut compiler up.
5156 [USG] (ftime): Don't use extern var `daylight'; appears that
5157 some systems don't have it.
5159 1990-08-29 David J. MacKenzie <djm@apple-gunkies>
5161 * getdate.y (lookup): In the code that allows `Aug.' to be
5162 recognized as `Aug', don't chop off the final `.' from words
5163 like `a.m.', so they can be recognized.
5165 1990-08-16 Jay Fenlason <hack@ai.mit.edu>
5167 * buffer.c (open_archive): If -O, write verbosity to stderr
5170 1990-08-10 Jay Fenlason <hack@ai.mit.edu>
5172 * getdate.y: Handle an explicit DST in the input string.
5173 Reported by Per Foreby.
5175 1990-07-16 Jay Fenlason <hack@ai.mit.edu>
5177 * tar.c: rename -g -G +incremental, +listed-imcremental, etc.
5179 1990-07-13 Jay Fenlason <hack@ai.mit.edu>
5181 * tar.c: Make +newer and +newer-mtime work according to their names.
5183 * gnu.c: If +newer or +newer-mtime, use the time specified on the
5186 * buffer.c, create.c: Add test to see if dimwit is trying to
5187 archive the archive.
5189 * tar.c (long_options[]): Re-ordered, so that groups of similar
5190 options are next to each other... I think.
5192 (describe): Modified to more closely reflect reality.
5194 1990-07-06 Jay Fenlason <hack@ai.mit.edu>
5196 * tar.c: Add compile-time option for SYS V (?) style
5197 tape-drive names /dev/rmt/{n}[lmh]
5199 * tar.c: Fix getopt-style stuff so that -C always works correctly.
5201 * gnu.c, tar.c: Make filename to -G optional.
5203 * {all over}: Replace some fprintf(stderr...) calls with calls
5206 * port.c: Make -Dmumble_MSG option on command line override
5207 internal assumptions.
5209 * Makefile: Mention -Dmumble_MSG options
5211 1990-07-06 David J. MacKenzie <djm@apple-gunkies>
5213 * tar.c (options): Don't change `c' if it is 0, as getopt now
5214 handles that internally.
5216 1990-07-02 Jay Fenlason <hack@ai.mit.edu>
5218 * gnu.c (new file): Moved all the f_gnudump stuff here where we
5219 can keep track of it easier. Also made -G take a file name where
5220 it stores the inode information about directories so that we can
5221 detect moved directores.
5223 * create.c (dump_file): Changed slightly to work with the new
5226 * tar.c: Moved the f_gnudump stuff to gnu.c
5228 * tar.c, extract.c: Added the +do-chown option, which forces tar
5229 to always try to chown the created files to their original owners.
5231 * version.c: New version 1.09
5233 1990-06-24 David J. MacKenzie <djm@albert.ai.mit.edu>
5235 * create.c: Change ifdefs for directory library header
5236 selection to be like the ones in tar.c.
5237 * Makefile [Xenix]: Link with -ldir to get the dirent.h
5240 1990-06-07 David J. MacKenzie <djm@albert.ai.mit.edu>
5242 * Makefile, buffer.c, diffarch.c [HAVE_MTIO]: Instead of MTIO, as
5243 SCO Xenix defines 'MTIO' for an incompatible tape driver system in
5244 a file included by termio.h.
5245 * tar.h: Don't define size_t for Xenix.
5247 1990-06-05 Jay Fenlason <hack@ai.mit.edu>
5249 * create.c (dump_file): Only print the
5250 "... is on a different filesystem..." if f_verbose is on.
5251 also add a case for S_IFSOCK and treat it like a FIFO.
5252 (Not sure if that's the right thing to do or not, but it's better
5253 than all those Unknown File Type msgs.)
5255 1990-05-31 Jay Fenlason <hack@ai.mit.edu>
5257 * port.c [sparc]: Use instead of SPARC since the lowercase version
5258 is defined, and the uppercase one isn't.
5260 1990-05-22 Jay Fenlason <hack@ai.mit.edu>
5262 * port.c (ck_malloc): if size==0 pretend size=1
5263 (ck_realloc): if(!ptr) call ck_malloc instead.
5265 1990-05-15 Jay Fenlason <hack@ai.mit.edu>
5267 * diffarch.c (diff_archive): If not f_absolute_paths, and attempt
5268 to open a file listed in the archive fails, try /filename also.
5269 This will allow diff to open the wrong file if both /filename and
5270 filename exist, but there's nothing we can do about that.
5272 1990-05-11 Jay Fenlason <hack@ai.mit.edu>
5274 * Makefile: Describe new -DMTIO option.
5276 * buffer.c, diffarch.c: Change ifdefs slightly, so that -DMTIO
5277 will include sys/mtio.h even if USG is defined. This is for HPUX
5278 and similar BSD/USG crossovers.
5280 1990-05-08 Jay Fenlason <hack@ai.mit.edu>
5282 * update.c (update_archive): Call reset_eof() when appropriate.
5284 * buffer.c (reset_eof): New function, that turns of EOF flag, and
5285 re-sets the ar_record and ar_last pointers. This will allow
5286 'tar rf non-existant-file' to not core-dump.
5288 1990-05-04 David J. MacKenzie <djm@albert.ai.mit.edu>
5290 * tar.c: Recognize the +sparse option. It was documented, but
5291 only the short form (-S) was actually recognized.
5293 1990-04-17 Jay Fenlason <hack@ai.mit.edu>
5295 * create.c: Don't access location 0 if ->dir_contents is null.
5297 1990-04-11 Jay Fenlason <hack@ai.mit.edu>
5299 * buffer.c (flush_archive, close_archive, new_volume): Always
5300 check the return value of rmtclose(), and only give a warning msg
5301 if it is <0. Some device drivers (including Sun floppy disk, and
5302 HP streaming tape) return -1 after an IO error (or something like
5305 1990-03-23 Jim Kingdon <kingdon@mole.ai.mit.edu>
5307 * tar.c (long_options): Make it so +append +extract +list +update
5308 +catenate and +delete don't take arguments.
5310 1990-03-12 Jay Fenlason <hack@ai.mit.edu>
5312 * buffer.c (open_archive, fl_write): Set the mtime of the volume
5313 header to the current time.
5315 1990-03-07 Jay Fenlason <hack@ai.mit.edu>
5317 * buffer.c Fix +compress-block A two character patch from
5319 Replace #ifdef __GNU__ with #ifdef __STDC__.
5320 (new_volume): If open of new archive fails, ask again, as it
5321 probably is user error.
5323 * tar.c: Replace #ifdef __GNU__ with #ifdef __STDC__
5325 * port.c: Clean up #ifdef and #defines a bit.
5326 (quote_copy_string): Sometimes the malloc'd buffer would be up to
5327 two characters too short.
5329 * extract.c (extract_archive): Don't declare ind static.
5331 * create.c (dump_file): Don't declare index_offset static.
5333 * diffarch.c: Remove diff_name variable, and always use
5334 head->header.name, which will always work, unlike diff_name, which
5335 becomes trash when the next block is read in.
5337 1990-03-01 Jay Fenlason <hack@wookumz.ai.mit.edu>
5339 * Makefile: Mention the -NO_REMOTE option.
5340 * port.c [i386]: Fix typo, and define WANT_FTRUNCATE.
5342 1990-02-26 Jim Kingdon <kingdon@pogo.ai.mit.edu>
5344 * getdate.y: Declare yylex and yyerror as static.
5345 #define yyparse to getdate_yyparse.
5347 1990-02-25 David J. MacKenzie <djm@albert.ai.mit.edu>
5349 * tar.c: Remove +old option, since it is a valid abbreviation of
5350 +old-archive, which does the same thing.
5351 (describe): A few small cleanups in message.
5353 1990-02-05 Jay Fenlason <hack@wookumz>
5355 * port.c [sparc]: Define LOSING_MSG, since doprnt_msg doesn't work.
5356 [WANT_GETWD]: Fix typo.
5358 1990-01-26 Jay Fenlason <hack@wookumz>
5360 Version 1.08 --- Sparse file support added. Also various other
5363 * diffarch.c (compare_chunk): Include correct arguments in
5364 a call to fprintf() for an error msg.
5365 (compare_chunks, compare_dir): First argument is a long, not an int.
5367 * tar.c (options): Use tar variable (argv[0]) as the name to print
5368 in an error msg, instead of a constant "tar".
5369 (confirm): Use external variable char TTY_NAME[] for name of file
5370 to open for confirmation input.
5372 * buffer.c (new_volume): Ditto.
5374 * port.c: Add declaration for TTY_NAME[].
5376 * rmt.h: Add long declarations for lseek() and __rmt_lseek();
5378 1990-01-23 Jay Fenlason <hack@wookumz>
5380 * tar.c, create.c: Create the +newer-mtime option, which is like
5381 +newer, but only looks for files whose mtime is newer than the
5384 * rtape_lib.c [USG]: Make *both* instances of signal-handler stuff
5387 1990-01-11 Jay Fenlason <hack@wookumz>
5389 * getdate.y : Parse European dates of the form YYMMDD.
5390 In ftime(): Init timezone by calling localtime(), and remember that
5391 timezone is in seconds, but we want timeb->timezone to be in minutes.
5392 Reported by Jörgen Haegg.
5394 * rtape_lib.c (__rmt_open): Also look for /usr/bsd/rsh.
5395 Declare signal handler as returning void instead of int if USG is
5398 * port.c: Declare WANT_GETWD for SGI 4-D IRIS.
5400 * Makefile: Include defines for SGI 4D version.
5401 Reported by Mike Muuss.
5403 * buffer.c (fl_read): Work properly on broken Ultrix systems where
5404 read() returns -1 with errno==ENOSPC on end of tape. Correctly go
5405 on to the next volume if f_multivol.
5407 * list.c (list_archive, print_header): Flush msg_file after
5410 * port.c: Delete unused references to alloca().
5411 Don't crash if malloc() returns zero in quote_copy_string.
5412 Flush stderr in msg() and msg_perror().
5414 * tar.c: Flush msg_file after printing confirmation msg.
5416 1990-01-10 David J. MacKenzie <djm@hobbes.ai.mit.edu>
5418 * tar.c (main): Change -help option and references to it to +help,
5419 and remove suggestion to run info (which is unreleased, so not
5420 likely to be of any help).
5422 1990-01-09 Jay Fenlason <hack @wookumz>
5424 * create.c (dump_file): Close file descriptor if start_header()
5426 (dump_file): Change test for `./'-ness to not think that `.' {any
5427 character} is a `./'.
5428 Reported by Piercarlo Grandi.
5430 * diffarch.c (diff_init): Print correct number of bytes in error
5433 1990-01-09 David J. MacKenzie <djm@hobbes.ai.mit.edu>
5435 * Makefile: Add comment at top noting that two source files also
5436 contain #defines that might need to be changed by hand.
5438 * create.c, diffarch.c, extract.c: Change L_SET to 0 in lseek
5439 calls, because only BSD defines it.
5440 * create.c (dump_file) [BSD42]: Make sparse file checking code
5441 conditional because it uses st_blocks, which the other systems lack.
5443 1990-01-02 Jay Fenlason <hack@gnu>
5445 * port.c (quote_copy_string): Fix so it doesn't scramble memory if
5446 the last character is non-printable.
5447 Reported by Kian-Tat Lim.
5449 1989-12-19 Jim Kingdon <kingdon@pogo>
5451 * port.c [BSD42]: Define DOPRNT_MSG.
5452 tar.h [BSD42]: Do not prototype msg{,_perror}.
5454 1989-12-08 Jay Fenlason <hack@gnu>
5456 * create.c (dump_file): Remove typo in msg.
5458 1989-12-01 David J. MacKenzie <djm@trix>
5460 * Makefile: Remove comments referring to certain systems lacking
5461 getopt, since it is now provided always and needed by all systems.
5463 * port.c: Remove copy of getopt.c, as it is now linked in
5464 separately to always get the current version.
5466 * tar.c: Rename +cat-tars option to +catenate or +concatenate,
5467 and +local-filesystem to +one-file-system (preferred by rms
5468 and used in GNU cp for the same purpose).
5469 (describe): Reflect changes.
5471 1989-11-28 David J. MacKenzie <djm@hobbes.ai.mit.edu>
5473 * port.c: Move declaration of alloca into #else /* sparc */
5474 so it will compile on sparcs.
5476 1989-11-27 David J. MacKenzie <djm@hobbes.ai.mit.edu>
5478 * tar.c (options): Remove -version option (replaced by +version).
5479 (describe): Mention long options.
5481 1989-11-25 David J. MacKenzie <djm@hobbes.ai.mit.edu>
5483 * getoldopt.c (getoldopt): Make `opt_index' argument a pointer to
5486 * tar.c: Modify long options per rms's suggestions:
5487 Make preserve-permissions an alias for same-permissions.
5488 Make preserve-order an alias for same-order.
5489 Define preserve to mean both of those combined.
5490 Make old an alias for old-archive.
5491 Make portability an alias for old-archive, also.
5492 Rename sym-links to dereference.
5493 Rename gnudump to incremental.
5494 Rename filename to file.
5495 Make compare an alias for diff. Leave diff but prefer compare.
5496 Rename blocking-factor to block-size.
5497 Rename chdir to directory.
5498 Make uncompress an alias for compress.
5499 Rename confirm to interactive.
5500 Make get an alias for extract.
5501 Rename volume-header to volume.
5503 Also make +version an alias for -version.
5505 (options): Shorten code that interprets long options by using
5506 the equivalent short options' code. This also makes it tons
5507 easier to change the long options.
5509 (describe): Make usage message more internally consistent
5512 1989-11-20 hack@ai.mit.edu
5514 * list.c (read_and): Call check_exclude() to see if the files
5515 should be skipped on extract or list.
5517 1989-11-09 Jim Kingdon <kingdon@hobbes.ai.mit.edu>
5519 * buffer.c (fl_read): Fix typos in error message
5520 "tar EOF not on block boundary".
5522 1989-10-23 <hack@ai.mit.edu>
5524 * tar.c (long_options[]): Add an option for blocked compression.
5526 1989-10-19 <hack@ai.mit.edu>
5528 * buffer.c (writeerror): Print a more useful error msg.
5530 1989-09-27 <hack@ai.mit.edu>
5532 * tar.c (main): Mention "tar -help" if the luser types a non-workable
5535 1989-09-11 <hack@ai.mit.edu>
5537 * tar.c (options): Have -F correctly set info_script.
5539 1989-08-29 <hack@ai.mit.edu>
5541 * Makefile Include ChangeLog in tar.tar and tar.tar.Z
5543 1989-08-28 <hack@ai.mit.edu>
5545 * tar.c (options) Made -F imply -M.
5546 Also remind tar that the -f option takes an argument!
5548 * Modified -F option to make it do what (I think) it
5549 should. e.g, if you say -F, tar won't send a msg to
5550 msg_file and wait for a <return> It'll just run the program
5551 it was given, and when the prog returns, the new tape had
5552 *better* be ready...
5554 * buffer.c (open_archive): Give error message and abort if
5555 the luser didn't give an archive name.
5557 1989-08-25 Joy Kendall <jak@hobbes>
5559 * Added code to make a new option to run a specified script at
5560 the end of each tape in a multi-volume backup. Changed: tar.c:
5561 made new switch, -F, and new long-named option, "info-script".
5562 Code is where you would expect.
5563 * tar.h: added flag f_run_script_at_end, and an extern char *
5564 called info_script, which optarg gets set to.
5565 * buffer.c (new_volume): if f_run_script_at_end is set, we give
5566 info_script to system(), otherwise we do what we've always done.
5568 1989-08-24 Joy Kendall <jak@spiff>
5569 (These changes made over the course of 6/89 - 8/89)
5571 * diffarch.c: diff_archive: Added switches for LF_SPARSE in the
5572 case statements that needed it. Also, skip any extended headers
5573 if we need to when we skip over a file. (need to change the bit
5574 about, if the size doesn't agree AND the file is NOT sparse,
5575 then there's a discrepancy, because I added another field to
5576 the header which should be able to deal with the sizes): If
5577 the file is sparse, call the added routine "diff_sparse_files"
5578 to compare. Also added routine "fill_in_sparse_array".
5580 * extract.c: extract_archive: added the switch LF_SPARSE to the
5581 case statement as needed, and code to treat the sparse file.
5582 At label "again_file", modified opening the file to see if we
5583 should have O_APPEND be one of the modes. Added code at label
5584 "extract_file" to call the new routine "extract_sparse_file"
5585 when we have an LF_SPARSE flag.
5587 Note: really should erase the commented-out code in there,
5588 because it's confusing.
5590 * update.c: made sure that if a file needed to be "skipped"
5591 over, it would check to see if the linkflag was sparse, and if
5592 so, would then make sure to skip over any "extended headers"
5593 that might come after the header itself. Do so by calling
5594 "skip_extended_headers".
5596 * create.c: create_archive: added code to detect a sparse file
5597 when in the long case statement. Added ways to detect extended
5598 headers, and label "extend" (ack! should get rid of that, is
5599 atrocious). Call the new routine "finish_sparse_file" if the
5600 linkflag is LF_SPARSE to write the info to the tape. Also added
5601 routines "init_sparsearray", "deal_with_sparse", "clear_buffer",
5602 "where_is_data", "zero_record", and "find_new_file_size".
5604 * tar.h: Added the #define's SPARSE_EXT_HDR and SPARSE_IN_HDR.
5605 Added the struct sparse and the struct sp_array. Added the
5606 linkflag LF_SPARSE. Changed the tar header in several ways:
5607 - added an array of struct sparse's SPARSE_IN_HDR long
5608 - added a char flag isextended
5609 - added a char string realsize to store the true size of a sparse file
5610 Added another choice to the union record called a struct
5611 extended_header, which is an array of 21 struct sparse's and a
5612 char isextended flag. Added flag f_sparse_file to list of flags.
5614 * tar.c: added long-named options to make tar compatible with
5615 getopt_long, changed Makefile.
5617 1989-03-03 David MacKenzie (edf at rocky2.rockefeller.edu)
5618 (I'm not completely sure all these have been integrated -- FP.)
5620 * buffer.c [USG]: ifdef'd out #include <sys/file.h>.
5621 (close_archive): SysV doesn't have ftruncate, so substituted
5622 fmtwrite (just copied the code for MS-DOS).
5623 * create.c: Unos lacks <sys/sysmacros.h> so provided a substitute.
5624 (start_header): Only strip leading paths if f_relative_paths is true.
5626 (extract_archive): Only strip leading paths if
5627 f_relative_paths is true. Because the Unos filesystem has
5628 only one timestamp, moved the utime call to after the chown
5630 * getdate.y: Don't define ftime if Unos.
5631 * list.c: Defined size_t for Unos. [USG]: Don't include <sys/file.h>.
5632 Define <sys/sysmacros> stuff manually for Unos.
5633 (decode_header): Add braces around switch cases; some compilers
5635 (print_header): Changed UGSWIDTH from 11 to 25 because the smaller
5636 value made tape listings of files owned by more than one user
5637 gradually get wider, making them hard to read.
5638 * port.c: Don't include <sys/file.h> if SysV. Define
5640 (mkdir): Add code to support Unos makedir sys call.
5641 (getopt): Use malloc instead of alloca, because tar doesn't
5642 use alloca anywhere else and many systems lack it. A few other
5643 changes from the current version of getopt.c incorporated.
5644 * rtape_lib.c: Undefine RMTIOCTL. Doesn't seem to be needed,
5645 and can't compile on Unos/SysV with it defined. Might need to be
5647 * tar.c: Alias addname to add_name and rmdir to deldir on Unos
5648 due to C library weirdness.
5649 (options): Recognize new -P option to set f_relative paths.
5650 (describe): Clean up error message and add -P description.
5651 * tar.h: Add variable, f_relative_paths, to cause tar to strip
5652 leading `/' characters in pathnames during create and extract.
5653 * tar.texinfo: Fixed a couple of typos, detected by texi2roff.
5654 * update.c: Simulate <sys/sysmacros.h> for Unos.
5656 Previous releases by Jay Fenlason (hack@ai.mit.edu)
5658 * Version 1.07 --- New version to go on beta tape with GCC 1.35.
5659 Better USG support. Also support for __builtin_alloca if we're
5662 * diffarch.c: Include the correct header files so MTIOCTOP
5664 * tar.c: Don't print the verbose list of options unless
5665 given -help. The list of options is *way* too long.
5667 * Version 1.06 --- [__STDC__]: Use STDC_MSG.
5668 ENXIO meand end-of-volume in archive (for the UNIX PC)
5669 Added break after volume-header case (line 440) extract.c
5670 Added patch to rtape_lib.c (reported by Arnold Robbins).
5671 Added f_absolute_paths option.
5672 Deleted refereces to UN*X manual sections (dump(8), etc)
5673 Fixed to not core-dump on illegal options
5674 Modified msg_perror to call perror("") instead of perror(0)
5676 Fixed tar.c so 'tar cf - -C dir' doesn't core-dump
5677 tar.c (name_match): Fixed to chdir() to the appropriate
5678 directory if the matching name's change_dir is set. This
5679 makes tar xv -C foo {files} work.
5681 * Version 1.05 --- A fix to make confirm() work when the archive is
5682 on stdin; include 'extern FILE *msg_file;' in pr_mkdir().
5683 * tar.h [__STDC__]: Fix to work.
5685 Added to port.c: mkdir() ftruncate(): Removed: lstat()
5686 Fixed -G to work with -X
5687 Another fix to tar.texinfo
5688 Changed tar.c to say argv[0]":you must specify exactly ...
5689 buffer.c: modified child_open() to keep tar from hanging when
5690 it is done reading/writing a compressed archive
5691 added fflush(msg_file) before printing error messages
5692 create.c: fixed to make link_names non-absolute
5694 * Version 1.04 --- Added functions msg() and msg_perror(): Modified
5695 all the files to call them. Also checked that all (I hope) calls
5696 to msg_perror() have a valid errno value.
5697 (modified anno() to leave errno alone), etc.
5698 Re-fixed the -X option. This time for sure...
5699 re-modified the msg stuff. flushed anno() completely
5700 Modified the directory stuff so it should work on sysV boxes
5701 added ftime() to getdate.y
5702 Fixed un_quote_string() so it won't wedge on \" Also fixed
5703 \ddd (like \123, etc)
5704 More fixes to tar.texinfo
5706 * Version 1.03 --- Fixed buffer.c so 'tar tzf NON_EXISTENT_FILE'
5707 returns an error message instead of hanging forever.
5708 More fixes to tar.texinfo.
5710 * Version 1.02 --- Fixed tar.c so 'tar -h' and 'tar -v' don't cause
5711 core dump. Also fixed the 'usage' message to be more up-to-date.
5712 * diffarch.c [!MTIOCTOP]: Fixed so verify should compile.
5714 * Version 1.01 --- Fixed typoes in tar.texinfo.
5715 Fixed a bug in the #define for rmtcreat().
5716 Fixed the -X option to not call realloc() of 0.
5718 * Version 1.00 --- version.c added. -version option added.
5719 Installed new version of the remote-tape library.
5723 ----- tests/ChangeLog -----
5725 1997-04-25 François Pinard <pinard@iro.umontreal.ca>
5729 * gzip.sh, ignfail.sh: Adjust to new delayed error exit message.
5731 * Makefile.am (BUILT_SOURCES): Define as preset, so preset is
5732 regenerated if configuration changes.
5734 * Makefile.am (TESTS): Nevertheless include delete01.sh.
5735 (POSTPONED_TESTS): Adjusted.
5736 Reported by Andreas Schwab.
5738 * delete02.sh: Mention f - explicitly, do not assume it, in case
5739 $TAPE is defined or the default archive has been overridden.
5740 Reported by Andreas Schwab.
5742 1997-04-24 François Pinard <pinard@iro.umontreal.ca>
5744 * after: Unredirect stdout and stderr before removing the files.
5745 If redirections are to NFS files, removing them while they are
5746 still opened may have strange effects, failing almost all tests.
5747 Reported by Kaveh R. Ghazi.
5749 1997-04-22 François Pinard <pinard@iro.umontreal.ca>
5753 * extrac03.sh: New file.
5754 * Makefile.am (TESTS): Adjusted.
5755 Reported by Marc Boucher.
5757 * preset.in (LC_MESSAGES): Clear value before tests.
5758 Reported by Sven Verdoolaege.
5760 * Makefile.am (INCLUDES): Adjust so config.h gets found.
5762 * genfile.c (usage): Corrected.
5764 * delete01.sh: New name for delete.sh.
5765 * delete02.sh: New file.
5766 * Makefile.am (TESTS): Adjusted.
5767 Reported by Vince Del Vecchio.
5769 * Makefile.am (POSTPONED_TESTS): To contain the --delete tests.
5771 (EXTRA_DIST): Include $(POSTPONED_TESTS). The purpose is getting
5772 the tests distributed, but not executed. These flaky tests are to
5773 be addressed only after 1.12 is released.
5775 1997-04-19 François Pinard <pinard@iro.umontreal.ca>
5777 * Makefile.am (AUTOMAKE_OPTIONS): Declare ../src/ansi2knr.
5778 * (DEFS): New, for defining LOCALEDIR.
5779 * (genfile.o): Deleted, will be implied from DEFS above.
5780 Reported by Bruno Haible and Kaveh R. Ghazi.
5782 1997-04-17 François Pinard <pinard@iro.umontreal.ca>
5786 * genfile.c (usage): Add a program description.
5787 (main): Output --version according to recent GNU standards.
5789 1997-04-15 François Pinard <pinard@iro.umontreal.ca>
5791 * ignfail.sh: Ensure the test does not fail if run as super-user.
5792 Reported by John David Anglin.
5794 1997-04-12 François Pinard <pinard@iro.umontreal.ca>
5796 * genfile.c (pattern): Remove trailing comma for last enum item.
5797 Reported by Bruno Haible.
5799 1997-04-11 François Pinard <pinard@iro.umontreal.ca>
5803 1997-03-29 François Pinard <pinard@iro.umontreal.ca>
5805 * ignfail.sh: New file.
5806 * Makefile.am (TESTS): Adjusted.
5807 Reported by Ralph Schleicher.
5809 1997-03-24 François Pinard <pinard@iro.umontreal.ca>
5811 * genfile.c: Implement --pattern=default/zeros.
5813 1997-02-25 François Pinard <pinard@iro.umontreal.ca>
5816 * Makefile.am (TESTS): Adjusted.
5817 Reported by Daniel Trinkle.
5819 1997-01-21 François Pinard <pinard@iro.umontreal.ca>
5821 * extrac01.sh: New name for extract.sh.
5822 * extrac02.sh: New file.
5823 * Makefile.am (TESTS): Adjusted.
5824 Reported by Axel Boldt.
5826 1996-11-25 François Pinard <pinard@iro.umontreal.ca>
5828 * genfile.c (usage): Typo in message.
5829 Reported by Christian Kirsch.
5831 1996-11-22 François Pinard <pinard@iro.umontreal.ca>
5833 * incremen.sh: New file.
5834 Reported by Wolfram Wagner.
5836 * append.sh, delete.sh: New files.
5837 * Makefile.am (TESTS): Adjusted.
5838 Reported by Andreas Schwab.
5840 * before: Ensure .. on PATH, so genfile may be found.
5841 * Makefile.am ($(TESTS)): Depend on genfile, waiting for Automake
5842 to be adjusted to do the proper thing for parallel make.
5844 * gzip.sh: New name for childerr.sh.
5845 * extract.sh: New name for direxist.sh.
5846 * volume.sh: New name for volcheck.sh.
5847 * Makefile.am: Adjusted.
5849 * All tests: Use set -e whenever appropriate. Use "" instead of
5850 '' for out and err, so allowing us to use escaped newlines. In
5851 case of multiple output in a single test, ensure separator lines.
5853 1996-11-06 François Pinard <pinard@iro.umontreal.ca>
5855 * Prerelease 1.11.13.
5857 * childerr.sh, direxist.sh, volcheck.sh: Use sh, not bash.
5858 Reported by John David Anglin.
5860 1996-09-20 François Pinard <pinard@iro.umontreal.ca>
5863 * Makefile.am (TESTS): Adjusted.
5865 1996-09-19 François Pinard <pinard@iro.umontreal.ca>
5867 * Prerelease 1.11.12.
5869 * Makefile.am ($(TESTS)): Depend on preset.
5870 * version.sh (PATH): Adjust for multi-line --version output.
5871 * preset.in (LANG, LANGUAGE): Export them, so gzip does not
5872 localise its own output.
5873 (echo_n, echo_c): Define from the result of echo configuration.
5874 * after: Handle echo with newline suppressed.
5876 1996-09-09 François Pinard <pinard@iro.umontreal.ca>
5878 * childerr.sh, direxist.sh, before, after: New files.
5879 * Makefile.am: Adjusted.
5881 1996-09-04 François Pinard <pinard@iro.umontreal.ca>
5883 * ChangeLog, Makefile.am, pretest.in, version.sh: New files.
5884 * checktar.sh, genfile.c: New files, moved from src/.
5886 A regression test is an old dream for GNU tar.
5887 Reported by Tom Tromey and Robert Bernstein.