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

Commitdc6c8c2

Browse files
committed
Use single quotes for pg_ctl system call.
1 parent7ac67fd commitdc6c8c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 3 additions & 3 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.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
returnsystem(cmd);
233233
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp