Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jun 2003 20:23:47 +0700 (NOVST)
From:      Alexey Dokuchaev <danfe@regency.nsu.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/53585: Header never gets print in fstat(1) after rev.1.41
Message-ID:  <200306211323.h5LDNlGJ003898@regency.nsu.ru>
Resent-Message-ID: <200306211330.h5LDUDRH078938@freefall.freebsd.org>

index | next in thread | raw e-mail


>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@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:


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306211323.h5LDNlGJ003898>