From 18e4011b80ef4154e33c5b73060ea5e56cdd5cec Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 22 Oct 2023 09:40:31 +0300 Subject: [PATCH] chroot fix --- coreutils/chroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }