[libpostgresql-jdbc-java] 117/128: Use proper System property
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:18:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to annotated tag REL9_3_1100
in repository libpostgresql-jdbc-java.
commit 0ba2c0b4daeeee7ffe59af22b134b128c6e445e7
Author: Michael McCaskill <michael at team.shoeboxed.com>
Date: Wed Oct 23 15:07:24 2013 -0400
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 be474be..2d13710 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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git
More information about the pkg-java-commits
mailing list