6 const char chroot_usage[] = "chroot directory [command]\n"
7 "Run a command with special root directory.\n";
10 chroot_main (struct FileInfo *i, int argc, char **argv)
16 name_and_error ("cannot chroot to that directory");
21 execvp (argv[2], argv + 2);
25 prog = getenv ("SHELL");
28 execlp (prog, prog, NULL);
30 name_and_error ("cannot exec");