Tar compiles on BSD, thanks Roberto E. Vargas Caballero. Also remove tons of trailing whitespace.
This commit is contained in:
4
cp.c
4
cp.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user