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

create zip archives with files 0644 #3

Closed
rjbs opened this issue May 12, 2024 · 2 comments
Closed

create zip archives with files 0644 #3

rjbs opened this issue May 12, 2024 · 2 comments

Comments

@rjbs
Copy link

rjbs commented May 12, 2024

I use this library in Module::Faker to make fake CPAN-like dists for testing. Turns out that in zip mode, files are created 0666. PAUSE rejects archives with files that will be world-writable, so I can't use this as-is. Instead I'm doing this sort of daffy thing:

https://github.com/rjbs/Module-Faker/pull/14/files

Any thoughts on changing Archive-Any-Create to (a) do this chmod itself or (b) make the way I'm fiddling with the extension-to-class map supported? :)

@miyagawa
Copy link
Owner

I don't have a good answer, but the module has not been updated for literally decades and I don't expect any meaningful changes to it, so whatever you're doing seems fine and will likely be "supported" :)

@rjbs
Copy link
Author

rjbs commented Jun 10, 2024

Works for me!

@rjbs rjbs closed this as completed Jun 10, 2024
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

2 participants