< prev index next >
src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/Config.java
Print this page
rev 59383 : [mq]: final
*** 1,7 ****
/*
! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 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 >