summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2007-07-16 08:40:52 +0000
committerMagnus Hagander2007-07-16 08:40:52 +0000
commitbbef913250e34fcf4bb79c6ef381c247e61f8e8a (patch)
tree99a84f3ec0baf4c3d3d2bc0980db1c5af1796dd8
parent5aaf09ac4691211249542647df32d67a51ce6976 (diff)
Quote pathnames so pg_standby works with paths that have
spaces in them. ISHIDA Akio
-rw-r--r--contrib/pg_standby/pg_standby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c
index 7eb4a51ba4c..f1a771267f0 100644
--- a/contrib/pg_standby/pg_standby.c
+++ b/contrib/pg_standby/pg_standby.c
@@ -69,7 +69,7 @@ int restoreCommandType;
int nextWALFileType;
#define SET_RESTORE_COMMAND(cmd, arg1, arg2) \
- snprintf(restoreCommand, MAXPGPATH, cmd " %s %s", arg1, arg2)
+ snprintf(restoreCommand, MAXPGPATH, cmd " \"%s\" \"%s\"", arg1, arg2)
struct stat stat_buf;