diff --git a/VERSION b/VERSION index c583dafc..5f915f90 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.414 +8.3.415 diff --git a/database/DBio.c b/database/DBio.c index 5bc9bc9e..1fb60baa 100644 --- a/database/DBio.c +++ b/database/DBio.c @@ -1232,7 +1232,7 @@ DBCellRead(cellDef, ignoreTech, dereference, errptr) #ifdef FILE_LOCKS /* Close files that were locked by another user */ - if (cellDef->cd_fd == -2) FCLOSE(f); + if ((FileLocking == FALSE) || (cellDef->cd_fd == -2)) FCLOSE(f); #else /* When using fcntl() to enforce file locks, we can't */ /* close the file descriptor without losing the lock. */