Check if the -sec option is given without an argument.
PR: bin/170413 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
This commit is contained in:
parent
5f4ebdbfb8
commit
7700ebe3ff
@ -2235,7 +2235,7 @@ do_opt(char **cpp, char **endcpp, struct exportlist *ep, struct grouplist *grp,
|
||||
ep->ex_indexfile = strdup(cpoptarg);
|
||||
} else if (!strcmp(cpopt, "quiet")) {
|
||||
opt_flags |= OP_QUIET;
|
||||
} else if (!strcmp(cpopt, "sec")) {
|
||||
} else if (cpoptarg && !strcmp(cpopt, "sec")) {
|
||||
if (parsesec(cpoptarg, ep))
|
||||
return (1);
|
||||
opt_flags |= OP_SEC;
|
||||
|
Loading…
Reference in New Issue
Block a user