From 1e6a2163a5ca5fe0e17fbd9adef23571f2c36a8a 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: Fix #9358: Don't skip empty files in tar (#9367) --- src/fileio.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/fileio.cpp b/src/fileio.cpp index bee02ab35..fe9c947df 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -541,9 +541,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 */ -- cgit v1.2.3-70-g09d2