1
0
Fork 0

Fix #9358: Don't skip empty files in tar (#9367)

pull/9387/head
SamuXarick 2021-06-17 23:08:49 +01:00 committed by GitHub
parent cf865597f8
commit 1e6a2163a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -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 */