From: Bruce Momjian Date: Thu, 15 Nov 2012 00:01:29 +0000 (-0500) Subject: In pg_upgrade, add third meaningless parameter to open(). X-Git-Tag: REL9_3_BETA1~712 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=546d65d55fd67c40e6f31d16cc8fa6e9afd3a403;p=postgresql In pg_upgrade, add third meaningless parameter to open(). --- diff --git a/contrib/pg_upgrade/relfilenode.c b/contrib/pg_upgrade/relfilenode.c index d763ba7d2b..8f7d569491 100644 --- a/contrib/pg_upgrade/relfilenode.c +++ b/contrib/pg_upgrade/relfilenode.c @@ -199,7 +199,7 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map, if (type_suffix[0] != '\0' || segno != 0) { /* Did file open fail? */ - if ((fd = open(old_file, O_RDONLY)) == -1) + if ((fd = open(old_file, O_RDONLY, 0)) == -1) { /* File does not exist? That's OK, just return */ if (errno == ENOENT)