You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/06/14 07:55:50 UTC

[tomcat] branch main updated: Use correct separator

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 74335a4ffa Use correct separator
74335a4ffa is described below

commit 74335a4ffa2e54afdbe580e5b6ef1182475a8b29
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jun 14 08:55:23 2023 +0100

    Use correct separator
---
 java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java b/java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java
index 0ef6ca0a7d..fd92d147e6 100644
--- a/java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java
+++ b/java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java
@@ -16,6 +16,7 @@
  */
 package org.apache.tomcat.util.net;
 
+import java.io.File;
 import java.io.IOException;
 import java.io.Serializable;
 import java.security.KeyStore;
@@ -42,7 +43,8 @@ public class SSLHostConfigCertificate implements Serializable {
 
     static final String DEFAULT_KEYSTORE_PROVIDER = System.getProperty("javax.net.ssl.keyStoreProvider");
     static final String DEFAULT_KEYSTORE_TYPE = System.getProperty("javax.net.ssl.keyStoreType", "JKS");
-    private static final String DEFAULT_KEYSTORE_FILE = System.getProperty("user.home")+"/.keystore";
+    private static final String DEFAULT_KEYSTORE_FILE =
+            System.getProperty("user.home") + File.pathSeparator + ".keystore";
     private static final String DEFAULT_KEYSTORE_PASSWORD = "changeit";
 
     // Internal


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org