diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-02-08 13:01:47 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-02-08 13:08:20 +0200 |
commit | 14d8fc718f0c872274b90991ee634b0cd8e1a6f0 (patch) | |
tree | eaaaec66bc7609724e9a5d9ac0d57835550b9355 /tests/pipe.at | |
parent | 883cc555df870e45599fd5ed951843c332fcdafc (diff) | |
download | tar-14d8fc718f0c872274b90991ee634b0cd8e1a6f0.tar.gz |
Fix the --no-overwrite-dir option
Given this option, tar failed to preserve permissions of empty directories
and to create files under directories owned by the current user that did
not have the S_IWUSR bit set.
* src/extract.c (fd_chmod): Rename to fd_i_chmod.
(fd_chmod): New function.
(safe_dir_mode): New function.
(extract_dir): Special handling for existing directories in
--no-overwrite-dir mode.
* tests/extrac23.at: New file.
* tests/Makefile.am: Add new test case.
* tests/testsuite.at: Likewise.
Diffstat (limited to 'tests/pipe.at')
0 files changed, 0 insertions, 0 deletions