mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
Use single quotes for pg_ctl system call.
This commit is contained in:
parent
7ac67fd189
commit
dc6c8c2d06
@ -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)
|
|||||||
|
|
||||||
/* 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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user