diff options
author | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-24 17:25:00 +0000 |
---|---|---|
committer | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-24 17:25:00 +0000 |
commit | 646a31fb9adc3ca2d3a62db3ec511df22f5c7294 (patch) | |
tree | 1206c1e72930f63dea242f1cafde2a8ef3fb1803 /lib | |
parent | 1ecd9885e0284f13378a84b8bc2a0b16d9e1a27c (diff) |
Backport #1700 [ruby-core:24078]; Stringify group argument in #fu_get_gid before making regexp match.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@28001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fileutils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 3fdb6cbfe6..3ef80ed601 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -984,6 +984,7 @@ module FileUtils def fu_get_gid(group) #:nodoc: return nil unless group + group = group.to_s if /\A\d+\z/ =~ group then group.to_i else Etc.getgrnam(group).gid |