]> git.sur5r.net Git - openldap/commitdiff
Don't chdir("/"). Root may not be writable to daemon.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 8 Feb 2000 04:22:31 +0000 (04:22 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 8 Feb 2000 04:22:31 +0000 (04:22 +0000)
Only user can select appropriate run directory.  Best left to user.

libraries/liblutil/detach.c

index 924982d63598525084f12f70326c2b2205c2f20e..88ef003ca24156876189c91d2cda52601c38c072 100644 (file)
@@ -100,7 +100,9 @@ lutil_detach( int debug, int do_close )
                        }
                }
 
+#ifdef CHDIR_TO_ROOT
                (void) chdir( "/" );
+#endif
 
 #ifdef HAVE_SETSID
                (void) setsid();