Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+3-3
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)