Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4117de

Browse files
committed
More quoting cleanups for Win32's pg_ctl.
1 parent3485cc3 commitd4117de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 4 additions & 4 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.12 2004/06/1018:02:36 momjian Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.13 2004/06/1022:20:53 momjian Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -225,17 +225,17 @@ start_postmaster(void)
225225
if (log_file!=NULL)
226226
/* Win32 needs START /B rather than "&" */
227227
#ifndefWIN32
228-
snprintf(cmd,MAXPGPATH,"%s\"%s\" %s <%s >> \"%s\" 2>&1 &%s",
228+
snprintf(cmd,MAXPGPATH,"%s\"%s\" %s <\"%s\" >> \"%s\" 2>&1 &%s",
229229
#else
230-
snprintf(cmd,MAXPGPATH,"START /B%s\"%s\" %s <%s >> \"%s\" 2>&1%s",
230+
snprintf(cmd,MAXPGPATH,"%sSTART /B \"%s\" %s <\"%s\" >> \"%s\" 2>&1%s",
231231
#endif
232232
SYSTEMQUOTE,postgres_path,post_opts,DEVNULL,log_file,
233233
SYSTEMQUOTE);
234234
else
235235
#ifndefWIN32
236236
snprintf(cmd,MAXPGPATH,"%s\"%s\" %s < \"%s\" 2>&1 &%s",
237237
#else
238-
snprintf(cmd,MAXPGPATH,"START /B%s\"%s\" %s < \"%s\" 2>&1%s",
238+
snprintf(cmd,MAXPGPATH,"%sSTART /B \"%s\" %s < \"%s\" 2>&1%s",
239239
#endif
240240
SYSTEMQUOTE,postgres_path,post_opts,DEVNULL,SYSTEMQUOTE);
241241
returnsystem(cmd);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp