Skip to content
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

Fix ZIPPacker storing file permissions unexpectedly #86985

Merged
merged 1 commit into from Jan 9, 2024

Conversation

timothyqiu
Copy link
Member

Fixes #86967

The "version made by" parameter indicates the compatibility of the file attribute information. Since 0 is stored in the related file attribute field, using 0x0314 as "version made by" is effectly saying "I want the file's UNIX file permission to be 0".

ZIPPacker does not support specifying file permissions, so it's safe to use 0 as "version made by", ignoring the file attribute information field.

@timothyqiu timothyqiu added bug platform:linuxbsd topic:core regression cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Jan 9, 2024
@timothyqiu timothyqiu added this to the 4.3 milestone Jan 9, 2024
@hakro
Copy link
Contributor

hakro commented Jan 9, 2024

I just tested this commit, and it fixed the issue. Thank you.

@akien-mga akien-mga merged commit 6f118b8 into godotengine:master Jan 9, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the zip-packer-attributes branch January 9, 2024 10:34
@YuriSizov YuriSizov removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jan 25, 2024
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.2.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When zipping files with ZIPPacker, the extracted files do not honor the system's umask
4 participants