-
Notifications
You must be signed in to change notification settings - Fork 18k
archive/zip: extra Extra fields when repacking zip file #61572
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
Comments
Change https://go.dev/cl/513437 mentions this issue: |
Should it ignore fh.Modified or overwrite existing extra field? |
Change https://go.dev/cl/513836 mentions this issue: |
I think it should update existing extended timestamp field otherwise there is no way to do it without digging into extra fields. |
If you use zip.(*Writer).CreateHeader (for example using a header from a zip file you are copying), CreateHeader encodes fh.Modified into fh.Extra even if fh.Extra already contains a modified time. You get an Extra with an extra extTimeExtraID entry. If there is already a extTimeExtraID entry in Extra, we shold not add an extra extTimeExtraID.
The text was updated successfully, but these errors were encountered: