From 2e4f6d94509fa7b8efe7193987c360317ab4aea9 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 21 May 1995 19:31:09 +0000 Subject: Add a undocumented '-d' flag to set debugging. --- usr.sbin/mountd/mountd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.sbin/mountd/mountd.c') diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 822210b..4ca3d3c 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.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 @@ -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; -- cgit v1.1