Skip to content

Commit

Permalink
Fix adding/replacing files in torrentzips.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Jun 20, 2024
1 parent 7a734f6 commit 81fc708
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

### Torrentzip

- Handle data sources with unknown uncompressed size.
- Handle when uncompressed size < 4GB but compressed size > 4GB.
- Handle data sources with unknown uncompressed size: if we forced ZIP64 and don't need it, return specific error (so calling code can decide what to do (e. g. clear torrentzip flag and call `zip_close()` again)).

## Other

Expand Down
4 changes: 0 additions & 4 deletions lib/zip_extra_field_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ zip_file_extra_field_delete(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_idx, zi
zip_error_set(&za->error, ZIP_ER_RDONLY, 0);
return -1;
}
if (ZIP_WANT_TORRENTZIP(za)) {
zip_error_set(&za->error, ZIP_ER_NOT_ALLOWED, 0);
return -1;
}

if (_zip_file_extra_field_prepare_for_change(za, idx) < 0)
return -1;
Expand Down

0 comments on commit 81fc708

Please sign in to comment.