From 70181fddf1467996bea393d13294ffe76b8a0853 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 14 Jan 2011 08:42:11 -0500 Subject: Change setgroups to affect all the threads in the process. --- nptl/sysdeps/pthread/setxid.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nptl/sysdeps') diff --git a/nptl/sysdeps/pthread/setxid.h b/nptl/sysdeps/pthread/setxid.h index aebdbd2..043ffd2 100644 --- a/nptl/sysdeps/pthread/setxid.h +++ b/nptl/sysdeps/pthread/setxid.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2007, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,11 +20,11 @@ #include #define __SETXID_1(cmd, arg1) \ - cmd.id[0] = arg1 + cmd.id[0] = (long int) arg1 #define __SETXID_2(cmd, arg1, arg2) \ - __SETXID_1 (cmd, arg1); cmd.id[1] = arg2 + __SETXID_1 (cmd, arg1); cmd.id[1] = (long int) arg2 #define __SETXID_3(cmd, arg1, arg2, arg3) \ - __SETXID_2 (cmd, arg1, arg2); cmd.id[2] = arg3 + __SETXID_2 (cmd, arg1, arg2); cmd.id[2] = (long int) arg3 #ifdef SINGLE_THREAD # define INLINE_SETXID_SYSCALL(name, nr, args...) \ -- cgit v1.1