Skip to content
Snippets Groups Projects
Commit ef51582b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

slight change to chdir/chroot commit to clean up perror args

parent 0189c35b
No related branches found
No related tags found
No related merge requests found
......@@ -301,10 +301,17 @@ int main( int argc, char **argv )
}
#if defined(HAVE_CHROOT)
if ( sandbox && chdir( sandbox ) && chroot( sandbox ) ) {
perror("chroot");
rc = 1;
goto stop;
if ( sandbox ) {
if ( chdir( sandbox ) ) {
perror("chdir");
rc = 1;
goto stop;
}
if ( chroot( sandbox ) ) {
perror("chroot");
rc = 1;
goto stop;
}
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment