From 6fc79470fcfb009478eb3b97a3013e5be777c5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Villemain?= Date: Thu, 23 Aug 2018 18:33:55 +0200 Subject: [PATCH] Fix grep to find conninfo it used to use \t* but [[:space:]] should be better as it does match more kind of spaces (the current one being broken in my case on RH7) --- 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 3ac147ec..44c12760 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -5857,7 +5857,7 @@ get_barman_property(char *dst, char *name, char *local_repmgr_directory) initPQExpBuffer(&command_output); maxlen_snprintf(command, - "grep \"^\t%s:\" %s/show-server.txt", + "grep \"^[[:space:]]%s:\" %s/show-server.txt", name, local_repmgr_tmp_directory); (void) local_command(command, &command_output);