Don't chdir to /tmp on MinGW.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze_1_8_0@17616 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-09-04 03:37:44 +00:00
parent c645c1617e
commit a76300af71
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2003-09-03 Adam Fedor <fedor@gnu.org>
* Tools/gdomap.c (main): Don't chdir to /tmp on MinGW.
2003-09-02 Adam Fedor <fedor@gnu.org>
* Tools/gdnc.m (main): Don't mess with file descriptors on MinGW.

View file

@ -4602,13 +4602,13 @@ printf(
/*
* As another level of paranoia - restrict this process to /tmp
*/
#ifndef __MINGW__
if (chdir("/tmp") < 0)
{
sprintf(ebuf, "Unable to change directory to /tmp");
gdomap_log(LOG_CRIT);
exit(EXIT_FAILURE);
}
#ifndef __MINGW__
if (geteuid() == 0)
{
if (chroot("/tmp") < 0)