|
@@ -10636,7 +10636,8 @@ int main(int argc, char *argv[])
|
|
|
if (chroot(chroot_dir) != 0) {
|
|
if (chroot(chroot_dir) != 0) {
|
|
|
quit(1, "Unable to chroot");
|
|
quit(1, "Unable to chroot");
|
|
|
}
|
|
}
|
|
|
- chdir("/");
|
|
|
|
|
|
|
+ if (chdir("/"))
|
|
|
|
|
+ quit(1, "Unable to chdir to chroot");
|
|
|
}
|
|
}
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|