repmgr: in standby switchover, quote file paths in remotely executed commands

Per suggestion from GitHub user sebasmannem (#229)
This commit is contained in:
Ian Barwick
2016-09-20 17:05:20 +09:00
parent 3e51a85e07
commit 03911488aa
4 changed files with 177 additions and 84 deletions

View File

@@ -22,6 +22,7 @@
#define _STRUTIL_H_
#include <stdlib.h>
#include "pqexpbuffer.h"
#include "errcode.h"
@@ -48,4 +49,6 @@ extern int
maxlen_snprintf(char *str, const char *format,...)
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
extern void
appendShellString(PQExpBuffer buf, const char *str);
#endif /* _STRUTIL_H_ */