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/core/LockFileManager.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/LockFileManager.java b/opends/src/server/org/opends/server/core/LockFileManager.java
index b1e6d0c..82c37a9 100644
--- a/opends/src/server/org/opends/server/core/LockFileManager.java
+++ b/opends/src/server/org/opends/server/core/LockFileManager.java
@@ -121,7 +121,7 @@
// We don't hold a lock on the file so we need to create it. First,
// create the file only if it doesn't already exist.
- File f = new File(lockFile);
+ File f = getFileForPath(lockFile);
try
{
if (! f.exists())
@@ -240,7 +240,7 @@
// We don't hold a lock on the file so we need to create it. First,
// create the file only if it doesn't already exist.
- File f = new File(lockFile);
+ File f = getFileForPath(lockFile);
try
{
if (! f.exists())
--
Gitblit v1.10.0