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:
parent
807cc27ebe
commit
25fd6c2206
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user