1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/fileutils.rb (FileUtils#fu_get_gid): stringify group

argument before making regexp match.  [ruby-dev:38155]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2009-03-13 16:13:40 +00:00
parent d6fe66a062
commit 5a7a9d0d8f
2 changed files with 6 additions and 0 deletions

View file

@ -6,6 +6,11 @@ Fri Mar 13 19:41:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (EXTMK_ARGS): needs MINIRUBY for cross-compile.
[ruby-core:20131]
Fri Mar 13 09:17:12 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/fileutils.rb (FileUtils#fu_get_gid): stringify group
argument before making regexp match. [ruby-dev:38155]
Thu Mar 12 15:26:02 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/openssl/test_ssl.rb (OpenSSL#test_client_session):

View file

@ -985,6 +985,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