From 4dc4c537142907a8f80f34845839751ed4422b9e Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Wed, 25 Jul 2007 04:00:20 +0000
Subject: [PATCH] Use work-around for long filename bug in Windows 2000. Issue #1985.

---
 opends/resource/bin/_server-script.bat |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/opends/resource/bin/_server-script.bat b/opends/resource/bin/_server-script.bat
index d57b5c1..eded04d 100644
--- a/opends/resource/bin/_server-script.bat
+++ b/opends/resource/bin/_server-script.bat
@@ -29,8 +29,7 @@
 rem be invoked directly by end users.
 
 setlocal
-
-set DIR_HOME=%~dP0..
+for %%i in (%~sf0) do set DIR_HOME=%%~dPsi..
 set INSTANCE_ROOT=%DIR_HOME%
 
 if "%OPENDS_INVOKE_CLASS%" == "" goto noInvokeClass

--
Gitblit v1.10.0