Skip to content

Commit

Permalink
fix: default file name is ".pg_service.conf" on Windows (not "pg_serv…
Browse files Browse the repository at this point in the history
…ice.conf") (#2398)
  • Loading branch information
MarekUniq committed Jan 11, 2022
1 parent 6631a41 commit db82575
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ private InputStream openInputStream(String resourceName) throws IOException {
String resourceName = OSUtil.getUserConfigRootDirectory();
if (OSUtil.isWindows()) {
resourceName += "postgresql" + File.separator;
} else {
resourceName += ".";
}
resourceName += ".";
resourceName += pgServceConfFileDefaultName;
if (new File(resourceName).canRead()) {
LOGGER.log(Level.FINE, "Value [{0}] selected because file exist in user home directory", new Object[]{resourceName});
Expand Down

0 comments on commit db82575

Please sign in to comment.