diff options
| author | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-01-09 13:46:16 +0800 |
|---|---|---|
| committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-01-09 13:55:34 +0800 |
| commit | 7a833c9b2e6ab12b2b55d828a36a37a494746b30 (patch) | |
| tree | b3460f6d090d3f4c7ba0066ed747a5e98cda42e3 | |
| parent | 84e205b5a17bfe7ace96b78c410ec10aa52241d2 (diff) | |
| download | redot-engine-7a833c9b2e6ab12b2b55d828a36a37a494746b30.tar.gz | |
Fix ZIPPacker storing file permissions unexpectedly
| -rw-r--r-- | modules/zip/zip_packer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/zip/zip_packer.cpp b/modules/zip/zip_packer.cpp index e67c65d4d1..e96d9da7a9 100644 --- a/modules/zip/zip_packer.cpp +++ b/modules/zip/zip_packer.cpp @@ -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; } |
