@@ -101,6 +101,13 @@ static VALUE S_Tms;
101
101
#define BROKEN_SETREGID 1
102
102
#endif
103
103
104
+ #ifdef BROKEN_SETREUID
105
+ #define setreuid ruby_setreuid
106
+ #endif
107
+ #ifdef BROKEN_SETREGID
108
+ #define setregid ruby_setregid
109
+ #endif
110
+
104
111
#if defined(HAVE_44BSD_SETUID ) || defined(__MacOS_X__ )
105
112
#if !defined(USE_SETREUID ) && !defined(BROKEN_SETREUID )
106
113
#define OBSOLETE_SETREUID 1
@@ -3670,8 +3677,8 @@ Init_process()
3670
3677
rb_define_module_function (rb_mProcGID , "change_privilege" , p_gid_change_privilege , 1 );
3671
3678
rb_define_module_function (rb_mProcUID , "grant_privilege" , p_uid_grant_privilege , 1 );
3672
3679
rb_define_module_function (rb_mProcGID , "grant_privilege" , p_gid_grant_privilege , 1 );
3673
- rb_define_alias (rb_mProcUID , "eid=" , "grant_privilege" );
3674
- rb_define_alias (rb_mProcGID , "eid=" , "grant_privilege" );
3680
+ rb_define_alias (rb_singleton_class ( rb_mProcUID ) , "eid=" , "grant_privilege" );
3681
+ rb_define_alias (rb_singleton_class ( rb_mProcGID ) , "eid=" , "grant_privilege" );
3675
3682
rb_define_module_function (rb_mProcUID , "re_exchange" , p_uid_exchange , 0 );
3676
3683
rb_define_module_function (rb_mProcGID , "re_exchange" , p_gid_exchange , 0 );
3677
3684
rb_define_module_function (rb_mProcUID , "re_exchangeable?" , p_uid_exchangeable , 0 );
0 commit comments