ebc522d521(all_names_found): Remove check for matching_flags.
Sergey Poznyakoff
2007-03-30 19:18:35 +00:00
ad85f632c6(transform_member_name): New function (decode_header): Use transform_member_name
Sergey Poznyakoff
2007-03-30 19:18:24 +00:00
062b37115f(extract_link, extract_symlink): Use transform_member_name instead of safer_name_suffix so that --transform and --strip-components affect links as well.
Sergey Poznyakoff
2007-03-30 19:18:10 +00:00
6261c58ae8(transform_name_fp): Change signature (transform_member_name): New function
Sergey Poznyakoff
2007-03-30 19:17:44 +00:00
b9588c4722(struct exclude_tag): rename to exclusion_tag (check_exclusion_tags): New function (cachedir_file_p): New function (from check_cache_directory) (dump_dir0,dump_file0): Use check_exclusion_tags
Sergey Poznyakoff
2007-01-23 10:25:06 +00:00
9a41b3b3db(exclude_caches_option): Remove (enum exclusion_tag_type): New data type (add_exclude_tag): Rename to add_exclusion_tag (cachedir_file_p): New prototype
Sergey Poznyakoff
2007-01-23 10:24:43 +00:00
990e7d4437Document --exclude-caches* and --exclude-tag* options.
Sergey Poznyakoff
2007-01-23 10:24:19 +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
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
8241687465Skip 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
8e3f3adf98Port 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
e35d05b1d2Use 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
643e3f2441Update documentation of --exclude-tag
Sergey Poznyakoff
2006-12-07 14:33:30 +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
c930802f31Port 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
ca14885884Remove trailing white space.
Paul Eggert
2006-11-29 18:28:45 +00:00
01d6188297Remove trailing white space.
Paul Eggert
2006-11-29 18:16:27 +00:00
759c5208c5Remove trailing white space.
Paul Eggert
2006-11-29 18:11:34 +00:00
8457e06b99Do not depend on command timing.
Sergey Poznyakoff
2006-11-13 10:42:19 +00:00
7aed52718fCall 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
fde336b21a(AT_KEYWORDS): Keyword `filechange' Test tar exit status.
Sergey Poznyakoff
2006-10-14 21:12:42 +00:00
394b12d950New test grow.at
Sergey Poznyakoff
2006-10-14 21:12:04 +00:00
372638ae7aDo 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