Commit dc6c8c2d authored by Bruce Momjian's avatar Bruce Momjian

Use single quotes for pg_ctl system call.

parent 7ac67fd1
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.7 2004/06/04 04:05:36 momjian Exp $ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.8 2004/06/09 17:36:07 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -224,10 +224,10 @@ start_postmaster(void) ...@@ -224,10 +224,10 @@ start_postmaster(void)
/* Does '&' work on Win32? */ /* Does '&' work on Win32? */
if (log_file != NULL) if (log_file != NULL)
snprintf(cmd, MAXPGPATH, "\"%s\" %s < %s >>\"%s\" 2>&1 &", snprintf(cmd, MAXPGPATH, "'%s' %s < %s >> '%s' 2>&1 &",
postgres_path, post_opts, DEVNULL, log_file); postgres_path, post_opts, DEVNULL, log_file);
else else
snprintf(cmd, MAXPGPATH, "\"%s\" %s < %s 2>&1 &", snprintf(cmd, MAXPGPATH, "'%s' %s < %s 2>&1 &",
postgres_path, post_opts, DEVNULL); postgres_path, post_opts, DEVNULL);
return system(cmd); return system(cmd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment