diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-11 21:23:31 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-11 21:23:31 +0000 |
| commit | fbb6e25a4dd755586fdb213c584d33e0e5bd35e6 (patch) | |
| tree | 1f2917b1b20ef41f70b504cfbc0fcde3ab778206 | |
| parent | 8c7f9f5cdd0ade7442d4e341093ecf1b8e2f4690 (diff) | |
merges r30820 from trunk into ruby_1_9_2.
--
* process.c (proc_setgroups): add GC guard to prevent intermediate
variable from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | process.c | 4 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Tue Feb 8 01:00:21 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com> + + * process.c (proc_setgroups): add GC guard to prevent intermediate + variable from GC. + Mon Feb 7 22:56:16 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com> * lib/benchmark.rb (Benchmark#bmbm): use ensure clause instead of @@ -4464,9 +4464,11 @@ proc_setgroups(VALUE obj, VALUE ary) } else { gr = getgrnam(RSTRING_PTR(tmp)); - if (gr == NULL) + if (gr == NULL) { + RB_GC_GUARD(tmp); rb_raise(rb_eArgError, "can't find group for %s", RSTRING_PTR(tmp)); + } groups[i] = gr->gr_gid; } } @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 196 +#define RUBY_PATCHLEVEL 197 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |
