Skip to content

Commit 546d65d

Browse files
committed
In pg_upgrade, add third meaningless parameter to open().
1 parent 29add0d commit 546d65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/relfilenode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map,
199199
if (type_suffix[0] != '\0' || segno != 0)
200200
{
201201
/* Did file open fail? */
202-
if ((fd = open(old_file, O_RDONLY)) == -1)
202+
if ((fd = open(old_file, O_RDONLY, 0)) == -1)
203203
{
204204
/* File does not exist? That's OK, just return */
205205
if (errno == ENOENT)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy