mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
c645c1617e
commit
a76300af71
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue