From 48b287a22f3c93587c28803073b97d4f4cb14a20 Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Thu, 17 Jun 2021 23:08:49 +0100 Subject: [PATCH] Fix #9358: Don't skip empty files in tar (#9367) (cherry picked from commit 1e6a2163a5ca5fe0e17fbd9adef23571f2c36a8a) --- src/fileio.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/fileio.cpp b/src/fileio.cpp index d5b1af809c..7c2aaadf69 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -547,9 +547,6 @@ bool TarScanner::AddFile(const std::string &filename, size_t basepath_length, co switch (th.typeflag) { case '\0': case '0': { // regular file - /* Ignore empty files */ - if (skip == 0) break; - if (strlen(name) == 0) break; /* Store this entry in the list */