mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 07:30:57 -05: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue