From 9f84bb2533becadb80736d6f746e612923d0b1bb Mon Sep 17 00:00:00 2001 From: "Wim (Willem Rein) Oudshoorn" Date: Fri, 27 Feb 2004 14:08:36 +0000 Subject: [PATCH] when using MinGW do not try to chdir to /tmp because it does not always exist. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18690 72102866-910b-0410-8b05-ffd578937521 --- Tools/gdomap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/gdomap.c b/Tools/gdomap.c index 50582a0b0..e6b0b1184 100644 --- a/Tools/gdomap.c +++ b/Tools/gdomap.c @@ -4618,13 +4618,14 @@ 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)