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

Make retaining File-System-Permissions configurable #132

Open
DaniEll-AT opened this issue Aug 19, 2020 · 1 comment
Open

Make retaining File-System-Permissions configurable #132

DaniEll-AT opened this issue Aug 19, 2020 · 1 comment

Comments

@DaniEll-AT
Copy link

I want to transfer a whole directory from one Linux system to another.
To do this, i tried

  • ZipUtil.pack on the source system
  • transfer the bytes (Stream them to the target system)
  • and ZipUtil.unpack on the target system

The Problem is, I don't want to retain file system permissions and it does not work with my setup (POSIX Operation not Permitted).
Currently there seems to be no way to disable it?

(I wrote a custom Unpacker as a workaround)

@toomasr
Copy link
Contributor

toomasr commented Aug 23, 2020

I see that the default implementation of ZipEntryCallback is org.zeroturnaround.zip.ZipUtil.Unpacker which honours the permissions https://github.com/zeroturnaround/zt-zip/blob/master/src/main/java/org/zeroturnaround/zip/ZipUtil.java#L1154

I feel that a way to disable it is a good idea but not sure when I will get around do it.

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