~kris/9p

9hist

e4245c99f619cc244d828722e1a134b319ce5d3a — David du Colombier 23 years ago 3b2750d
Plan 9 from Bell Labs 2003-01-01
1 files changed, 13 insertions(+), 0 deletions(-)

M port/devmnt.c
M port/devmnt.c => port/devmnt.c +13 -0
@@ 482,6 482,19 @@ mntstat(Chan *c, uchar *dp, int n)
		error("returned stat buffer count too large");

	if(r->reply.nstat > n){
		/*
		 * 12/31/2002 RSC
		 * 
		 * This should be nstat-2, which is the first two
		 * bytes of the stat buffer.  But dirstat and dirfstat
		 * depended on getting the full nstat (they didn't
		 * add BIT16SZ themselves).  I fixed dirstat and dirfstat
		 * but am leaving this unchanged for now.  After a
		 * few months, once enough of the relevant binaries
		 * have been recompiled for other reasons, we can
		 * change this to nstat-2.  Devstat gets this right
		 * (via convD2M).
		 */
		/* doesn't fit; just patch the count and return */
		PBIT16((uchar*)dp, r->reply.nstat);
		n = BIT16SZ;