On 19/08/2019 16:39, Osipov, Michael wrote:
:

Note that this also happens when the file is already there. The permissions are *not* retained and this causes here a lot of grief. zip(1) does not suffer from this nor does ZipOutputStream as you can see.

I'd expect that reading the attributes from zfpath, moving and then settings them is a good option.
Thanks for the bug report, I've created JDK-8229888 [1] to track it.

-Alan

[1] https://bugs.openjdk.java.net/browse/JDK-8229888

Reply via email to