]> Dogcows Code - chaz/tar/commitdiff
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)
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.


No differences found
This page took 0.022818 seconds and 4 git commands to generate.