mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 10:14:55 +00:00
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:
parent
d11a56617d
commit
90833c99de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99858
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue