Skip to content

Commit

Permalink
Fix ZIPPacker storing file permissions unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Jan 9, 2024
1 parent 84e205b commit 7a833c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/zip/zip_packer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Error ZIPPacker::start_file(const String &p_path) {
Z_DEFAULT_STRATEGY,
nullptr,
0,
0x0314, // "version made by", 0x03 - Unix, 0x14 - ZIP specification version 2.0, required to store Unix file permissions.
0, // "version made by", indicates the compatibility of the file attribute information (the `external_fa` field above).
1 << 11); // Bit 11 is the language encoding flag. When set, filename and comment fields must be encoded using UTF-8.
return err == ZIP_OK ? OK : FAILED;
}
Expand Down

0 comments on commit 7a833c9

Please sign in to comment.