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:
Richard Frith-MacDonald 2015-03-21 15:22:20 +00:00
parent f0fdeca45c
commit 589a298647

View file

@ -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),