Sergey Poznyakoff
338591a486
Support multiple --transform options. Support semicolon-separated lists of replace expressions.
2008-02-04 10:35:20 +00:00
Paul Eggert
c0e0d06e69
* doc/tar.texi: Update Back-Cover text to reflect new GNU wording.
...
2007-12-17 Paul Eggert <eggert@cs.ucla.edu >
Exit with nonzero status if a close fails on an archive.
Problem (and initial trivial fix)
* src/buffer.c (close_archive, new_volume): close_error, not close_warn.
2008-01-31 00:50:12 +00:00
Sergey Poznyakoff
5f4d99491d
(check_compressed_archive): Do not bail out if the
...
file is too short, set boolean flag, passed as an argument
instead. This fixes a bug introduced on 2007-08-24. See also
tests/shortupd.at.
2007-12-05 09:45:22 +00:00
Paul Eggert
48d83be336
Don't read from name[-1].
...
* src/incremen.c (make_directory): Handle namelen == 0, since
find_directory_meta calls make_directory ("").
2007-11-13 07:01:26 +00:00
Sergey Poznyakoff
dfd87ba1d0
(magic): Fix lzma option
2007-10-31 13:10:55 +00:00
Sergey Poznyakoff
8e3a2a520d
(sys_exec_info_script,sys_exec_checkpoint_script): pass the current blocking factor in TAR_BLOCKING_FACTOR environment variable.
2007-10-31 12:56:46 +00:00
Sergey Poznyakoff
745832a280
New actions: bell and ttyout
2007-10-31 12:56:27 +00:00
Sergey Poznyakoff
ec4741d732
(parse_opt): New options --hard-dereference, --checkpoint-action.
...
(decode_options): Call checkpoint_finish_compile.
2007-10-29 16:56:56 +00:00
Sergey Poznyakoff
bed7de0271
(sys_exec_checkpoint_script): New function.
...
(sys_exec_info_script): Restore SIGPIPE handler.
2007-10-29 16:56:33 +00:00
Sergey Poznyakoff
eaaadcfd36
(file_count_links): do nothing if hard_dereference_option is set.
2007-10-29 16:56:13 +00:00
Sergey Poznyakoff
a8830fbb86
(enum checkpoint_style): Remove.
...
(checkpoint_style): Remove.
(DEFAULT_CHECKPOINT): New define.
(hard_dereference_option): New variable.
(sys_exec_checkpoint_script): New declaration.
2007-10-29 16:55:58 +00:00
Sergey Poznyakoff
848659f1c6
(checkpoint, do_checkpoint): Remove.
...
(_flush_write, simple_flush_read, _gnu_flush_read): Use
checkpoint_run.
2007-10-29 16:55:37 +00:00
Sergey Poznyakoff
17cbd4862c
checkpoint handling
2007-10-29 16:55:16 +00:00
Sergey Poznyakoff
64ded9e702
(tar_SOURCES): add checkpoint.c
2007-10-29 16:54:51 +00:00
Sergey Poznyakoff
eb59c14a1f
(sys_exec_info_script): Initialize buf. Problem reported by Bengt-Arne Fjellner.
2007-10-29 08:51:46 +00:00
Paul Eggert
3c4f4ca423
Avoid compiler warnings.
...
* src/list.c (read_header_primitive): Define two locals, to
avoid incorrect "may be used uninitialized" warnings.
* src/incremen.c (procdir): Remove decl of unused local, "len".
expired.
SCALAR(0x830b08c)
2007-10-18 21:36:38 +00:00
Sergey Poznyakoff
620a136e74
New options --auto-compress (-a) and --lzma
2007-10-17 09:11:34 +00:00
Sergey Poznyakoff
3fb5d67b28
(set_comression_program_by_suffix): New prototype.
2007-10-17 09:11:23 +00:00
Sergey Poznyakoff
c30a794679
(magic): Add an entry for new lzma format. Proposed by Lasse Collin
2007-10-17 09:11:08 +00:00
Sergey Poznyakoff
00bb0d8f5c
Add suffix.c
2007-10-17 09:10:46 +00:00
Sergey Poznyakoff
af3e05b6af
New file. Determine compression algorithm by archive file name suffix. Suggested by Jean-Pierre Demailly.
2007-10-17 09:10:34 +00:00
Paul Eggert
6060d613d1
* src/utf8.c (string_ascii_p): Recode to avoid bogus GCC 4.2.1
...
warning about "comparison is always true due to limited range of
data type" when char is unsigned.
2007-10-13 05:49:18 +00:00
Sergey Poznyakoff
4ece30109d
(dump_regular_file): Fix file padding in case of truncation to zero size.
2007-10-05 11:20:27 +00:00
Sergey Poznyakoff
6f6864df13
(try_purge_directory): Ensure that arguments to T and R are safe.
2007-10-03 20:18:32 +00:00
Sergey Poznyakoff
1ef212d0fb
(obstack_code_rename): Apply safer_name_suffix to name arguments before storing them in T and R records. Reported by Nicholas Cole.
2007-09-29 00:47:59 +00:00
Sergey Poznyakoff
63e835f5c0
New option --exclude-vcs
...
(exclude_vcs_files): New function
2007-09-26 22:08:36 +00:00
Sergey Poznyakoff
efe6609cd9
(struct directory): New member tagfile
...
(make_directory): Initialize tagfile to NULL
(procdir): New argument: entry
Hanlde exclusion tags.
(makedumpdir): Take into account directory->tagfile.
(scan_directory): Hanlde exclusion tags.
2007-09-26 22:08:13 +00:00
Sergey Poznyakoff
b0d5935cb0
(exclusion_tag_warning, check_exclusion_tags): Remove static qualifier.
...
(check_exclusion_tags): account for dirname without terminating
slash.
(dump_dir0): exclusion_tag_all is handled elsewhere.
2007-09-26 22:07:44 +00:00
Sergey Poznyakoff
a1b1b7cc8a
(exclusion_tag_warning, check_exclusion_tags): New prototypes
2007-09-26 22:06:43 +00:00
Sergey Poznyakoff
c485b7984d
(apply_nonancestor_delayed_set_stat): Rename st->sb to avoid shadowing another local.
2007-08-26 09:01:38 +00:00
Sergey Poznyakoff
d769b724f4
(diff_dumpdir): Rename stat->stat_data to avoid shadowing the syscall.
2007-08-26 09:01:08 +00:00
Sergey Poznyakoff
a0eb52da3f
(check_exclusion_tags): Remove declaration of unused local, "ret".
2007-08-26 08:59:28 +00:00
Sergey Poznyakoff
87ac3207fb
Don't include <getline.h>. No longer needed.
2007-08-26 08:59:08 +00:00
Sergey Poznyakoff
7c0b81cbb9
(check_compressed_archive): Detect files smaller than 512 bytes.
2007-08-24 12:07:32 +00:00
Sergey Poznyakoff
e2b8c8fa9f
(contains_dot_dot): Fix double-dot recognition in case of duplicate /. Patch by Dmitry V. Levin.
2007-08-12 08:25:00 +00:00
Sergey Poznyakoff
a0fb51e136
Relicense under GPLv3
2007-06-27 13:30:12 +00:00
Sergey Poznyakoff
fe576585e6
(decode_xform): Exempt symbolic links from component
...
stripping and name suffix normalization.
2007-06-01 21:24:30 +00:00
Sergey Poznyakoff
080a6b2ac5
Update calls to transform_member_name
2007-06-01 21:24:08 +00:00
Sergey Poznyakoff
f236f33643
(xform_type): New data type
...
(transform_member_name): Last argument is of xform_type type
All callers updated
2007-06-01 21:23:53 +00:00
Sergey Poznyakoff
967fcb9318
(decx): Unknown pax keywords produce a warning,not error.
2007-05-30 19:15:17 +00:00
Paul Eggert
12b3a5d5b1
* src/misc.c (set_file_atime): Use gl_futimens, not futimens,
...
due to gnulib change.
SCALAR(0x828a248)
SCALAR(0x828a404)
2007-05-29 16:48:23 +00:00
Sergey Poznyakoff
250db35f17
Global extended_header removed, use new xheader calls instead.
2007-05-19 17:03:28 +00:00
Sergey Poznyakoff
6f929b2c89
(buffer_write_global_xheader): New function
...
Update to use new xheader calls.
2007-05-19 17:03:01 +00:00
Sergey Poznyakoff
64cddf2fbc
(xheader_init): New function
...
(xheader_decode_global,xheader_store,xheader_read)
(xheader_write_global,xheader_write,xheader_string_begin)
(xheader_string_add,xheader_string_end): Take xhdr as first
argument.
2007-05-19 17:02:46 +00:00
Sergey Poznyakoff
ccdbafb276
(struct xheader): New definition
...
(struct tar_stat_info): New member xhdr (extended header).
2007-05-19 17:02:29 +00:00
Sergey Poznyakoff
bd222d606a
(buffer_write_global_xheader): New function
...
(struct xheader): Move definition to tar.h
(extended_header): Remove global
(xheader_init): New function
(xheader_decode_global,xheader_store,xheader_read)
(xheader_write_global,xheader_write,xheader_string_begin)
(xheader_string_add,xheader_string_end): Take xhdr as first
argument.
2007-05-19 17:02:13 +00:00
Sergey Poznyakoff
17ef61b2fd
(dump_file0): Original ctime cannot be used as a directory change indicator if --remove-files is given.
2007-05-18 08:22:21 +00:00
Paul Eggert
f32828d577
Adjust to latest Gnulib.
...
* lib/.cvsignore: Add dirfd.c, dirfd.h, float+.h, mbscasecmp.c,
stdio.h, stdio_.h, stdlib.h, stdlib_.h, time.h, time_.h, unistd.h.
Remove exit.h, getcwd.h, mempcpy.h, memrchr.h, mkdtemp.h, stpcpy.h,
strcase.h, strchrnul.h, strdup.h, strndup.h, strnlen.h, time_r.h,
vsnprintf.h.
* m4/.cvsignore: Remove localedir.h. Sort.
2007-04-13 00:51:07 +00:00
Sergey Poznyakoff
ca856c2585
(main): Don't call closeopen.
2007-04-03 21:52:42 +00:00
Sergey Poznyakoff
18641602c1
Don't include <sys/time.h>, <sys/resource.h>; no longer needed.
2007-04-03 21:52:20 +00:00