mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add call to suppress warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38416 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4eded59443
commit
ef42c2f44c
1 changed files with 6 additions and 2 deletions
|
@ -5018,8 +5018,8 @@ printf(
|
|||
}
|
||||
{
|
||||
#ifndef __MINGW__
|
||||
int uid = -2;
|
||||
int gid = -2;
|
||||
uid_t uid = -2;
|
||||
gid_t gid = -2;
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_PWD_H)
|
||||
|
@ -5076,6 +5076,10 @@ printf(
|
|||
uid = getuid();
|
||||
gid = getgid();
|
||||
}
|
||||
/* The call to setgroups may fail if we don't have that capability ...
|
||||
* but in that case we aren't too bothered anyway.
|
||||
*/
|
||||
setgroups (1, &gid);
|
||||
if (setgid (gid) < 0)
|
||||
{
|
||||
snprintf(ebuf, sizeof(ebuf),
|
||||
|
|
Loading…
Reference in a new issue