Skip to content

Commit 149008d

Browse files
committed
Add missing 3rd parameter to open().
1 parent 44f62de commit 149008d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/dbase/dbf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/dbase/dbf.c,v 1.10 2006/03/11 04:38:28 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/dbase/dbf.c,v 1.11 2006/06/08 03:28:01 momjian Exp $ */
22

33
/* Routines to read and write xBase-files (.dbf)
44
@@ -47,7 +47,7 @@ dbf_open(char *file, int flags)
4747
return (dbhead *) DBF_ERROR;
4848
}
4949

50-
if ((file_no = open(file, flags)) == -1)
50+
if ((file_no = open(file, flags, 0)) == -1)
5151
{
5252
free(fieldc);
5353
free(head);
@@ -250,7 +250,7 @@ dbf_open_new(char *name, int flags)
250250
}
251251
else
252252
{
253-
if ((dbh->db_fd = open(name, flags)) == -1)
253+
if ((dbh->db_fd = open(name, flags, 0)) == -1)
254254
{
255255
free(dbh);
256256
return (dbhead *) DBF_ERROR;

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