mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1ecd9885e0
commit
646a31fb9a
2 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
Mon May 24 05:15:00 2010 Kirk Haines <khaines@ruby-lang.org>
|
||||
|
||||
* configure.in: Bug #2553 [ruby-core:27380]; Add a --disable-ucontext option, for use with --enable-pthreads, to avoid performance loss from --enable-pthreads and the oodles of sigprocmask calls that normally brings.
|
||||
* configure.in: Bug #2553 [ruby-core:27380]; Add a --disable-ucontext option, for use with --enable-pthreads, to avoid performance loss from --enable-pthreads and the oodles of sigprocmask calls that normally brings. r27999
|
||||
|
||||
* lib/fileutils.rb: Backport #1700 [ruby-core:24078]; stringify group argument in #fu_get_gid before making regexp match.
|
||||
|
||||
Thu May 20 04:10:00 2010 Kirk Haines <khaines@ruby-lang.org>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue