Skip to content

Commit 8aec1c9

Browse files
committed
* process.c (ruby_setreuid, ruby_setregid): rename to get rid of name
clash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent a2ca2ab commit 8aec1c9

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Wed Aug 22 08:32:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* process.c (ruby_setreuid, ruby_setregid): rename to get rid of name
4+
clash.
15
Wed Aug 22 08:27:53 2007 Shugo Maeda <shugo@ruby-lang.org>
26

37
* lib/net/imap.rb (ResponseParser#next_token): fixed

process.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ static VALUE S_Tms;
101101
#define BROKEN_SETREGID 1
102102
#endif
103103

104+
#ifdef BROKEN_SETREUID
105+
#define setreuid ruby_setreuid
106+
#endif
107+
#ifdef BROKEN_SETREGID
108+
#define setregid ruby_setregid
109+
#endif
110+
104111
#if defined(HAVE_44BSD_SETUID) || defined(__MacOS_X__)
105112
#if !defined(USE_SETREUID) && !defined(BROKEN_SETREUID)
106113
#define OBSOLETE_SETREUID 1
@@ -3670,8 +3677,8 @@ Init_process()
36703677
rb_define_module_function(rb_mProcGID, "change_privilege", p_gid_change_privilege, 1);
36713678
rb_define_module_function(rb_mProcUID, "grant_privilege", p_uid_grant_privilege, 1);
36723679
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");
36753682
rb_define_module_function(rb_mProcUID, "re_exchange", p_uid_exchange, 0);
36763683
rb_define_module_function(rb_mProcGID, "re_exchange", p_gid_exchange, 0);
36773684
rb_define_module_function(rb_mProcUID, "re_exchangeable?", p_uid_exchangeable, 0);

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2007-08-22"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20070822
5-
#define RUBY_PATCHLEVEL 42
5+
#define RUBY_PATCHLEVEL 43
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)