diff --git a/coreutils/chroot.c b/coreutils/chroot.c index 2679b1f..99c7556 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c @@ -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; }