diff --git a/other/java/client/src/main/java/seaweedfs/client/FilerSslContext.java b/other/java/client/src/main/java/seaweedfs/client/FilerSslContext.java index 5a88c1da3..520adfd38 100644 --- a/other/java/client/src/main/java/seaweedfs/client/FilerSslContext.java +++ b/other/java/client/src/main/java/seaweedfs/client/FilerSslContext.java @@ -21,7 +21,7 @@ public class FilerSslContext { String home = System.getProperty("user.home"); File f1 = new File("./"+securityFileName); File f2 = new File(home + "/.seaweedfs/"+securityFileName); - File f3 = new File(home + "/etc/seaweedfs/"+securityFileName); + File f3 = new File("/etc/seaweedfs/"+securityFileName); File securityFile = f1.exists()? f1 : f2.exists() ? f2 : f3.exists()? f3 : null;