From bf67d8df27c87b666a5973a098e4d6f70e561f32 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 13 Nov 2003 08:58:20 +0000 Subject: [PATCH] * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY. reported by Take_tk . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/open-uri.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fa7a0bd37c..2764d4550c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 13 17:56:41 2003 Tanaka Akira + + * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY. + reported by Take_tk . + Thu Nov 13 16:45:53 2003 GOTOU Yuuzou * ext/openssl/ossl_x509req.c (ossl_x509req_to_der): add function for diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 8ff5a10b86..132a1f4662 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -98,7 +98,7 @@ module OpenURI unless mode == nil || mode == 'r' || mode == 'rb' || - mode == O_RDONLY + mode == File::RDONLY raise ArgumentError.new("invalid access mode #{mode} (#{uri.class} resource is read only.)") end