From 0dae8c9f0b5bb1a8751f065ec2b11f6c04867b2b Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 20 Nov 2017 10:27:45 +0900 Subject: [PATCH] repmgr: don't add empty "passfile" parameter in recovery.conf --- repmgr-action-standby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index a79fa04a..30ce6bf9 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -4970,7 +4970,7 @@ write_primary_conninfo(char *line, t_conninfo_param_list *param_list) } /* passfile provided as configuration option */ - if (config_file_options.passfile[0] != '\n') + if (config_file_options.passfile[0] != '\0') { /* check if the libpq we're using supports "passfile=" */ if (has_passfile() == true)