None of these work without the proper # of arguments so print usage

This commit is contained in:
sin
2013-08-31 23:04:49 +01:00
parent 355911f010
commit 428cd4fe84
6 changed files with 27 additions and 0 deletions

4
rm.c
View File

@@ -26,6 +26,10 @@ main(int argc, char *argv[])
default:
usage();
} ARGEND;
if (argc < 1)
usage();
for(; argc > 0; argc--, argv++)
rm(argv[0]);