< prev index next >

src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/Config.java

Print this page
rev 59107 : imported patch security

*** 661,683 **** parseEquals(); String lib = parseLine(); lib = expand(lib); int i = lib.indexOf("/$ISA/"); if (i != -1) { ! // replace "/$ISA/" with "/sparcv9/" on 64-bit Solaris SPARC ! // and with "/amd64/" on Solaris AMD64. ! // On all other platforms, just turn it into a "/" String prefix = lib.substring(0, i); String suffix = lib.substring(i + 5); - if (osName.equals("SunOS") && osArch.equals("sparcv9")) { - lib = prefix + "/sparcv9" + suffix; - } else if (osName.equals("SunOS") && osArch.equals("amd64")) { - lib = prefix + "/amd64" + suffix; - } else { lib = prefix + suffix; } - } debug(keyword + ": " + lib); // Check to see if full path is specified to prevent the DLL // preloading attack if (!(new File(lib)).isAbsolute()) { --- 661,675 ---- parseEquals(); String lib = parseLine(); lib = expand(lib); int i = lib.indexOf("/$ISA/"); if (i != -1) { ! // replace "/$ISA/" with "/" String prefix = lib.substring(0, i); String suffix = lib.substring(i + 5); lib = prefix + suffix; } debug(keyword + ": " + lib); // Check to see if full path is specified to prevent the DLL // preloading attack if (!(new File(lib)).isAbsolute()) {
< prev index next >