Subject: lib/3061: standalone nfs.c has missing #ifdef DEBUG_NFS
To: None <gnats-bugs@gnats.netbsd.org>
From: Rolf Grossmann <grossman@securitas.net>
List: netbsd-bugs
Date: 12/27/1996 11:32:14
>Number: 3061
>Category: lib
>Synopsis: standalone nfs.c has missing #ifdef DEBUG_NFS
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 27 02:50:01 1996
>Last-Modified:
>Originator: Rolf Grossmann
>Organization:
>Release: NetBSD-current as of today
>Environment:
none yet
System: you don't wanna know ;)
>Description:
In sys/lib/libsa/nfs.c there is some debug output that is conditional
on a variable debug, that is only defined if NFS_DEBUG is defined.
On one occurence however that condition is ommited.
>How-To-Repeat:
Look at the code or try to compile nfs.c.
>Fix:
Apply this patch:
*** nfs.c.orig Mon Oct 14 18:40:40 1996
--- nfs.c Fri Dec 27 10:08:19 1996
***************
*** 561,566 ****
--- 561,568 ----
}
if (cc == 0) {
+ #ifdef NFS_DEBUG
if (debug)
printf("nfs_read: hit EOF unexpectantly");
+ #endif
goto ret;
}
>Audit-Trail:
>Unformatted: