]> Dogcows Code - chaz/tar/commit
Fix --keep-old-files option.
authorSergey Poznyakoff <gray@gnu.org.ua>
Sat, 26 Nov 2011 13:41:43 +0000 (15:41 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 26 Nov 2011 13:50:40 +0000 (15:50 +0200)
commit7a5a3708cb8b33494cd6ac64bfe163f631a33edf
tree38e7e3bd4f1db04974712eb956e52ef40c0ec067
parent02bf3a96a931678211117534ee535863c780c6dc
Fix --keep-old-files option.

The regression was introduced by 8f390db9.  This patch implements additional
option --skip-old-files, which silently skips members which would cause
writing over existing files, and restores --keep-old-files to its traditional
behavior.

* NEWS: Update.
* configure.ac: Update.
* doc/tar.texi: Document the changes.
* src/common.h (SKIP_OLD_FILES): New old_files mode.
* src/extract.c (maybe_recoverable): Restore KEEP_OLD_FILES behavior.
Handle SKIP_OLD_FILES.
* src/tar.c: New option --skip-old-files.
* tests/extrac18.at: New file.
* tests/extrac19.at: New file.
* tests/Makefile.am: Add new test cases.
* tests/testsuite.at: Likewise.
NEWS
configure.ac
doc/tar.texi
src/common.h
src/extract.c
src/tar.c
tests/Makefile.am
tests/extrac18.at [new file with mode: 0644]
tests/extrac19.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.022964 seconds and 4 git commands to generate.