mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +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( "/" );
|
(void) chdir( "/" );
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SETSID
|
#ifdef HAVE_SETSID
|
||||||
(void) setsid();
|
(void) setsid();
|
||||||
|
Loading…
Reference in New Issue
Block a user