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

This commit is contained in:
Kurt Zeilenga 2000-10-09 23:38:30 +00:00
parent 0189c35b6a
commit ef51582b6e

View file

@ -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