--- old/src/jdk.jartool/share/classes/jdk/security/jarsigner/JarSigner.java 2020-08-28 14:05:33.631208105 +0000 +++ new/src/jdk.jartool/share/classes/jdk/security/jarsigner/JarSigner.java 2020-08-28 14:05:33.431198260 +0000 @@ -505,7 +505,7 @@ private final boolean externalSF; // leave the .SF out of the PKCS7 block private final String altSignerPath; private final String altSigner; - private boolean posixPermsDetected; + private boolean extraAttrsDetected; private JarSigner(JarSigner.Builder builder) { @@ -949,12 +949,13 @@ ze2.setTime(ze.getTime()); ze2.setComment(ze.getComment()); ze2.setExtra(ze.getExtra()); - int perms = JUZFA.getPosixPerms(ze); - if (!posixPermsDetected && perms != -1) { - posixPermsDetected = true; - Event.report(Event.ReporterCategory.POSIXPERMS, "detected"); + int extraAttrs = JUZFA.getExtraAttributes(ze); + System.out.println("extraAttrs:" + extraAttrs); + if (!extraAttrsDetected && extraAttrs != -1) { + extraAttrsDetected = true; + Event.report(Event.ReporterCategory.ZIPFILEATTRS, "detected"); } - JUZFA.setPosixPerms(ze2, perms); + JUZFA.setExtraAttributes(ze2, extraAttrs); if (ze.getMethod() == ZipEntry.STORED) { ze2.setSize(ze.getSize()); ze2.setCrc(ze.getCrc());