Skip to content

Commit dc6c8c2

Browse files
committed
Use single quotes for pg_ctl system call.
1 parent 7ac67fd commit dc6c8c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_ctl/pg_ctl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.7 2004/06/04 04:05:36 momjian Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.8 2004/06/09 17:36:07 momjian Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -224,10 +224,10 @@ start_postmaster(void)
224224

225225
/* Does '&' work on Win32? */
226226
if (log_file != NULL)
227-
snprintf(cmd, MAXPGPATH, "\"%s\" %s < %s >>\"%s\" 2>&1 &",
227+
snprintf(cmd, MAXPGPATH, "'%s' %s < %s >> '%s' 2>&1 &",
228228
postgres_path, post_opts, DEVNULL, log_file);
229229
else
230-
snprintf(cmd, MAXPGPATH, "\"%s\" %s < %s 2>&1 &",
230+
snprintf(cmd, MAXPGPATH, "'%s' %s < %s 2>&1 &",
231231
postgres_path, post_opts, DEVNULL);
232232
return system(cmd);
233233
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy