Skip to content

Commit 646a31f

Browse files
author
wyhaines
committed
Backport ruby#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
1 parent 1ecd988 commit 646a31f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ChangeLog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Mon May 24 05:15:00 2010 Kirk Haines <khaines@ruby-lang.org>
22

3-
* 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.
3+
* 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
4+
5+
* lib/fileutils.rb: Backport #1700 [ruby-core:24078]; stringify group argument in #fu_get_gid before making regexp match.
46

57
Thu May 20 04:10:00 2010 Kirk Haines <khaines@ruby-lang.org>
68

lib/fileutils.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ def fu_get_uid(user) #:nodoc:
984984

985985
def fu_get_gid(group) #:nodoc:
986986
return nil unless group
987+
group = group.to_s
987988
if /\A\d+\z/ =~ group
988989
then group.to_i
989990
else Etc.getgrnam(group).gid

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy