postgresql-jdbc.git / summary / log / commit / refs
commit 0ba2c0b4daeeee7ffe59af22b134b128c6e445e7
Author: Michael McCaskill <michael@team.shoeboxed.com>
Date: Wed Oct 23 19:07:24 2013 +0000
Use proper System property
Using 'path.separator' results in malformed paths such as:
/default/dir:./postgresql/root.crt
This corrects the problem.
org/postgresql/ssl/jdbc4/LibPQFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/org/postgresql/ssl/jdbc4/LibPQFactory.java b/org/postgresql/ssl/jdbc4/LibPQFactory.java
index be474be1..2d137103 100644
--- a/org/postgresql/ssl/jdbc4/LibPQFactory.java
+++ b/org/postgresql/ssl/jdbc4/LibPQFactory.java
@@ -61,7 +61,7 @@ public class LibPQFactory extends WrappedFactory implements HostnameVerifier {
SSLContext ctx = SSLContext.getInstance("TLS"); // or "SSL" ?
//Determinig the default file location
- String pathsep = System.getProperty("path.separator");
+ String pathsep = System.getProperty("file.separator");
String defaultdir;
boolean defaultfile = false;
if (System.getProperty("os.name").toLowerCase().indexOf("windows") > -1)
[parent: e022d2bf9630]