]> Pileus Git - ~andy/fetchmail/commitdiff
Sunil Shetye's re-exec patch.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 4 Sep 2002 14:11:19 +0000 (14:11 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 4 Sep 2002 14:11:19 +0000 (14:11 -0000)
svn path=/trunk/; revision=3695

daemon.c

index 220d0d0c1d1ba9f4b954614c4f917dfb164bfd50..a0b709d3a199498575028a828572ae8c2552721b 100644 (file)
--- 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)