From 9c79e14614869fbf3bb9132a554e28a5b85c0b72 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 18 Feb 2007 13:56:15 +0000 Subject: [PATCH] * ext/etc/etc.c (etc_getgrgid): missed to replace a macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/etc/etc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f5d172073b..cb37ecd81d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Feb 18 22:56:07 2007 Nobuyoshi Nakada + + * ext/etc/etc.c (etc_getgrgid): missed to replace a macro. + Sun Feb 18 19:33:00 2007 Tadayoshi Funaba * lib/date/format.rb: updated based on date2 4.0.3. diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 54367a0431..5e15176b4e 100644 --- a/ext/etc/etc.c +++ b/ext/etc/etc.c @@ -326,7 +326,7 @@ etc_getgrgid(int argc, VALUE *argv, VALUE obj) rb_secure(4); if (rb_scan_args(argc, argv, "01", &id) == 1) { - gid = PW_VAL2GID(id); + gid = NUM2GIDT(id); } else { gid = getgid();