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

Commit1a8957a

Browse files
committed
Add cygwin version check before using cygwin_conv_path(),
and use cygwin_conv_to_full_win32_path() in older versions.
1 parent26eb0c7 commit1a8957a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.121 2010/04/05 02:25:56 itagaki Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.122 2010/04/07 03:48:51 itagaki Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -1080,7 +1080,11 @@ pgwin32_CommandLine(bool registration)
10801080

10811081
#ifdef__CYGWIN__
10821082
/* need to convert to windows path */
1083+
#ifCYGWIN_VERSION_DLL_MAJOR >=1007
10831084
cygwin_conv_path(CCP_POSIX_TO_WIN_A,cmdLine,buf,sizeof(buf));
1085+
#else
1086+
cygwin_conv_to_full_win32_path(cmdLine,buf);
1087+
#endif
10841088
strcpy(cmdLine,buf);
10851089
#endif
10861090

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp