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

Default permissions make added file unreadable on linux after unpacking #150

Open
konstin opened this issue Sep 26, 2024 · 0 comments
Open

Comments

@konstin
Copy link

konstin commented Sep 26, 2024

Reproducer repo: https://github.com/konstin/async-zip-permission

By default, a file added to the archive has 0 (----------) permissions, i.e. when unpacked on linux, you can't open it. By comparison, the default umask for new files on my ubuntu machine is 664 (-rw-rw-r--). The zip crate also uses a similar default of 644: https://docs.rs/zip/latest/zip/write/struct.FileOptions.html#method.unix_permissions

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

No branches or pull requests

1 participant