Subject: bin/4086: small bugs in nfsd.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <msaitoh@spa.is.uec.ac.jp>
List: netbsd-bugs
Date: 09/05/1997 09:55:50
>Number: 4086
>Category: bin
>Synopsis: small bugs in nfsd.c
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 5 03:05:01 1997
>Last-Modified:
>Originator: SAITOH Masanobu
>Organization:
>Release: latest -current
>Environment:
System: NetBSD ifree.spa.is.uec.ac.jp 1.2G NetBSD 1.2G (IFREE) #51: Thu Jul 31 23:17:44 JST 1997 msaitoh@ifree.spa.is.uec.ac.jp:/var/sources/src/sys/arch/i386/compile/IFREE i386
>Description:
See below.
>How-To-Repeat:
nfsd -tun 100
>Fix:
Apply following patch:
--- nfsd.c.orig Tue Apr 1 21:26:25 1997
+++ nfsd.c Fri Sep 5 18:49:33 1997
@@ -171,7 +171,7 @@
case 'n':
nfsdcnt = atoi(optarg);
if (nfsdcnt < 1 || nfsdcnt > MAXNFSDCNT) {
- warnx("nfsd count %d; reset to %d", DEFNFSDCNT);
+ warnx("nfsd count %d; reset to %d", nfsdcnt, DEFNFSDCNT);
nfsdcnt = DEFNFSDCNT;
}
break;
@@ -213,7 +213,7 @@
if (argc == 1) {
nfsdcnt = atoi(argv[0]);
if (nfsdcnt < 1 || nfsdcnt > MAXNFSDCNT) {
- warnx("nfsd count %d; reset to %d", DEFNFSDCNT);
+ warnx("nfsd count %d; reset to %d", nfsdcnt, DEFNFSDCNT);
nfsdcnt = DEFNFSDCNT;
}
}
>Audit-Trail:
>Unformatted: