Merge pull request #86985 from timothyqiu/zip-packer-attributes
Fix ZIPPacker storing file permissions unexpectedly
This commit is contained in:
commit
6f118b8c4a
|
@ -88,7 +88,7 @@ Error ZIPPacker::start_file(const String &p_path) {
|
||||||
Z_DEFAULT_STRATEGY,
|
Z_DEFAULT_STRATEGY,
|
||||||
nullptr,
|
nullptr,
|
||||||
0,
|
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.
|
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;
|
return err == ZIP_OK ? OK : FAILED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue