mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Do a chdir() to the sandbox dir to ensure CWD is within sandbox.
This commit is contained in:
parent
b7b9148c7f
commit
0189c35b6a
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ int main( int argc, char **argv )
|
|||
}
|
||||
|
||||
#if defined(HAVE_CHROOT)
|
||||
if ( sandbox && chroot( sandbox ) ) {
|
||||
if ( sandbox && chdir( sandbox ) && chroot( sandbox ) ) {
|
||||
perror("chroot");
|
||||
rc = 1;
|
||||
goto stop;
|
||||
|
|
|
|||
Loading…
Reference in a new issue