From 156714f3f184ac408a8279f52fd00388b3310958 Mon Sep 17 00:00:00 2001 From: Dan Farina Date: Thu, 23 Dec 2010 01:03:44 -0800 Subject: [PATCH] Fix quoting misbehavior Move the single quote in the formatting string to the end of the line. Signed-off-by: Dan Farina --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index ee424a98..695137ee 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1377,7 +1377,7 @@ create_recovery_file(const char *data_dir, char *master_conninfo) } maxlen_snprintf(line, - "primary_conninfo = 'host=%s port=%s' password=%s\n", + "primary_conninfo = 'host=%s port=%s password=%s'\n", host, ((masterport==NULL) ? "5432" : masterport), password); }