mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Add a undocumented '-d' flag to set debugging.
This commit is contained in:
parent
8a3e807f06
commit
6444ef3b82
2 changed files with 10 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ static char copyright[] =
|
|||
#ifndef lint
|
||||
/*static char sccsid[] = "From: @(#)mountd.c 8.8 (Berkeley) 2/20/94";*/
|
||||
static const char rcsid[] =
|
||||
"$Id: mountd.c,v 1.4 1994/12/02 02:58:56 wollman Exp $";
|
||||
"$Id: mountd.c,v 1.5 1995/03/26 23:36:38 wpaul Exp $";
|
||||
#endif /*not lint*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -251,8 +251,11 @@ main(argc, argv)
|
|||
errx(1, "NFS support is not available in the running kernel");
|
||||
}
|
||||
|
||||
while ((c = getopt(argc, argv, "n")) != EOF)
|
||||
while ((c = getopt(argc, argv, "dn")) != EOF)
|
||||
switch (c) {
|
||||
case 'd':
|
||||
debug = debug ? 0 : 1;
|
||||
break;
|
||||
case 'n':
|
||||
root_only = 0;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ static char copyright[] =
|
|||
#ifndef lint
|
||||
/*static char sccsid[] = "From: @(#)mountd.c 8.8 (Berkeley) 2/20/94";*/
|
||||
static const char rcsid[] =
|
||||
"$Id: mountd.c,v 1.4 1994/12/02 02:58:56 wollman Exp $";
|
||||
"$Id: mountd.c,v 1.5 1995/03/26 23:36:38 wpaul Exp $";
|
||||
#endif /*not lint*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -251,8 +251,11 @@ main(argc, argv)
|
|||
errx(1, "NFS support is not available in the running kernel");
|
||||
}
|
||||
|
||||
while ((c = getopt(argc, argv, "n")) != EOF)
|
||||
while ((c = getopt(argc, argv, "dn")) != EOF)
|
||||
switch (c) {
|
||||
case 'd':
|
||||
debug = debug ? 0 : 1;
|
||||
break;
|
||||
case 'n':
|
||||
root_only = 0;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue