8000 use PG_BINARY_A flag when opening file with map headers · postgrespro/pg_probackup@b794fbc · GitHub
[go: up one dir, main page]

Skip to content

Commit b794fbc

Browse files
committed
use PG_BINARY_A flag when opening file with map headers
1 parent 15c9046 commit b794fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ write_page_headers(BackupPageHeader2 *headers, pgFile *file, HeaderMap *hdr_map,
22682268
{
22692269
elog(LOG, "Creating page header map \"%s\"", map_path);
22702270

2271-
hdr_map->fp = fopen(map_path, "a");
2271+
hdr_map->fp = fopen(map_path, PG_BINARY_A);
22722272
if (hdr_map->fp == NULL)
22732273
elog(ERROR, "Cannot open header file \"%s\": %s",
22742274
map_path, strerror(errno));

0 commit comments

Comments
 (0)
0