archive/zip: FileHeader.SetMode: character files encoded as regular files #36301
Labels
Milestone
Comments
FWIW, the zip utility doesn't allow to add these to an archive at all. |
Since the zip package is encoding block devices today, I would say encoding of character devices should be fixed to match. |
@masiulaniec What version of Go are you using? /cc @dsnet |
go1.13.4 darwin/amd64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This reproducer program fails unexpectedly with the error:
The data loss is due to a logically impossible bit match in
fileModeToUnixMode
. The fix:The text was updated successfully, but these errors were encountered: