Skip to content

Commit 25fd6c2

Browse files
committed
fix: do not ignore ENOENT, when overwriting postgresql.auto.conf
1 parent 807cc27 commit 25fd6c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/restore.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ update_recovery_options(pgBackup *backup,
15441544
if (st.st_size > 0)
15451545
{
15461546
fp = fio_open_stream(postgres_auto_path, FIO_DB_HOST);
1547-
if (fp == NULL && errno != ENOENT)
1547+
if (fp == NULL)
15481548
elog(ERROR, "cannot open \"%s\": %s", postgres_auto_path, strerror(errno));
15491549
}
15501550

0 commit comments

Comments
 (0)