projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f64ac1
)
(__hash_open): Correctly test for a read-write db.
author
Miles Bader
<miles@gnu.org>
Sat, 12 Oct 1996 03:38:21 +0000
(
03:38
+0000)
committer
Miles Bader
<miles@gnu.org>
Sat, 12 Oct 1996 03:38:21 +0000
(
03:38
+0000)
db/hash/hash.c
patch
|
blob
|
history
diff --git
a/db/hash/hash.c
b/db/hash/hash.c
index
0db7b32
..
1f26c7e
100644
(file)
--- a/
db/hash/hash.c
+++ b/
db/hash/hash.c
@@
-189,7
+189,7
@@
__hash_open(file, flags, mode, info, dflags)
__buf_init(hashp, DEF_BUFSIZE);
hashp->new_file = new_table;
- hashp->save_file = file && (hashp->flags & O_
RDWR)
;
+ hashp->save_file = file && (hashp->flags & O_
ACCMODE) != O_RDONLY
;
hashp->cbucket = -1;
if (!(dbp = (DB *)malloc(sizeof(DB)))) {
save_errno = errno;