From owner-cvs-all Thu Feb 15 14:42:50 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2B21237B401; Thu, 15 Feb 2001 14:42:45 -0800 (PST) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1FMgjx88880; Thu, 15 Feb 2001 14:42:45 -0800 (PST) (envelope-from iedowse) Message-Id: <200102152242.f1FMgjx88880@freefall.freebsd.org> From: Ian Dowse Date: Thu, 15 Feb 2001 14:42:45 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/fstat fstat.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/02/15 14:42:44 PST Modified files: usr.bin/fstat fstat.c Log: Fix `fstat -m' (show memory-mapped files), which was broken by revision 1.25. When evaluating the termination condition for the iteration over all map entries, we must take care to use the kernel versions of all pointers. The code was comparing a kernel pointer to a pointer within a local variable, so the loop never terminated. Revision Changes Path 1.26 +3 -3 src/usr.bin/fstat/fstat.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message