Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 25fd6c2

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/restore.c

Copy file name to clipboardExpand all lines: src/restore.c
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.