Commit Graph

  • 173d3229e3 Update Sergey Poznyakoff 2007-01-19 15:43:13 +00:00
  • 2d261da8f9 Version 1.16.2 Sergey Poznyakoff 2007-01-19 15:42:43 +00:00
  • 99527fa17b (sparse_skip_file,pax_dump_header_1) (pax_decode_header): Keep track of the number of bytes written. Sergey Poznyakoff 2007-01-19 15:42:26 +00:00
  • 868ee74028 (expand_sparse): use ftruncate to handle the trailing hole Sergey Poznyakoff 2007-01-19 15:41:55 +00:00
  • 8c90bf0414 Fix typos Sergey Poznyakoff 2007-01-19 15:41:39 +00:00
  • 892cdea8a1 Require strerror Sergey Poznyakoff 2007-01-19 15:41:32 +00:00
  • 00763876f1 Update Sergey Poznyakoff 2007-01-04 20:06:33 +00:00
  • 1a1cfaafa6 (list_dumpdir): Minor fixes. Sergey Poznyakoff 2007-01-04 20:05:32 +00:00
  • 445d95be07 (diff_dumpdir): Compare directory contents using dumpdir_cmp. Do not free dumpdir_buffer, it will leave the incremental directory table in the inconsistent state and trigger full dump. (read_and_process): Process dumpdirs no matter what the archive format. Sergey Poznyakoff 2007-01-04 20:05:05 +00:00
  • 6fe55234c9 Update Sergey Poznyakoff 2007-01-04 16:16:00 +00:00
  • e24d8574a8 (read_and_process): Fix type of "size" Sergey Poznyakoff 2007-01-04 16:15:10 +00:00
  • 4da5205ed6 Update Sergey Poznyakoff 2006-12-13 08:22:18 +00:00
  • 8241687465 Skip the test if genfile is not able to create the filename with an embedded newline. Sergey Poznyakoff 2006-12-13 08:22:04 +00:00
  • 8e3f3adf98 Port to Forte Developer 7 C 5.4 and C99. * src/common.h (add_exclude_tag): Add decl; C99 requires this and Forte warns about it. * src/incremen.c: Include <mkdtemp.h> for mkdtemp prototype, for same reason. * src/misc.c (get_max_open_files): Rewrite to avoid code that Forte C complains about as being unreachable. * src/xheader.c (mtime_code): Rewrite to avoid Forte error reported by Trond Hasle Amundsen. Paul Eggert 2006-12-12 23:56:24 +00:00
  • e5ef01710a Fix wording release_1_16_1 Sergey Poznyakoff 2006-12-08 16:59:56 +00:00
  • e70e63612a Update Sergey Poznyakoff 2006-12-08 16:45:34 +00:00
  • 28b26242c7 Add paxutils files to dot_ignore. Sergey Poznyakoff 2006-12-08 16:45:09 +00:00
  • 6b279a6f8c Update Sergey Poznyakoff 2006-12-08 13:40:15 +00:00
  • 079f2d6807 Raise version number to 1.16.1 Sergey Poznyakoff 2006-12-08 13:40:07 +00:00
  • b09417ca8d (slurp): Create .(cvs|git)ignore if not present Sergey Poznyakoff 2006-12-08 13:39:58 +00:00
  • b15e3f1bbd Remove autogenerated files Sergey Poznyakoff 2006-12-08 12:42:32 +00:00
  • 1616b1d1b4 Update Sergey Poznyakoff 2006-12-07 14:35:13 +00:00
  • f23bc997fd Update Sergey Poznyakoff 2006-12-07 14:34:48 +00:00
  • 8ec119a27f Update Sergey Poznyakoff 2006-12-07 14:34:28 +00:00
  • e35d05b1d2 Use genfile instead of dd, because on some systems /dev/zero is not available. Sergey Poznyakoff 2006-12-07 14:34:15 +00:00
  • cdb77dcd7b (extract_file): Call skip_member if open fails. Patch proposed by Jan-Benedict Glaw <jbglaw@lug-owl.de> Sergey Poznyakoff 2006-12-07 14:33:54 +00:00
  • 9bf87b195e (dump_dir0): Move checks for exclude tags to dump_file0. (dump_dir): Move calls to ensure_slash to dump_file0 Sergey Poznyakoff 2006-12-07 14:33:42 +00:00
  • 643e3f2441 Update documentation of --exclude-tag Sergey Poznyakoff 2006-12-07 14:33:30 +00:00
  • 6e75833cb7 (distclean-local): Fixed Sergey Poznyakoff 2006-12-07 14:33:17 +00:00
  • 908d78d208 * NEWS: Fix some race conditions with tar -x --same-owner. * src/extract.c (ARCHIVED_PERMSTATS): Add a comment saying that S_IRWXG | S_IRWXO might be masked out. (set_mode): Set the mode if some bits were masked out originally. (set_stat): Don't chmod before chown, as that might temporarily grant permissions that we don't want to grant. The chmod was there only to work around broken hosts, so add a comment advising users not to use those broken hosts instead. (repair_delayed_set_stat, extract_dir): Remember to mask out current umask before inverting permissions. (extract_dir): If the owner might change, or if the mode has special bits, create the directory 700 at first, but restore it later. (open_output_file): New arg mode; all uses changed. (extract_file, extract_node, extract_fifo): If the owner might change, omit group and other bits at first, but restore them after changing the owner. Paul Eggert 2006-12-04 21:35:56 +00:00
  • 192f55e2a0 * doc/tar.texi (Long Options): Remove doubled word. Paul Eggert 2006-12-04 09:33:31 +00:00
  • 9d99fd13cd Update Sergey Poznyakoff 2006-11-30 09:54:07 +00:00
  • 07902e9f9a (xheader_read): Remove unused variable Sergey Poznyakoff 2006-11-30 09:53:20 +00:00
  • 0c94a109b9 Update Sergey Poznyakoff 2006-11-30 09:42:59 +00:00
  • 27094c4fc3 Implement --update-po and .bootstrap Sergey Poznyakoff 2006-11-30 09:42:12 +00:00
  • 5aca761e1b Remove src/mangle.c Sergey Poznyakoff 2006-11-30 09:41:50 +00:00
  • cc82db7f2d (exclude): Document --exclude-tag Sergey Poznyakoff 2006-11-30 09:41:42 +00:00
  • 137ebf41fd (dump_dir0): Implement --exclude-tag option Sergey Poznyakoff 2006-11-30 09:40:47 +00:00
  • 49ea4c5057 * NEWS: Remove support for mangled names. * doc/tar.texi (verbose tutorial): Likewise. * src/Makefile.am (tar_SOURCES): Remove mangle.c. * src/common.h (extract_mangle): Remove decl. * src/extract.c (extract_mangle_wrapper): Remove. (prepare_to_extract): Remove support for mangled names. * src/list.c (read_and, print_header): Likewise. * src/mangle.c: Remove. * src/tar.h (GNUTYPE_NAMES): Remove. Paul Eggert 2006-11-30 06:39:29 +00:00
  • 409bddf38c * lib/.cvsignore: Add fstatat.c, gnulib.mk, openat-proc.c, same-inode.h, stat_.h, tempname.c, tempname.h, uinttostr.c. Paul Eggert 2006-11-30 06:27:24 +00:00
  • c930802f31 Port to latest gnulib. There were a lot of changes, so the simplest way to get this up and running was to switch to coreutils bootstrap procedure. I noticed one feature missing after this merge: the ability to update a single .po file. I can add that later if need be. * README-cvs, bootstrap.conf: New files. * lib/.cvsignore: Remove Makefile.am, printf-parse.c, vasnprintf.c. * lib/printf-parse.c, lib/vasnprintf.c: New files, from coreutils, to override gnulib, so that we don't need xsize.h. * bootstrap: Replace with coreutils bootstrap, except add support for paxutils. * configure.ac (gl_USE_SYSTEM_EXTENSIONS): Remove, as gl_EARLY now does this. (gl_EARLY, gl_INIT): Add. (tar_GNULIB): Remove. * gnulib.modules: Add configmake. * lib/Makefile.tmpl: Remove, replacing with.... * lib/Makefile.am: New file. * src/Makefile.am (tar.o): Remove dependency: Automake does this for us. * src/tar.c: Include <configmake.h> and <rmt-command.h>, not <localedir.h>. Paul Eggert 2006-11-30 00:14:10 +00:00
  • ca14885884 Remove trailing white space. Paul Eggert 2006-11-29 18:28:45 +00:00
  • 01d6188297 Remove trailing white space. Paul Eggert 2006-11-29 18:16:27 +00:00
  • 759c5208c5 Remove trailing white space. Paul Eggert 2006-11-29 18:11:34 +00:00
  • 8457e06b99 Do not depend on command timing. Sergey Poznyakoff 2006-11-13 10:42:19 +00:00
  • 8719c4f680 Update Sergey Poznyakoff 2006-11-13 10:41:47 +00:00
  • 574022ab78 Do not use 'k' modifier in dd options. Sergey Poznyakoff 2006-11-13 10:41:34 +00:00
  • 304d8b9f0c (start_header): Pass mtime as a call-specific data to xheader_store. Sergey Poznyakoff 2006-11-13 10:39:51 +00:00
  • 6712656eb2 (mtime_coder): Treat non-null data as a pointer to struct timespec, overriding st->mtime Sergey Poznyakoff 2006-11-13 10:39:15 +00:00
  • 415d9c9e15 Update copyright year Sergey Poznyakoff 2006-11-01 00:30:45 +00:00
  • 1a8141ab8a Update Sergey Poznyakoff 2006-11-01 00:24:44 +00:00
  • 023c766600 Do not assume tar's default archive is stdout Sergey Poznyakoff 2006-11-01 00:24:19 +00:00
  • fdb46aa2e2 Add more keywords Sergey Poznyakoff 2006-11-01 00:24:09 +00:00
  • 2504e7d3ae Add new test cases. Sergey Poznyakoff 2006-11-01 00:23:52 +00:00
  • b0765e257c (enum read_file_list_state.file_list_skip): New value (read_name_from_file): Skip zero-length entries Sergey Poznyakoff 2006-11-01 00:23:24 +00:00
  • 73d4c40a87 Update Sergey Poznyakoff 2006-10-31 20:19:30 +00:00
  • 7aed52718f Call last_component instead of base_name. The latter returns a malloced string since 2006-03-11. Sergey Poznyakoff 2006-10-31 20:18:50 +00:00
  • f572ca0cfb Update release_1_16 Sergey Poznyakoff 2006-10-21 16:48:08 +00:00
  • 29236a68fa (distclean-local): New rule Sergey Poznyakoff 2006-10-21 16:47:56 +00:00
  • a4b1564d4a Version 1.16 Sergey Poznyakoff 2006-10-21 16:47:42 +00:00
  • 94d0385a57 Update Sergey Poznyakoff 2006-10-17 08:14:06 +00:00
  • 603c1d60a6 Fix help output formatting. Thanks Benno Schulenberg. Sergey Poznyakoff 2006-10-17 08:13:43 +00:00
  • 29e9004b69 Update Sergey Poznyakoff 2006-10-16 07:51:40 +00:00
  • 8da152d2b3 Update Sergey Poznyakoff 2006-10-16 07:49:00 +00:00
  • 00746182f3 (dist-hook): Create a cpio archive. Sergey Poznyakoff 2006-10-16 07:48:51 +00:00
  • 6c8815909d Update Sergey Poznyakoff 2006-10-14 21:13:28 +00:00
  • fde336b21a (AT_KEYWORDS): Keyword `filechange' Test tar exit status. Sergey Poznyakoff 2006-10-14 21:12:42 +00:00
  • 394b12d950 New test grow.at Sergey Poznyakoff 2006-10-14 21:12:04 +00:00
  • 372638ae7a Do not attempt to close stderr after call to close_stdout. Sergey Poznyakoff 2006-10-14 21:11:43 +00:00
  • c455373e5b (dump_regular_file,dump_file0): Set exit_status to TAREXIT_DIFFERS if the file being dumped was truncated or otherwise changed. Sergey Poznyakoff 2006-10-14 21:11:27 +00:00
  • f2541c66cd (Synopsis): Document tar exit codes. Sergey Poznyakoff 2006-10-14 21:11:03 +00:00
  • 7e6d54d0c0 Update Sergey Poznyakoff 2006-10-14 10:48:14 +00:00
  • 876e554157 (AT_KEYWORDS): Add stdout keyword Sergey Poznyakoff 2006-10-14 10:46:24 +00:00
  • 1118d24fd3 New test verbose.at Sergey Poznyakoff 2006-10-14 10:46:13 +00:00
  • dc6f7ebf20 (_open_archive): Make sure stdlis is set to stderr when we are writing archive to stdout (unless --index-file is used). Bug introduced on 2006-07-06. Sergey Poznyakoff 2006-10-14 10:45:44 +00:00
  • 1102eeef1f Update Sergey Poznyakoff 2006-10-02 15:45:08 +00:00
  • e8a4c35a73 Add new testcase: multiv05.at: Sergey Poznyakoff 2006-10-02 15:44:52 +00:00
  • e359fad641 (xheader_string_end): Fix diagnostic message. Sergey Poznyakoff 2006-10-02 15:44:20 +00:00
  • f5504a3bae (new_volume): Initialize current_block Sergey Poznyakoff 2006-10-02 15:44:09 +00:00
  • 341be8f405 Add Joerg Weilbier Sergey Poznyakoff 2006-10-02 15:43:59 +00:00
  • 4f2a22f306 Update Sergey Poznyakoff 2006-09-27 09:03:23 +00:00
  • a76ab340dd (doc0, doc1, initialize_argp_doc): Removed. Rely on the new argp method instead Sergey Poznyakoff 2006-09-27 09:03:13 +00:00
  • 3ad3ca8734 Minor fix Sergey Poznyakoff 2006-09-27 09:03:02 +00:00
  • 82b2829e10 Use ${package} instead of hardcoding package name Sergey Poznyakoff 2006-09-27 09:02:45 +00:00
  • f852428d5f Update Sergey Poznyakoff 2006-09-12 09:59:08 +00:00
  • 86e91a5bfc Fix typo Sergey Poznyakoff 2006-09-12 09:56:39 +00:00
  • ec5743a628 * tests/testsuite.at (AT_TAR_MKHIER): Use install-sh -d rather than the no-longer-included mkinstalldirs. Paul Eggert 2006-09-08 23:29:43 +00:00
  • bf7f4fdc1e Add at-func.c, configmake.h, fchmodat.c, fcntl.h, fcntl_.h, inttypes_.h, lstat.c, lstat.h. Paul Eggert 2006-09-08 23:27:45 +00:00
  • 98b9522499 Update Sergey Poznyakoff 2006-09-08 16:47:15 +00:00
  • 6398dbe1a5 List texinfo among build prerequisites for the CVS version. Sergey Poznyakoff 2006-09-08 16:47:01 +00:00
  • 37724f5e20 (try_purge_directory): Initialize struct st. Fix condition for selecting candidates for removal. Sergey Poznyakoff 2006-09-08 16:45:41 +00:00
  • c8c351684c (intl_files_to_remove): Do not remove m4/inttypes-h.m4 and m4/inttypes-pri.m4 Sergey Poznyakoff 2006-09-08 15:17:56 +00:00
  • 01b6fb98bf * bootstrap: Set XGETTEXT_OPTIONS to flag our printf-format functions, so that translators are warned about strings that are formats but don't look like formats. This might help prevent core dumps. * configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros. Suggested by Eric Blake to avoid problems like <http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>. (AM_GNU_GETTEXT_VERSION): Upgrade from 0.12.1 to 0.15. The gettext manual says we should use the version number normally expected of maintainers, neither more nor less. Paul Eggert 2006-08-11 21:39:36 +00:00
  • f1309bffbf * bootstrap (get_translations): Don't exclude ky.po; it is working again. Paul Eggert 2006-08-11 07:44:21 +00:00
  • c732eb584e * bootstrap: Don't exclude ja.po; it is working again. Don't remove all old .po files if we're merely updating one. * po/.cvsignore: Add Makevars. Paul Eggert 2006-08-09 18:30:16 +00:00
  • 0680ad4d42 * src/tar.c: Work around limitation imposed by gettext 0.15 by concatenating strings with "\v" after translation. (doc): Remove, splitting into: (doc0, doc1): New constants. (argp): Don't use doc; just initialize to NULL. (initialize_argp_doc): New function. (decode_options): Use it. Paul Eggert 2006-08-08 05:28:32 +00:00
  • 1942370acd Fix typo: remove po/tar.html. Paul Eggert 2006-08-07 22:58:12 +00:00
  • 94de7c4c77 * bootstrap: Redo po file retrieval to match Bison's method, since the translation project changed its index format. Don't use --assume-autoconf; it's now replaced by looking in configure.ac. (m4/codeset.m4, m4/intdiv.m4, m4/inttypes-pri.m4, m4/isc-posix.m4): (m4/lcmessage.m4, m4/onceonly_2_57.m4, m4/gettext.m4, m4/glibc21.m4): (m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-prefix.m4, m4/po.m4): (m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4): Don't rename to ..._gl.m4, as this is no longer needed. (m4/geteext.m4): Patch to remove the need for intl/*. Use autopoint manually, then remove the intl files, then undo changes to gnulib files that autoreconf made, and then run aclocal/autoconf/autoheader/automake. This makes our bootstrap procedure closer to Bison's. (po/Makevars): Generate automatically. * configure.ac (AC_PREREQ): Update from 2.59 to 2.60. (gl_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Remove. * gnulib.modules: Add inttypes, stdint. * lib/.cvsignore: Add close-stream.c, close-stream.h, stdint.h, stdint_.h. * po/Makefile: Remove; now automatically generated. Paul Eggert 2006-08-07 22:57:25 +00:00
  • 05805868f2 (read_incr_db_01): Check input strings more carefully. Do not pass arbitrary char values to isspace, as this has undefined behavior. Likewise for assigning arbitrary uintmax_t values to other types. (read_negative_num, read_unsigned_num, read_timespec): New functions, to check input values a bit more carefuly. (read_num): Use read_unsigned_num. New arg MAX_VAL; all callers changed. (read_incr_db_2): Use these new functions. Use a consistent diagnostic for unexpected EOF. (read_directory_file): Do not assign arbitrary uintmax_t value to int. (read_timespec, write_directory_file_entry, write_directory_file): Handle negative time_t values correctly. We don't bother to do this with pre-2 formats, since presumably the time stamps were output incorrectly. Paul Eggert 2006-08-07 21:29:27 +00:00
  • 57aa98047e gettext 0.15 rejects this. Paul Eggert 2006-08-07 21:12:21 +00:00