directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject directory-kerby git commit: Fixing a few typos
Date Fri, 12 Jan 2018 10:24:06 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/1.1.x-fixes 1296f52d8 -> 51e9cfc2b


Fixing a few typos


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/51e9cfc2
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/51e9cfc2
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/51e9cfc2

Branch: refs/heads/1.1.x-fixes
Commit: 51e9cfc2b74d99810f3b375a4f7d4277a44e7ff0
Parents: 1296f52
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Jan 12 10:18:53 2018 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Jan 12 10:24:00 2018 +0000

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/51e9cfc2/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java
----------------------------------------------------------------------
diff --git a/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java b/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java
index df7caa6..6c8e72e 100644
--- a/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java
+++ b/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/KerbyKdcServer.java
@@ -72,9 +72,13 @@ public class KerbyKdcServer extends KdcServer {
         String confDirPath = args[1];
         String workDirPath = args[2];
         File confDir = new File(confDirPath);
+        if (!confDir.exists()) {
+            System.err.println("The conf-dir is invalid or does not exist");
+            System.exit(3);
+        }
         File workDir = new File(workDirPath);
-        if (!confDir.exists() || !workDir.exists()) {
-            System.err.println("Invalid or not exist conf-dir or work-dir");
+        if (!workDir.exists()) {
+            System.err.println("The work-dir is invalid or does not exist");
             System.exit(3);
         }
 


Mime
View raw message