diff options
author | pluknet <pluknet@FreeBSD.org> | 2013-02-20 12:40:26 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2013-02-20 12:40:26 +0000 |
commit | 7700ebe3ffd69c6088261679e25a155d4868f305 (patch) | |
tree | 9054097c895d9b6febb3735c551ea6ad8ea70dc3 /usr.sbin/mountd | |
parent | 5f4ebdbfb81f276bb33d8530e4d121fdcda4349d (diff) | |
download | FreeBSD-src-7700ebe3ffd69c6088261679e25a155d4868f305.zip FreeBSD-src-7700ebe3ffd69c6088261679e25a155d4868f305.tar.gz |
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
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index bc290d6..1913410 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -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; |