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

neil_a_wilson
15.06.2006 c87e4ae4851db2f760a7b015824793a70bd3c668
Update the backup task to ensure that relative paths are interpreted relative
to the server root rather than relative to the current working directory.

OpenDS Issue Number: 651
1 files modified
7 ■■■■■ changed files
opends/src/server/org/opends/server/tasks/BackupTask.java 7 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tasks/BackupTask.java
@@ -244,6 +244,13 @@
    // Make sure that the backup directory exists.  If not, then create it.
    File backupDirFile = new File(backupDirectory);
    if (! backupDirFile.isAbsolute())
    {
      backupDirectory = DirectoryServer.getServerRoot() + File.separator +
                        backupDirectory;
      backupDirFile = new File(backupDirectory);
    }
    if (! backupDirFile.exists())
    {
      try