diff options
author | phk <phk@FreeBSD.org> | 1995-05-21 19:31:09 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-05-21 19:31:09 +0000 |
commit | 2e4f6d94509fa7b8efe7193987c360317ab4aea9 (patch) | |
tree | 997b10751b16ee1895d021331a9d588b57079e5a /sbin | |
parent | 35e9e9dbcff9251cc3d981dd2066aab708a0769d (diff) | |
download | FreeBSD-src-2e4f6d94509fa7b8efe7193987c360317ab4aea9.zip FreeBSD-src-2e4f6d94509fa7b8efe7193987c360317ab4aea9.tar.gz |
Add a undocumented '-d' flag to set debugging.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mountd/mountd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index 822210b..4ca3d3c 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -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; |