1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* process.c (proc_setgroups): check if the argument lenght is

modified.  fixed: [ruby-dev:25285]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-12-23 14:36:53 +00:00
parent 4ff1561a8c
commit 4155f97bb0
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Dec 23 23:36:28 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (proc_setgroups): check if the argument lenght is
modified. fixed: [ruby-dev:25285]
Thu Dec 23 19:08:41 2004 Tanaka Akira <akr@m17n.org>
* rubyio.h: rename FMODE_UNSEEKABLE to FMODE_DUPLEX.

View file

@ -2697,7 +2697,7 @@ proc_setgroups(VALUE obj, VALUE ary)
groups = ALLOCA_N(gid_t, ngroups);
for (i = 0; i < ngroups; i++) {
for (i = 0; i < ngroups && i < RARRAY(ary)->len; i++) {
VALUE g = RARRAY(ary)->ptr[i];
if (FIXNUM_P(g)) {