Create temporary pg.auto.conf file with the same permissions as the original

Commit 0574279 set the file permissions to 0600 rather than the user's
umask, but if initdb was executed with -g/--allow-group-access, the
file is maintained with 0640, so we'll just maintain the existing
permssions.
This commit is contained in:
Ian Barwick
2020-04-07 13:29:59 +09:00
parent cd80f265ac
commit 599bab590a
4 changed files with 15 additions and 4 deletions

View File

@@ -6221,7 +6221,6 @@ check_upstream_config(PGconn *conn, int server_version_num, t_node_info *upstrea
}
}
printf("XXX %i\n", PQserverVersion(conn));
if (data_checksums == false && wal_log_hints == false)
{
/*