aboutsummaryrefslogtreecommitdiffstats
path: root/lib/drb/acl.rb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-19 18:30:18 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-19 18:30:18 +0000
commit6591e380169e85e7764150e3a93722ca990ee05d (patch)
tree0bde2c4e556f097c722acb105260e716918190fb /lib/drb/acl.rb
parent44b6b031bac42734d567b3adfefcaa80011fb039 (diff)
downloadruby-6591e380169e85e7764150e3a93722ca990ee05d.tar.gz
merged from ruby_1_8 branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb/acl.rb')
-rw-r--r--lib/drb/acl.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/drb/acl.rb b/lib/drb/acl.rb
index aa86dbe70f..861c8a514d 100644
--- a/lib/drb/acl.rb
+++ b/lib/drb/acl.rb
@@ -13,6 +13,8 @@ class ACL
def initialize(str)
if str == '*' or str == 'all'
@pat = [:all]
+ elsif str.include?('*')
+ @pat = [:name, dot_pat(str)]
else
begin
@pat = [:ip, IPAddr.new(str)]