mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Don't chdir("/"). Root may not be writable to daemon.
Only user can select appropriate run directory. Best left to user.
This commit is contained in:
parent
36b0423311
commit
0ba3d75913
@ -100,7 +100,9 @@ lutil_detach( int debug, int do_close )
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CHDIR_TO_ROOT
|
||||
(void) chdir( "/" );
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SETSID
|
||||
(void) setsid();
|
||||
|
Loading…
Reference in New Issue
Block a user