mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix EXEC BACKEND + Windows builds for group privs
Under EXEC BACKEND we also need to be going through the group privileges setup since we do support that on Unixy systems, so add that to SubPostmasterMain(). Under Windows, we need to simply return true from GetDataDirectoryCreatePerm(), but that wasn't happening due to a missing #else clause. Per buildfarm.
This commit is contained in:
@ -78,9 +78,14 @@ GetDataDirectoryCreatePerm(const char *dataDir)
|
||||
|
||||
/* Set permissions */
|
||||
SetDataDirectoryCreatePerm(statBuf.st_mode);
|
||||
|
||||
return true;
|
||||
#endif /* !defined(WIN32) && !defined(__CYGWIN__) */
|
||||
#else /* !defined(WIN32) && !defined(__CYGWIN__) */
|
||||
/*
|
||||
* On Windows, we don't have anything to do here since they don't have
|
||||
* Unix-y permissions.
|
||||
*/
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user