Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1215/1

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Purging.
 [rsc] --rw-rw-r-- M 318707 glenda sys 20918 Dec 15 10:16 sys/src/9/port/devmnt.c
	/n/sourcesdump/2005/1215/plan9/sys/src/9/port/devmnt.c:477,502 - 
	/n/sourcesdump/2005/1216/plan9/sys/src/9/port/devmnt.c:477,485
	  	r->request.fid = c->fid;
	  	mountrpc(m, r);
	  
	- 	if(r->reply.nstat >= 1<<(8*BIT16SZ))
	- 		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;
	+ 		PBIT16((uchar*)dp, r->reply.nstat-2);
	  	}else{
	  		n = r->reply.nstat;
	  		memmove(dp, r->reply.stat, n);


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].