Fix backup handling and restoring file modes of existing directories
commit755c246588092d0b281cb610a8371c2c9b32de59
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 5 Aug 2009 07:38:50 +0000 (5 10:38 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 5 Aug 2009 07:38:50 +0000 (5 10:38 +0300)
tree9f8b3692ac8bbdc345490c99d9fe5395b1e798eb
parent5944f452b0e615a172a9f058877671ff6272abb8
Fix backup handling and restoring file modes of existing directories

* NEWS, THANKS: Update
* src/extract.c (extract_dir): reset status to 0 if the
directory already exists.
* src/misc.c (maybe_backup_file): Assign before_backup_name
and clear after_backup_name before checking if we really need
to backup the file.
* tests/backup01.at: New testcase.
* tests/extrac08.at: New testcase.
* tests/Makefile.am, tests/testsuite.at: Add extrac08.at and
backup01.at
NEWS
THANKS
src/extract.c
src/misc.c
tests/Makefile.am
tests/backup01.at [new file with mode: 0644]
tests/extrac08.at [new file with mode: 0644]
tests/testsuite.at