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:
parent
acc03ac6bb
commit
c24384096d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user