1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-04 10:44:46 +02:00

fix: do not ignore ENOENT, when overwriting postgresql.auto.conf

This commit is contained in:
Grigory Smolkin 2021-01-27 01:48:38 +03:00
parent 807cc27ebe
commit 25fd6c2206

View File

@ -1544,7 +1544,7 @@ update_recovery_options(pgBackup *backup,
if (st.st_size > 0)
{
fp = fio_open_stream(postgres_auto_path, FIO_DB_HOST);
if (fp == NULL && errno != ENOENT)
if (fp == NULL)
elog(ERROR, "cannot open \"%s\": %s", postgres_auto_path, strerror(errno));
}