84378fa99a* gnulib.modules: Add closeout, exitfial. * lib/.cvsignore: Add __fpending.c, __fpending.h, closeout.c, closeout.h. * src/buffer.c: Incluse closeout.h. (_open_archive): Use freopen rather than fopen, so that stdlis is always either stdout or stderr. Use close_stdout_set_file_name to report its name. * src/tar.c: Include closeout.h and exitfail.h. (parse_opt, usage): Call close_stdout as appropriate, to check for write errors. (decode_options): Exit with status TAREXIT_FAILURE, not 1. (main): Set exit_failure, to exit with proper status on memory allocation failure and the like. Use close_stdout rather than rolling our own test.
Paul Eggert
2006-02-07 23:51:37 +00:00
78b078b455* NEWS: --version now outputs copyright etc., to conform to the GNU coding standards. Remove --license. * gnulib.modules: Add version-etc-fsf. * doc/tar.texi: Document the change. * lib/.cvsignore: Add version-etc-fsf.c, version-etc.c, version-etc.h. * scripts/Makefile.am (SED_CMD): Update PAKCAGE_NAME, not PACKAGE. * scripts/backup.in: Remove --license. Change --version to conform to GCS. * scripts/restore.in: Likewise. * scripts/backup.sh.in (license): Output briefer license in the style of coreutils, for consistency with other changes. * src/tar.c: Include <version-etc.h>. (LICENSE_OPTION): Remove. (options): Remove --license. (license): Remove. (parse_opt): Use version_etc instead of rolling it ourselves. Remove --license. * tests/version.at (tar --version): Check only the first line of output.
Paul Eggert
2006-02-07 22:18:36 +00:00
e86e864544Update copyright year to 2006.
Paul Eggert
2006-02-07 20:55:49 +00:00
6c28751ca7(struct tar_stat_info): New members is_dumpdir and skipped.
Sergey Poznyakoff
2006-01-31 11:28:45 +00:00
0e848e7b2c(list_archive): Use is_dumpdir Do not wrap skip_member in mv_begin/mv_end, the function itself takes care of it. (decode_header): Set stat_info->is_dumpdir (skip_member): Do nothing if skipped is true
Sergey Poznyakoff
2006-01-31 11:28:32 +00:00
ab8a184336(get_gnu_dumpdir): Static (is_dumpdir): New function (purge_directory): Use is_dumpdir
Sergey Poznyakoff
2006-01-31 11:28:07 +00:00
48ce2946d9(prepare_to_extract): Use is_dumpdir member to check for dumpdirs.
Sergey Poznyakoff
2006-01-31 11:27:41 +00:00
dde5c2391b(get_gnu_dumpdir): Remove prototype (is_dumpdir): New function
Sergey Poznyakoff
2006-01-31 11:27:14 +00:00
c17a9f91d0* bootstrap: Default to pserver, and switch to cvs.sv.gnu.org, to accommodate recent changes to the GNU CVS server.
Paul Eggert
2006-01-09 22:53:55 +00:00
0f4660c786Add argp-pin.c, mkdirat.c, openat-priv.h.
Paul Eggert
2006-01-09 22:52:34 +00:00
b794387cba(addname,add_hierarchy_to_namelist): Initialize explicit member appropriately.
Sergey Poznyakoff
2005-12-13 13:32:29 +00:00
91abd3da82(procdir): If name_scan() returns something, check if it was explicitely given in the command line
Sergey Poznyakoff
2005-12-13 13:32:14 +00:00
5b3dc9e3dd(struct name): New member explicit'. Remove unused member isdir'
Sergey Poznyakoff
2005-12-13 13:31:56 +00:00
86ef91adffIf --one-file-system is given and a directory is found to be on another device, *and* this directory is explicitely given in the command line, then do not omit it.
Sergey Poznyakoff
2005-12-12 22:55:39 +00:00
1cdb7823ae(options,parse_opt): New options --delay-directory-restore and --no-delay-directory-restore
Sergey Poznyakoff
2005-12-11 14:12:12 +00:00
e73e4428e2(directories_first): Replaced by delay_directory_restore_option. All uses changed.
Sergey Poznyakoff
2005-12-11 14:11:41 +00:00
d2dd096f1d(delay_directory_restore_option): New global.
Sergey Poznyakoff
2005-12-11 14:11:16 +00:00
fb0a0aaf52Document --delay-directory-restore option. (Configuring Help Summary): Document usage of ARGP_HELP_FMT variable to customize help output.
Sergey Poznyakoff
2005-12-11 14:10:53 +00:00
a169d65b94(gid_to_chars, major_to_chars, minor_to_chars) (mode_to_chars, off_to_chars, size_to_chars, time_to_chars) (uid_to_chars, uintmax_to_chars): Return bool (to_chars): Return bool (start_header): Check return values of convertion routines. Fail if unable to store data in the header.
Sergey Poznyakoff
2005-12-08 15:41:28 +00:00
c9ac15ae0f(Current status): Renamed to 'Changes' and moved to appendices. (Large or Negative Values): Rewritten
Sergey Poznyakoff
2005-12-08 15:40:52 +00:00
67770b89f2Change permissions in the sample outputs to more usual ones
Sergey Poznyakoff
2005-12-07 16:17:44 +00:00
49e7ba5b17Following the discussion with Karl Berry, discontinue using @value{} substitutions for Texinfo commands. Properly index all long options. Print a separate long option index.
Sergey Poznyakoff
2005-12-07 15:11:45 +00:00
2e7a943d0e(options): Add --restrict option. Use macros for option grouping. (license): Print full list of copyright years
Sergey Poznyakoff
2005-12-06 23:15:41 +00:00
4ba3b41e2e(sys_exec_info_script): The script can supply new archive name to use by writing it to file descriptor 3.
Sergey Poznyakoff
2005-12-06 23:15:14 +00:00
4669306854(sys_exec_info_script): Update delaration (restrict_option): New global
Sergey Poznyakoff
2005-12-06 23:14:56 +00:00
ffc4fb7bdd(new_volume): Update invocation (change_tape_menu): New function. Disable '!' command if given --restrict option.
Sergey Poznyakoff
2005-12-06 23:14:44 +00:00
ae00dc0d37(purge_directory): Skip the member and return if the archive is not in incremental format.
Sergey Poznyakoff
2005-12-01 12:51:20 +00:00
5249a99377Fix restoring of directory timestamps from incremental archives. (directories_first): New variable. (prepare_to_extract): Set directories_first (extract_archive): Call apply_nonancestor_delayed_set_stat() only if not extracting from an incremental archive
Sergey Poznyakoff
2005-12-01 12:50:58 +00:00
2edff367d9* doc/tar.texi (Option Summary): Rewrite the --atime-preserve=system description in response to Ian Turner's proposed patch. * doc/tar.texi (Extracting Specific Files): Remove obsolescent FIXME.
Paul Eggert
2005-12-01 00:18:05 +00:00
f8f4f49011(parse_opt): Remove bogus \n in new atime diagnostic.
Paul Eggert
2005-11-29 19:41:34 +00:00
3fbdf738de* lib/.cvsignore: Add malloc.h, regcomp.c, regex.c, regex.h, regex_internal.c, regex_internal.h, regexc.c; used by rpmatch.
Paul Eggert
2005-11-29 19:39:06 +00:00
7209cbed6c* THANKS: Add Ian Turner.
Paul Eggert
2005-11-29 19:26:13 +00:00
aa976a5170* NEWS: New option --atime-preserve=system, which uses O_NOATIME.
Paul Eggert
2005-11-29 19:14:21 +00:00
7b00db5675Convert back to UTF-8, sort (using LC_ALL=en_US.UTF-8 on Debian stable), and consistently use tabs rather than spaces.
Paul Eggert
2005-11-29 18:53:34 +00:00
c81a5e8bf5Close stdin so that if something fails causing tar to ask for the next volume, it won't hang the testsuite.
Sergey Poznyakoff
2005-11-11 12:17:38 +00:00
b5775215d7(confirm): Rewritten using rpmatch. (decode_options): Minor optimizations (main): Call stdopen() to ensure the first three descriptors are open.
Sergey Poznyakoff
2005-11-11 12:17:10 +00:00
1ebdd88caf(xheader_format_name): Remove static qualifier. Change last argument. Correct buffer size calculation (allocated too much space). (xheader_write): Increase global_header_count here ... (xheader_write_global): ... instead of here
Sergey Poznyakoff
2005-11-11 00:26:09 +00:00
b6d3432810(write_extended): Change type and meaning of the first argument. All callers updated
Sergey Poznyakoff
2005-11-11 00:25:41 +00:00
5b1df7b55e(flush_write,flush_read): Change data type. (flush_archive): Compute actual buffer fill level before calling low level function. (close_archive): Call flush_archive again if the first call resulted in partially filled buffer. (try_new_volume): Rewritten handling of initial headers. (add_chunk_header): New function. Write an additional header before the continuation chunk. The purpose of the header is to allow third-party tars to extract the member. (simple_flush_write): Take an argument. (_gnu_flush_write): Correctly handle partially filled buffers.
Sergey Poznyakoff
2005-11-11 00:24:52 +00:00