When setting file permissions on an existing MSDOS entry, the entry's "posixPerms" will be -1 (all 1s in binary).
The current logic does not account for this when updating the 'external file attributes' bit, it sets the leading bits to 1 when they should be 0.
This is a regression introduced byJDK-8322565
The current logic does not account for this when updating the 'external file attributes' bit, it sets the leading bits to 1 when they should be 0.
This is a regression introduced by
- relates to
-
JDK-8325201 (zipfs) Disable TestPosix.setPermissionsShouldConvertToUnix which fails on Windows
-
- Resolved
-
-
JDK-8322565 (zipfs) Files.setPosixPermissions should preserve 'external file attributes' bits
-
- Resolved
-
-
JDK-8325199 (zipfs) jdk/nio/zipfs/TestPosix.java failed 6 sub-tests
-
- Resolved
-