aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-06-10 22:20:53 +0000
committerBruce Momjian <bruce@momjian.us>2004-06-10 22:20:53 +0000
commitd4117de50a78afb11d5b7004aa4e34540dc9193a (patch)
tree18262942f53ea4b237f80e8218fd3965c772336d
parent3485cc3a7c33f1b6f0ed3bf3dadc46b2501b8995 (diff)
downloadpostgresql-d4117de50a78afb11d5b7004aa4e34540dc9193a.tar.gz
postgresql-d4117de50a78afb11d5b7004aa4e34540dc9193a.zip
More quoting cleanups for Win32's pg_ctl.
-rw-r--r--src/bin/pg_ctl/pg_ctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index ea71d863931..fbf11fbbe15 100644
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -4,7 +4,7 @@
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.12 2004/06/10 18:02:36 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.13 2004/06/10 22:20:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -225,9 +225,9 @@ start_postmaster(void)
if (log_file != NULL)
/* Win32 needs START /B rather than "&" */
#ifndef WIN32
- snprintf(cmd, MAXPGPATH, "%s\"%s\" %s < %s >> \"%s\" 2>&1 &%s",
+ snprintf(cmd, MAXPGPATH, "%s\"%s\" %s < \"%s\" >> \"%s\" 2>&1 &%s",
#else
- snprintf(cmd, MAXPGPATH, "START /B %s\"%s\" %s < %s >> \"%s\" 2>&1%s",
+ snprintf(cmd, MAXPGPATH, "%sSTART /B \"%s\" %s < \"%s\" >> \"%s\" 2>&1%s",
#endif
SYSTEMQUOTE, postgres_path, post_opts, DEVNULL, log_file,
SYSTEMQUOTE);
@@ -235,7 +235,7 @@ start_postmaster(void)
#ifndef WIN32
snprintf(cmd, MAXPGPATH, "%s\"%s\" %s < \"%s\" 2>&1 &%s",
#else
- snprintf(cmd, MAXPGPATH, "START /B %s\"%s\" %s < \"%s\" 2>&1%s",
+ snprintf(cmd, MAXPGPATH, "%sSTART /B \"%s\" %s < \"%s\" 2>&1%s",
#endif
SYSTEMQUOTE, postgres_path, post_opts, DEVNULL, SYSTEMQUOTE);
return system(cmd);