From 2518a13dca43c0227a982e429ed83fda8d6110c4 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 16 Aug 2006 19:45:25 +0000
Subject: [PATCH] Add a getFileForPath method to the StaticUtils class, and update several server components to use it. This can help ensure that relative paths are evaluated relative to the server root rather than whatever happened to be the current working directory when the start script was launched.
---
opends/src/server/org/opends/server/extensions/PKCS11KeyManagerProvider.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/extensions/PKCS11KeyManagerProvider.java b/opends/src/server/org/opends/server/extensions/PKCS11KeyManagerProvider.java
index 2d5763f..40c025b 100644
--- a/opends/src/server/org/opends/server/extensions/PKCS11KeyManagerProvider.java
+++ b/opends/src/server/org/opends/server/extensions/PKCS11KeyManagerProvider.java
@@ -257,7 +257,7 @@
{
String fileName = pinFileAttr.activeValue();
- File pinFile = new File(fileName);
+ File pinFile = getFileForPath(fileName);
if (! pinFile.exists())
{
msgID = MSGID_PKCS11_KEYMANAGER_PIN_NO_SUCH_FILE;
@@ -612,7 +612,7 @@
{
String fileName = pinFileAttr.activeValue();
- File pinFile = new File(fileName);
+ File pinFile = getFileForPath(fileName);
if (! pinFile.exists())
{
msgID = MSGID_PKCS11_KEYMANAGER_PIN_NO_SUCH_FILE;
@@ -858,7 +858,7 @@
{
String fileName = pinFileAttr.activeValue();
- File pinFile = new File(fileName);
+ File pinFile = getFileForPath(fileName);
if (! pinFile.exists())
{
msgID = MSGID_PKCS11_KEYMANAGER_PIN_NO_SUCH_FILE;
--
Gitblit v1.10.0