o Check for a required "pathname" argument presence.

PR:		bin/95146
Submitted by:	candy-sendpr@kgc.co.jp
MFC after:	3 weeks
This commit is contained in:
Maxim Konovalov 2006-09-29 08:00:40 +00:00
parent acc03ac6bb
commit c24384096d

View File

@ -5309,6 +5309,8 @@ ipfw_readfile(int ac, char *av[])
*/
av += optind - 1;
ac -= optind - 1;
if (ac < 2)
errx(EX_USAGE, "no filename argument");
av[ac-1] = NULL;
fprintf(stderr, "command is %s\n", av[0]);
break;