Must not compare orig_file_size with fi->st_size() during ::unpack

This commit is contained in:
John Reiser
2015-05-09 17:47:17 -07:00
parent b182b50f24
commit 83ce7dc62f
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ void PackUnix::unpack(OutputFile *fo)
orig_file_size = get_te32(&hbuf.p_filesize);
blocksize = get_te32(&hbuf.p_blocksize);
if (file_size != (off_t)orig_file_size || blocksize > orig_file_size)
if (file_size > (off_t)orig_file_size || blocksize > orig_file_size)
throwCantUnpack("file header corrupted");
}
else