From 6444ef3b826835861ef724e08dd405eeb2a62ff0 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 21 May 1995 19:31:09 +0000 Subject: [PATCH] Add a undocumented '-d' flag to set debugging. --- sbin/mountd/mountd.c | 7 +++++-- usr.sbin/mountd/mountd.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index 822210bb2442..4ca3d3c5efad 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 @@ -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; diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 822210bb2442..4ca3d3c5efad 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;