mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

davidely
08.09.2007 de12910fc85156632870c1b8ec808c5bd9ac9f3a
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.
6 files modified
10 ■■■■ changed files
opends/lib/opends_service.exe patch | view | raw | blame | history
opends/lib/winlauncher.exe patch | view | raw | blame | history
opends/resource/bin/start-ds.bat 2 ●●● patch | view | raw | blame | history
opends/resource/bin/stop-ds.bat 2 ●●● patch | view | raw | blame | history
opends/src/build-tools/windows/common.c 2 ●●● patch | view | raw | blame | history
opends/src/build-tools/windows/service.c 4 ●●●● patch | view | raw | blame | history
opends/lib/opends_service.exe
Binary files differ
opends/lib/winlauncher.exe
Binary files differ
opends/resource/bin/start-ds.bat
@@ -30,7 +30,7 @@
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
set LOG=%INSTANCE_ROOT%\logs\native-windows.out
set LOG="%INSTANCE_ROOT%\logs\native-windows.out"
set SCRIPT=start-ds.bat
echo %SCRIPT%: invoked >> %LOG%
opends/resource/bin/stop-ds.bat
@@ -35,7 +35,7 @@
set INSTANCE_ROOT=%DIR_HOME%
set LOG=%INSTANCE_ROOT%\logs\native-windows.out
set LOG="%INSTANCE_ROOT%\logs\native-windows.out"
set SCRIPT=stop-ds.bat
rem This is the template to use for logging.  Make sure to use >>
opends/src/build-tools/windows/common.c
@@ -53,7 +53,7 @@
  STARTUPINFO startInfo; // info to pass to the new process
  DWORD processFlag; // background process flag
  debug("Attempting to child process '%s' background=%d.", command, background);
  debug("Attempting to create child process '%s' background=%d.", command, background);
  // reset process info first
  ZeroMemory(procInfo, sizeof(PROCESS_INFORMATION));
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