Tar compiles on BSD, thanks Roberto E. Vargas Caballero. Also remove tons of trailing whitespace.

This commit is contained in:
David Galos
2013-07-20 01:27:42 -04:00
parent 43c4213631
commit 9f8deb4b23
25 changed files with 78 additions and 85 deletions

View File

@@ -8,16 +8,16 @@ int
main(int argc, char **argv)
{
char *shell[] = {"/bin/sh", "-i", NULL};
if(getenv("SHELL"))
shell[0] = getenv("SHELL");
if(argc < 2)
usage();
if(chroot(argv[1]) == -1)
eprintf("chroot: '%s':", argv[1]);
if(chdir("/") == -1)
eprintf("chroot:");
@@ -26,7 +26,7 @@ main(int argc, char **argv)
} else {
execvp(argv[2], argv+2);
}
eprintf("chroot: '%s':", argv[2]);
return 1;
}