[Midnightbsd-cvs] src [8841] trunk/usr.sbin/mountd/mountd.c: check if the -sec option is given without an argument.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Sep 26 00:07:19 EDT 2016
Revision: 8841
http://svnweb.midnightbsd.org/src/?rev=8841
Author: laffer1
Date: 2016-09-26 00:07:19 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
check if the -sec option is given without an argument.
Modified Paths:
--------------
trunk/usr.sbin/mountd/mountd.c
Modified: trunk/usr.sbin/mountd/mountd.c
===================================================================
--- trunk/usr.sbin/mountd/mountd.c 2016-09-26 04:06:47 UTC (rev 8840)
+++ trunk/usr.sbin/mountd/mountd.c 2016-09-26 04:07:19 UTC (rev 8841)
@@ -2238,7 +2238,7 @@
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;
More information about the Midnightbsd-cvs
mailing list