Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for old Info-ZIP extra block for Unix #660

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bastianeicher
Copy link
Contributor

@bastianeicher bastianeicher commented Sep 7, 2021

SharpZipLib currently supports reading timestamps from the "Extended Timestamp Extra Field" (0x5455).

This PR adds support for the older (but still often seen in new .zip files) "Info-ZIP Unix Extra Field (type 1)" (0x5855).

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

@codecov
Copy link

codecov bot commented Sep 7, 2021

Codecov Report

Merging #660 (cef5453) into master (cd5310f) will decrease coverage by 0.24%.
The diff coverage is 14.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #660      +/-   ##
==========================================
- Coverage   73.28%   73.04%   -0.25%     
==========================================
  Files          68       68              
  Lines        8304     8339      +35     
==========================================
+ Hits         6086     6091       +5     
- Misses       2218     2248      +30     
Impacted Files Coverage Δ
src/ICSharpCode.SharpZipLib/Zip/ZipExtraData.cs 69.04% <9.37%> (-7.29%) ⬇️
src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs 90.59% <66.66%> (-0.32%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd5310f...cef5453. Read the comment docs.

Copy link
Member

@piksel piksel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks overall good, but there are no tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants