diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-11-08 05:29:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-11-08 05:29:37 +0000 |
commit | af328b152b68bb21549e52df230b17a8672795c3 (patch) | |
tree | 8a63998435ddc0a3367124967bf063f01e7cfbb9 /ext/sdbm | |
parent | 41e41d34d14ef3595a54148368b89b6c75d0fe4d (diff) |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/sdbm')
-rw-r--r-- | ext/sdbm/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c index f6dd73b9bc..87136e9bdb 100644 --- a/ext/sdbm/init.c +++ b/ext/sdbm/init.c @@ -70,9 +70,9 @@ fsdbm_s_open(argc, argv, klass) if (mode >= 0) dbm = sdbm_open(RSTRING(file)->ptr, O_RDWR|O_CREAT, mode); if (!dbm) - dbm = sdbm_open(RSTRING(file)->ptr, O_RDWR, mode); + dbm = sdbm_open(RSTRING(file)->ptr, O_RDWR, 0); if (!dbm) - dbm = sdbm_open(RSTRING(file)->ptr, O_RDONLY, mode); + dbm = sdbm_open(RSTRING(file)->ptr, O_RDONLY, 0); if (!dbm) { if (mode == -1) return Qnil; |