You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
extract/unpack does not preserve executable files #25
I came across the same issue.
I was just in the middle of creating a fix to submit using setPermissions from System.Directory, but using setFileMode from System.PosixCompat.Files uses the permissions directly without need for computation.
After a little investigation, setFileMode just calls setPermissions under the hood, so will be best to just use that instead of bringing in new dependencies.
Currently have the changes on a fork, but cant get the property tests to pass (even before I made my changes).
Activity
bitc commentedon Dec 15, 2017
This looks relevant: snoyberg/keter@e0fa8d7
They switched from using
unpackto a custom function that preserves the permissions.tmortiboy commentedon Dec 15, 2017
I came across the same issue.
I was just in the middle of creating a fix to submit using
setPermissionsfromSystem.Directory, but usingsetFileModefromSystem.PosixCompat.Filesuses the permissions directly without need for computation.tmortiboy commentedon Dec 15, 2017
After a little investigation,
setFileModejust callssetPermissionsunder the hood, so will be best to just use that instead of bringing in new dependencies.Currently have the changes on a fork, but cant get the property tests to pass (even before I made my changes).
Run the script without relying on its executable bit being set.
afranchuk commentedon Nov 9, 2018
Any word on whether this will be merged soon?
hasufell commentedon Feb 19, 2020
This is fixed in tar-bytestring (if you don't mind excluding windows support and bytestring based filepaths): hasufell@ce13c50