mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fix MINGW compile with getuid
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17603 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
560f02f25b
commit
11118909b2
2 changed files with 7 additions and 2 deletions
|
@ -4654,8 +4654,6 @@ printf(
|
|||
setgid (gid);
|
||||
setgroups (0, 0); /* Empty additional groups list */
|
||||
}
|
||||
#endif /* __MINGW__ */
|
||||
|
||||
if (getuid() == 0)
|
||||
{
|
||||
sprintf(ebuf, "Still running as root after trying to change");
|
||||
|
@ -4663,6 +4661,8 @@ printf(
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
#endif /* __MINGW__ */
|
||||
|
||||
init_probe(); /* Probe other name servers on net. */
|
||||
|
||||
if (debug)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue