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

4
cp.c
View File

@@ -9,7 +9,7 @@ int
main(int argc, char *argv[])
{
struct stat st;
ARGBEGIN {
case 'r':
cp_rflag = true;
@@ -17,7 +17,7 @@ main(int argc, char *argv[])
default:
exit(EXIT_FAILURE);
} ARGEND;
if(argc > 2 && !(stat(argv[argc-1], &st) == 0 && S_ISDIR(st.st_mode)))
eprintf("%s: not a directory\n", argv[argc-1]);
enmasse(argc, argv, cp);