summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2021-06-17 23:08:49 +0100
committerGitHub <noreply@github.com>2021-06-18 00:08:49 +0200
commit1e6a2163a5ca5fe0e17fbd9adef23571f2c36a8a (patch)
tree5e3628e253a587a197142ed7f6b22962f2ad9046 /src
parentcf865597f8f14c56e96b22b9a7fef1b693fbcb08 (diff)
downloadopenttd-1e6a2163a5ca5fe0e17fbd9adef23571f2c36a8a.tar.xz
Fix #9358: Don't skip empty files in tar (#9367)
Diffstat (limited to 'src')
-rw-r--r--src/fileio.cpp3
1 files changed, 0 insertions, 3 deletions
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 */