From de12910fc85156632870c1b8ec808c5bd9ac9f3a Mon Sep 17 00:00:00 2001
From: davidely <davidely@localhost>
Date: Tue, 08 May 2007 08:09:58 +0000
Subject: [PATCH] Fixed a problem where OpenDS couldn't be installed on Windows in a directory with a space in it's path.  There was also a similar, but more benign problem with log messages generated from start-ds.bat and stop-ds.bat.

---
 opends/src/build-tools/windows/service.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/src/build-tools/windows/service.c b/opends/src/build-tools/windows/service.c
index 09c450a..5152900 100644
--- a/opends/src/build-tools/windows/service.c
+++ b/opends/src/build-tools/windows/service.c
@@ -662,10 +662,10 @@
     }
     else
     {
-      if ((strlen(fileName) + strlen(" start ") + strlen(_instanceDir) + strlen("\"\""))
+      if ((strlen(fileName) + strlen(" start ") + strlen(_instanceDir) + 2 * strlen("\"\""))
         < COMMAND_SIZE)
       {
-        sprintf(serviceBinPath, "%s start \"%s\"", fileName,
+        sprintf(serviceBinPath, "\"%s\" start \"%s\"", fileName,
         _instanceDir);
       }
       else

--
Gitblit v1.10.0