Commit 149008df authored by Bruce Momjian's avatar Bruce Momjian

Add missing 3rd parameter to open().

parent 44f62dec
/* $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) /* Routines to read and write xBase-files (.dbf)
...@@ -47,7 +47,7 @@ dbf_open(char *file, int flags) ...@@ -47,7 +47,7 @@ dbf_open(char *file, int flags)
return (dbhead *) DBF_ERROR; return (dbhead *) DBF_ERROR;
} }
if ((file_no = open(file, flags)) == -1) if ((file_no = open(file, flags, 0)) == -1)
{ {
free(fieldc); free(fieldc);
free(head); free(head);
...@@ -250,7 +250,7 @@ dbf_open_new(char *name, int flags) ...@@ -250,7 +250,7 @@ dbf_open_new(char *name, int flags)
} }
else else
{ {
if ((dbh->db_fd = open(name, flags)) == -1) if ((dbh->db_fd = open(name, flags, 0)) == -1)
{ {
free(dbh); free(dbh);
return (dbhead *) DBF_ERROR; return (dbhead *) DBF_ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment