bin/53585: Header never gets print in fstat(1) after rev.1.41

Alexey Dokuchaev danfe at regency.nsu.ru
Sat Jun 21 06:30:15 PDT 2003


>Number:         53585
>Category:       bin
>Synopsis:       Header never gets print in fstat(1) after rev.1.41
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 21 06:30:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alexey Dokuchaev
>Release:        FreeBSD 4.8-RC i386
>Organization:
CNIT NSU
>Environment:
System: FreeBSD regency.nsu.ru 4.8-RC FreeBSD 4.8-RC #2: Fri Mar 7 17:30:50 NOVT 2003 root at regency.nsu.ru:/usr/obj/usr/src/sys/REGENCY i386
>Description:
Since after header print was moved into a separate function,
print_header(), it never gets invoked in fstat.c (this happened with
revision 1.41).  Provided teeny patch fixes this, but the problem really
is pretty obvious to get fixed on its onw.  8-)
>How-To-Repeat:
Invoke fstat(1) on -current and compare top line with that of -stable.  8-)
>Fix:

--- fstat.c.orig	Sat Jun 21 20:16:27 2003
+++ fstat.c	Sat Jun 21 20:18:06 2003
@@ -273,6 +273,7 @@
 #endif
 	if ((p = kvm_getprocs(kd, what, arg, &cnt)) == NULL)
 		errx(1, "%s", kvm_geterr(kd));
+	print_header();
 	for (plast = &p[cnt]; p < plast; ++p) {
 		if (p->ki_stat == SZOMB)
 			continue;


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list