Quote pathnames so pg_standby works with paths that have

spaces in them.

ISHIDA Akio
This commit is contained in:
Magnus Hagander 2007-07-16 08:40:52 +00:00
parent 5aaf09ac46
commit bbef913250
1 changed files with 1 additions and 1 deletions

View File

@ -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;