Commits

Anonymous committed 546d65d

In pg_upgrade, add third meaningless parameter to open().

Comments (0)

Files changed (1)

contrib/pg_upgrade/relfilenode.c

 		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)