1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-03-05 16:07:35 +02:00

correct flag for recovery.conf creation

This commit is contained in:
Grigory Smolkin 2019-07-08 02:40:20 +03:00
parent 549d66a29c
commit c3ebbec953

View File

@ -789,7 +789,7 @@ create_recovery_conf(time_t backup_id,
elog(LOG, "creating recovery.conf");
snprintf(path, lengthof(path), "%s/recovery.conf", instance_config.pgdata);
fp = fio_fopen(path, PG_BINARY_W, FIO_DB_HOST);
fp = fio_fopen(path, "w", FIO_DB_HOST);
if (fp == NULL)
elog(ERROR, "cannot open recovery.conf \"%s\": %s", path,
strerror(errno));