Skip to content
Snippets Groups Projects
Commit dfc71a1b authored by Bruce Momjian's avatar Bruce Momjian
Browse files

pg_upgrade: Add SYSTEMQUOTE for Windows paths with spaces

Another fix for commit 244142d3.  We
added SYSTEMQUOTE to the win32 popen() compatibility function in PG 9.4.

Backpatch-through: 9.3 only
parent a1d383ab
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ get_control_data(ClusterInfo *cluster, bool live_check) ...@@ -117,7 +117,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if (!live_check || cluster == &new_cluster) if (!live_check || cluster == &new_cluster)
{ {
/* only pg_controldata outputs the cluster state */ /* only pg_controldata outputs the cluster state */
snprintf(cmd, sizeof(cmd), "\"%s/pg_controldata\" \"%s\"", snprintf(cmd, sizeof(cmd), SYSTEMQUOTE "\"%s/pg_controldata\" \"%s\"" SYSTEMQUOTE,
cluster->bindir, cluster->pgdata); cluster->bindir, cluster->pgdata);
fflush(stdout); fflush(stdout);
fflush(stderr); fflush(stderr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment