diff options
author | Marcus Boerger <helly@php.net> | 2003-07-03 11:17:34 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-07-03 11:17:34 +0000 |
commit | bc16d962a6db829e18830d1e232a36bc0a6f1885 (patch) | |
tree | 22aebab436a5ccff7f7ed05a2b3eae34d022c2a7 /ext/dba/dba_db3.c | |
parent | 2044fbf59ee73eb65cf067d8926806e3a06b145d (diff) | |
download | php-git-bc16d962a6db829e18830d1e232a36bc0a6f1885.tar.gz |
Fix open mode (noticed by FutureQuest, Inc.)
Diffstat (limited to 'ext/dba/dba_db3.c')
-rw-r--r-- | ext/dba/dba_db3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c index 4f4220c3ee..cd86ab3ef5 100644 --- a/ext/dba/dba_db3.c +++ b/ext/dba/dba_db3.c @@ -64,7 +64,7 @@ DBA_OPEN_FUNC(db3) type = info->mode == DBA_READER ? DB_UNKNOWN : info->mode == DBA_TRUNC ? DB_BTREE : - s? DB_BTREE : DB_UNKNOWN; + !s? DB_BTREE : DB_UNKNOWN; gmode = info->mode == DBA_READER ? DB_RDONLY : (info->mode == DBA_CREAT && s) ? DB_CREATE : |