@@ -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
@@ -3667,8 +3674,8 @@ Init_process()
3667
3674
rb_define_module_function (rb_mProcGID , "change_privilege" , p_gid_change_privilege , 1 );
3668
3675
rb_define_module_function (rb_mProcUID , "grant_privilege" , p_uid_grant_privilege , 1 );
3669
3676
rb_define_module_function (rb_mProcGID , "grant_privilege" , p_gid_grant_privilege , 1 );
3670
- rb_define_alias (rb_mProcUID , "eid=" , "grant_privilege" );
3671
- rb_define_alias (rb_mProcGID , "eid=" , "grant_privilege" );
3677
+ rb_define_alias (rb_singleton_class ( rb_mProcUID ) , "eid=" , "grant_privilege" );
3678
+ rb_define_alias (rb_singleton_class ( rb_mProcGID ) , "eid=" , "grant_privilege" );
3672
3679
rb_define_module_function (rb_mProcUID , "re_exchange" , p_uid_exchange , 0 );
3673
3680
rb_define_module_function (rb_mProcGID , "re_exchange" , p_gid_exchange , 0 );
3674
3681
rb_define_module_function (rb_mProcUID , "re_exchangeable?" , p_uid_exchangeable , 0 );
0 commit comments