[前][次][番号順一覧][スレッド一覧]

ruby-changes:56507

From: Yusuke <ko1@a...>
Date: Mon, 15 Jul 2019 00:08:35 +0900 (JST)
Subject: [ruby-changes:56507] Yusuke Endoh: b4975693ed (master): process.c (p_sys_setregid, p_sys_setresgid): remove unused tmp buffer

https://git.ruby-lang.org/ruby.git/commit/?id=b4975693ed

From b4975693ed1ac46be081e02d82a6dfb7aea0e1c0 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Mon, 15 Jul 2019 00:07:32 +0900
Subject: process.c (p_sys_setregid, p_sys_setresgid): remove unused tmp buffer

To suppress Coverity Scan warning

diff --git a/process.c b/process.c
index 530bf26..c732fd2 100644
--- a/process.c
+++ b/process.c
@@ -6099,11 +6099,9 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/process.c#L6099
 p_sys_setregid(VALUE obj, VALUE rid, VALUE eid)
 {
     rb_gid_t rgid, egid;
-    PREPARE_GETGRNAM;
     check_gid_switch();
     rgid = OBJ2GID(rid);
     egid = OBJ2GID(eid);
-    FINISH_GETGRNAM;
     if (setregid(rgid, egid) != 0) rb_sys_fail(0);
     return Qnil;
 }
@@ -6127,12 +6125,10 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/process.c#L6125
 p_sys_setresgid(VALUE obj, VALUE rid, VALUE eid, VALUE sid)
 {
     rb_gid_t rgid, egid, sgid;
-    PREPARE_GETGRNAM;
     check_gid_switch();
     rgid = OBJ2GID(rid);
     egid = OBJ2GID(eid);
     sgid = OBJ2GID(sid);
-    FINISH_GETGRNAM;
     if (setresgid(rgid, egid, sgid) != 0) rb_sys_fail(0);
     return Qnil;
 }
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]