From 0cface06cb625924a2ef8ce3efde5d78810a3c24 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 05 Jul 2007 17:46:46 +0000
Subject: [PATCH] Update all of the command-line tools to ensure that the exit code should always be between 0 and 255, which are the bounds enforced by most shells and operating environments. Any negative value, or any positive value greater than 255 will be changed to 255.
---
opendj-sdk/opends/src/server/org/opends/server/tools/BackUpDB.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/BackUpDB.java b/opendj-sdk/opends/src/server/org/opends/server/tools/BackUpDB.java
index 7d08dcd..0a409f4 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/BackUpDB.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/BackUpDB.java
@@ -64,7 +64,6 @@
import static org.opends.server.messages.ToolMessages.*;
import static org.opends.server.util.ServerConstants.*;
import static org.opends.server.util.StaticUtils.*;
-import org.opends.server.util.StaticUtils;
import static org.opends.server.tools.ToolConstants.*;
import org.opends.server.admin.std.server.BackendCfg;
@@ -96,7 +95,7 @@
if(retCode != 0)
{
- System.exit(retCode);
+ System.exit(filterExitCode(retCode));
}
}
@@ -498,7 +497,7 @@
catch(Exception e)
{
System.err.println("Error installing the custom error logger: " +
- StaticUtils.stackTraceToSingleLineString(e));
+ stackTraceToSingleLineString(e));
}
}
--
Gitblit v1.10.0