diff options
| author | Stephen Frost | 2018-04-07 23:01:43 +0000 |
|---|---|---|
| committer | Stephen Frost | 2018-04-07 23:01:43 +0000 |
| commit | 2b74022473f0c7a7fbe11a4973f80478226275bd (patch) | |
| tree | 03e0788d9634fb439b6af7d2255f42aec6675b7f /src/common | |
| parent | c37b3d08ca6873f9d4eaf24c72a90a550970cbb8 (diff) | |
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.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/file_perm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/common/file_perm.c b/src/common/file_perm.c index d640d6a1fdd..f2c8f846093 100644 --- a/src/common/file_perm.c +++ b/src/common/file_perm.c @@ -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 } |
