Subject: CVS commit: src/usr.bin/fstat
To: None <source-changes@NetBSD.org>
From: Andrew Brown <atatat@netbsd.org>
List: source-changes
Date: 12/14/2004 03:10:23
Module Name:	src
Committed By:	atatat
Date:		Tue Dec 14 03:10:23 UTC 2004

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

Log Message:
Slurp in the struct mount at vp->v_mount and the struct specinfo at
vp->v_specinfo to get the proper st_dev and st_rdev numbers.  We're
already picking over the kernel, so let's do it right.  That means
also asserting the file type for the /dev/pts directory (S_IFDIR) and
nodes therein (S_IFCHR).

Remove getptsmajor(), since we no longer need it.  Besides, it was
being used wrongly.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 src/usr.bin/fstat/ptyfs.c

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