diff --git a/contrib/pg_upgrade/exec.c b/contrib/pg_upgrade/exec.c index ec2f94436bf1949f075a6d4744a525a6dc21dd41..7c691750e1381e4c8ef4d50a9a2575a50fe318b6 100644 --- a/contrib/pg_upgrade/exec.c +++ b/contrib/pg_upgrade/exec.c @@ -97,9 +97,9 @@ verify_directories(void) if (access(".", R_OK | W_OK #ifndef WIN32 /* - * Directory execute permission on NTFS means "can execute scripts", - * which we don't care about, so skip the check. Also, X_OK is not - * defined in the API. + * Do a directory execute check only on Unix because execute permission + * on NTFS means "can execute scripts", which we don't care about. + * Also, X_OK is not defined in the Windows API. */ | X_OK #endif