From 883fadf9affab1ab72233d23ecdbb8894a3ca1e5 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 26 Jun 2007 07:39:04 +0000 Subject: [PATCH] * process.c (proc_getgroups): use GIDT2NUM for rb_gid_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ process.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e975f8fb1e..72b7b802d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jun 26 16:39:01 2007 Nobuyoshi Nakada + + * process.c (proc_getgroups): use GIDT2NUM for rb_gid_t. + Tue Jun 26 16:28:24 2007 Koichi Sasada * thread.c (rb_thread_wait_fd_rw): terminate fdset. diff --git a/process.c b/process.c index 5e564611b7..5dff2227e7 100644 --- a/process.c +++ b/process.c @@ -2674,7 +2674,7 @@ proc_getgroups(VALUE obj) ary = rb_ary_new(); for (i = 0; i < ngroups; i++) - rb_ary_push(ary, INT2NUM(groups[i])); + rb_ary_push(ary, GIDT2NUM(groups[i])); return ary; #else