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

Commit6fbf4e0

Browse files
committed
Fix pg_upgrade build problem on Windows when using X_OK access
permission check on the current directory.
1 parentb3bc63e commit6fbf4e0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎contrib/pg_upgrade/exec.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,16 @@ void
9494
verify_directories(void)
9595
{
9696

97-
if (access(".",R_OK |W_OK |X_OK)!=0)
97+
if (access(".",R_OK |W_OK
98+
#ifndefWIN32
99+
/*
100+
*Directory execute permission on NTFS means "can execute scripts",
101+
*which we don't care about, so skip the check. Also, X_OK is not
102+
*defined in the API.
103+
*/
104+
|X_OK
105+
#endif
106+
)!=0)
98107
pg_log(PG_FATAL,
99108
"You must have read and write access in the current directory.\n");
100109

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp