chroot fix

This commit is contained in:
Your Name 2023-10-22 09:40:31 +03:00
parent cbb34324f5
commit 18e4011b80

View File

@ -16,7 +16,7 @@ int main(const int argc, char **argv) {
}
chdir("/");
if (execvp(argv[2], argv) < 0) {
if (execvp(argv[2], argv + 2) < 0) {
fprintf(stderr, "chroot: %s\n", strerror(errno));
return 1;
}