aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-09-04 14:11:19 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-09-04 14:11:19 +0000
commit908b92d7ff4ad571963b71cf16518e7493571770 (patch)
tree664b524e23121e695162d8a865172fad76f72662
parent1bded7d40bcbaea28103f81a7f8998f376cd4286 (diff)
downloadfetchmail-908b92d7ff4ad571963b71cf16518e7493571770.tar.gz
fetchmail-908b92d7ff4ad571963b71cf16518e7493571770.tar.bz2
fetchmail-908b92d7ff4ad571963b71cf16518e7493571770.zip
Sunil Shetye's re-exec patch.
svn path=/trunk/; revision=3695
-rw-r--r--daemon.c2
1 files changed, 2 insertions, 0 deletions
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)