Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Unpacking doesn't keep file permissions #1

Closed
lmilbaum opened this issue Aug 1, 2016 · 12 comments
Closed

Unpacking doesn't keep file permissions #1

lmilbaum opened this issue Aug 1, 2016 · 12 comments

Comments

@lmilbaum
Copy link

lmilbaum commented Aug 1, 2016

No description provided.

@coderanger
Copy link
Member

Can you be more specific? Which provider would be a good starting point.

@lmilbaum
Copy link
Author

lmilbaum commented Aug 1, 2016

I have a zip file which contains among other file types, shell scripts. Running an unzip command preserves their execute permission. Executing poise_archive doesn't.
How do I figure which provider is used? I am new to Chef.

@coderanger
Copy link
Member

Zip files are always handled by RubyZip, and that API I am calling does check file permissions inside RubyZip (except setuid and setgid bits for safety). Are you 100% sure the mode bits in the zipfile itself are correct?

@lmilbaum
Copy link
Author

lmilbaum commented Aug 1, 2016

I have looked at the code. It looks like file permissions are taken care of. But, it doesn't for my zip file. I can send you the zip file to reproduce the problem.

@coderanger
Copy link
Member

If you could attach the file to this ticket that would be perfect :)

@lmilbaum
Copy link
Author

lmilbaum commented Aug 1, 2016

@coderanger
Copy link
Member

Will take a look, thanky!

@coderanger
Copy link
Member

Can you give me an example of a script that is being unpacked incorrectly (or is it all of them)?

@coderanger
Copy link
Member

Never mind, it's all of them.

@coderanger
Copy link
Member

Fix was released in 1.2.1.

@lmilbaum
Copy link
Author

lmilbaum commented Aug 3, 2016

Got it. Worked perfectly.

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

No branches or pull requests

2 participants