chroot fix
This commit is contained in:
parent
cbb34324f5
commit
18e4011b80
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user