Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bbef913

Browse files
committed
Quote pathnames so pg_standby works with paths that have
spaces in them. ISHIDA Akio
1 parent 5aaf09a commit bbef913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_standby/pg_standby.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int restoreCommandType;
6969
int nextWALFileType;
7070

7171
#define SET_RESTORE_COMMAND(cmd, arg1, arg2) \
72-
snprintf(restoreCommand, MAXPGPATH, cmd " %s %s", arg1, arg2)
72+
snprintf(restoreCommand, MAXPGPATH, cmd " \"%s\" \"%s\"", arg1, arg2)
7373

7474
struct stat stat_buf;
7575

0 commit comments

Comments
 (0)