Complain if more than one file argument is given to unlink(1) like we did

before I made unlink use getopt().
This commit is contained in:
Tim J. Robbins 2002-07-12 07:20:20 +00:00
parent d11a56617d
commit 90833c99de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99858

View file

@ -98,7 +98,7 @@ main(int argc, char *argv[])
usage();
argc -= optind;
argv += optind;
if (argc == 0)
if (argc != 1)
usage();
rm_file(&argv[0]);
exit(eval);