From fa0801bfedb9c593adfd2bf0206bd00043b6b1a2 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Mon, 18 Jun 2007 19:57:02 +0000
Subject: [PATCH] fixes broken code for determining whether or not a path string represents an abolute path

---
 opends/src/quicksetup/org/opends/quicksetup/Configuration.java |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/Configuration.java b/opends/src/quicksetup/org/opends/quicksetup/Configuration.java
index e25f193..daa1859 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Configuration.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Configuration.java
@@ -200,12 +200,9 @@
     Set<String> outsidePaths = new HashSet<String>();
     for (String path : paths) {
       File fullDbPath;
-
-      // Assume that if the path starts with a file separator
-      // that it is an absolute path.  Otherwise its a relative
-      // path.
-      if (path.startsWith(File.separator)) {
-        fullDbPath = new File(path);
+      File pathFile = new File(path);
+      if (pathFile.isAbsolute()) {
+        fullDbPath = pathFile;
       } else {
         fullDbPath = new File(install.getRootDirectory(), path);
       }

--
Gitblit v1.10.0