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/trunk@22940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d1e856766
commit
70e504b34e
2 changed files with 6 additions and 0 deletions
|
@ -63,6 +63,11 @@ Fri Mar 13 09:30:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
|
||||
* bignum.c (bigfixize): zero length Bignum is 0.
|
||||
|
||||
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]
|
||||
|
||||
Fri Mar 13 08:06:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* util.c (rv_strdup): macro to duplicate nul-terminated string.
|
||||
|
|
|
@ -987,6 +987,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
|
||||
|
|
Loading…
Reference in a new issue