mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
Add missing 3rd parameter to open().
This commit is contained in:
parent
44f62decad
commit
149008dfe7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user