From: Eric S. Raymond Date: Wed, 4 Sep 2002 14:11:19 +0000 (-0000) Subject: Sunil Shetye's re-exec patch. X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=908b92d7ff4ad571963b71cf16518e7493571770;p=~andy%2Ffetchmail Sunil Shetye's re-exec patch. svn path=/trunk/; revision=3695 --- diff --git a/daemon.c b/daemon.c index 220d0d0c..a0b709d3 100644 --- a/daemon.c +++ b/daemon.c @@ -252,8 +252,10 @@ nottyDetach: return(PS_IOERR); } +#ifdef HAVE_GETCWD /* move to root directory, so we don't prevent filesystem unmounts */ chdir("/"); +#endif /* set our umask to something reasonable (we hope) */ #if defined(DEF_UMASK)