diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/fileutils.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +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 15:10:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): should use diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 32408ee868..b1e20f64e2 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -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 |