From 8964a01bae1a4b3c99cfed61ce22278acbafde4f Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 12 Jun 2007 02:32:28 +0000 Subject: [PATCH] Fixed [UG]ID::eid=. Fixes bug # 10370 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process.c b/process.c index c0376f1666..b9fe24f4cf 100644 --- a/process.c +++ b/process.c @@ -3824,8 +3824,8 @@ Init_process(void) rb_define_module_function(rb_mProcGID, "change_privilege", p_gid_change_privilege, 1); rb_define_module_function(rb_mProcUID, "grant_privilege", p_uid_grant_privilege, 1); rb_define_module_function(rb_mProcGID, "grant_privilege", p_gid_grant_privilege, 1); - rb_define_alias(rb_mProcUID, "eid=", "grant_privilege"); - rb_define_alias(rb_mProcGID, "eid=", "grant_privilege"); + rb_define_alias(rb_singleton_class(rb_mProcUID), "eid=", "grant_privilege"); + rb_define_alias(rb_singleton_class(rb_mProcGID), "eid=", "grant_privilege"); rb_define_module_function(rb_mProcUID, "re_exchange", p_uid_exchange, 0); rb_define_module_function(rb_mProcGID, "re_exchange", p_gid_exchange, 0); rb_define_module_function(rb_mProcUID, "re_exchangeable?", p_uid_exchangeable, 0);