From: Kurt Zeilenga Date: Tue, 8 Feb 2000 04:22:31 +0000 (+0000) Subject: Don't chdir("/"). Root may not be writable to daemon. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3193 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ba3d75913d5b7431c4894eb588d548565ed0a18;p=openldap Don't chdir("/"). Root may not be writable to daemon. Only user can select appropriate run directory. Best left to user. --- diff --git a/libraries/liblutil/detach.c b/libraries/liblutil/detach.c index 924982d635..88ef003ca2 100644 --- a/libraries/liblutil/detach.c +++ b/libraries/liblutil/detach.c @@ -100,7 +100,9 @@ lutil_detach( int debug, int do_close ) } } +#ifdef CHDIR_TO_ROOT (void) chdir( "/" ); +#endif #ifdef HAVE_SETSID (void) setsid();