summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-01-29 05:10:42 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-01-29 05:10:42 +0000
commit2f0faf671dcf8eadebdd0e35a567ddb8bd95bcaa (patch)
tree8546241dd9e946b44ace45e8eef03cf479090ed1 /process.c
parent161e3313d20eb285c8cfc3288e92a6d2e533cf44 (diff)
* string.c (str_independent): should not clear str->orig here.
it's too early. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/process.c b/process.c
index 32c7d57..de39744 100644
--- a/process.c
+++ b/process.c
@@ -952,7 +952,7 @@ proc_setuid(obj, id)
int uid;
uid = NUM2INT(id);
-#if defined HAVE_SETRESUID
+#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
setresuid(uid, -1, -1);
#elif defined HAVE_SETREUID
setreuid(uid, -1);
@@ -984,7 +984,7 @@ proc_setgid(obj, id)
int gid;
gid = NUM2INT(id);
-#if defined HAVE_SETRESGID
+#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
setresgid(gid, -1, -1);
#elif defined HAVE_SETREGID
setregid(gid, -1);
@@ -1013,7 +1013,7 @@ static VALUE
proc_seteuid(obj, euid)
VALUE obj, euid;
{
-#if defined HAVE_SETRESUID
+#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
if (setresuid(-1, NUM2INT(euid), -1) < 0) rb_sys_fail(0);
#elif defined HAVE_SETREUID
if (setreuid(-1, NUM2INT(euid)) < 0) rb_sys_fail(0);
@@ -1042,7 +1042,7 @@ proc_setegid(obj, egid)
VALUE obj, egid;
{
rb_secure(2);
-#if defined HAVE_SETRESGID
+#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
if (setresgid(-1, NUM2INT(egid), -1) < 0) rb_sys_fail(0);
#elif defined HAVE_SETREGID
if (setregid(-1, NUM2INT(egid)) < 0) rb_sys_fail(0);