From 0104ca814205b03db79a3b0767186ccbc0dab40c Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 8 Nov 2000 05:29:37 +0000 Subject: matz git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/sdbm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/sdbm') diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c index f6dd73b9b..87136e9bd 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; -- cgit