]> git.ipfire.org Git - thirdparty/tar.git/commit
--no-overwrite-dir no overwrite even temporarily master
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Jul 2025 04:41:23 +0000 (21:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Jul 2025 04:49:20 +0000 (21:49 -0700)
commit4e742fc8674064a9fa00d4483d06aca48d5b0463
treed140c76080de363d4532abf0970b5d91f9e8a5aa
parent076818f8d9735ccb53e3ed7f9c43d9198332e70b
--no-overwrite-dir no overwrite even temporarily

Problem and fix reported by Pavel Cahyna in
https://lists.gnu.org/r/bug-tar/2025-01/msg00000.html
* src/extract.c (extract_dir): With --no-overwrite-dir,
skip the chmod if the directory already exists.
* tests/extrac23.at (--no-overwrite-dir on empty directory):
Move the part of the test that looks at a nonempty directory ...
* tests/extrac30.at: ... to this new file, because the test now
must be run as non-root.  Adjust the test to match the new behavior.
* tests/Makefile.am (TESTSUITE_AT), tests/testsuite.at: Add it.
NEWS
src/extract.c
tests/Makefile.am
tests/extrac23.at
tests/extrac30.at [new file with mode: 0644]
tests/testsuite.at