Fix savannah bug #60002

Bug was introduced by commit 34d15af1.

* src/extract.c (prepare_to_extract): When extracting over pipe,
process only regular files.
* tests/extrac24.at: New test case.
* tests/Makefile.am: Add new test case.
* tests/testsuite.at: Likewise.
This commit is contained in:
Sergey Poznyakoff
2021-02-04 16:51:38 +02:00
parent d9d4435692
commit ee2ec5ff19
5 changed files with 50 additions and 1 deletions

View File

@@ -1708,7 +1708,12 @@ prepare_to_extract (char const *file_name, int typeflag, tar_extractor_t *fun)
extractor = extract_file;
}
if (!EXTRACT_OVER_PIPE)
if (EXTRACT_OVER_PIPE)
{
if (extractor != extract_file)
return false;
}
else
{
switch (old_files_option)
{