summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2006-06-08 03:28:01 +0000
committerBruce Momjian2006-06-08 03:28:01 +0000
commit149008dfe72553f6c786d90e02181a06b387fd98 (patch)
tree101fa304706e4b2a691a82e2645b8f7bdb91e30f
parent44f62decada93db28a0e94764a4c14e765b14b7d (diff)
Add missing 3rd parameter to open().
-rw-r--r--contrib/dbase/dbf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/dbase/dbf.c b/contrib/dbase/dbf.c
index ba1c99bc4b4..f202213b11a 100644
--- a/contrib/dbase/dbf.c
+++ b/contrib/dbase/dbf.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/contrib/dbase/dbf.c,v 1.10 2006/03/11 04:38:28 momjian Exp $ */
+/* $PostgreSQL: pgsql/contrib/dbase/dbf.c,v 1.11 2006/06/08 03:28:01 momjian Exp $ */
/* Routines to read and write xBase-files (.dbf)
@@ -47,7 +47,7 @@ dbf_open(char *file, int flags)
return (dbhead *) DBF_ERROR;
}
- if ((file_no = open(file, flags)) == -1)
+ if ((file_no = open(file, flags, 0)) == -1)
{
free(fieldc);
free(head);
@@ -250,7 +250,7 @@ dbf_open_new(char *name, int flags)
}
else
{
- if ((dbh->db_fd = open(name, flags)) == -1)
+ if ((dbh->db_fd = open(name, flags, 0)) == -1)
{
free(dbh);
return (dbhead *) DBF_ERROR;