Subject: CVS commit: src/usr.bin/fstat
To: None <source-changes@NetBSD.org>
From: Aymeric Vincent <aymeric@netbsd.org>
List: source-changes
Date: 04/02/2004 14:22:05
Module Name:	src
Committed By:	aymeric
Date:		Fri Apr  2 14:22:05 UTC 2004

Modified Files:
	src/usr.bin/fstat: fstat.c

Log Message:
fix the way the ext2fs-specific size and mode variables are fetched:
they are indirectly gotten from kernel memory and as such should be read
with KVM_READ.
This fixes fstat core dumps when some process holds a reference in a Linux
ext2fs filesystem.
Thanks to Aleksy Schubert (alx.at.mimuw.dot.edu.dot.pl) for debugging this
with me.


To generate a diff of this commit:
cvs rdiff -r1.65 -r1.66 src/usr.bin/fstat/fstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.