Plan 9 from Bell Labs’s /usr/web/sources/extra/changes/2006/0215

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


fossil: use correct qid.version in Ropen.
 [rsc] --rw-rw-r-- M 1061654 rsc sys 22931 Feb 15 08:29 sys/src/cmd/fossil/9p.c
	/n/sourcesdump/2006/0215/plan9/sys/src/cmd/fossil/9p.c:744,759 - 
	/n/sourcesdump/2006/0216/plan9/sys/src/cmd/fossil/9p.c:744,759
	  	/*
	  	 * Everything checks out, try to commit any changes.
	  	 */
	- 	if((m->t.mode & OTRUNC) && !(mode & ModeAppend)){
	+ 	if((m->t.mode & OTRUNC) && !(mode & ModeAppend))
	  		if(!fileTruncate(fid->file, fid->uid))
	  			goto error;
	- 		fid->qid.vers = fileGetMcount(fid->file);
	- 	}
	+ 
	  	if(isdir && fid->db != nil){
	  		dirBufFree(fid->db);
	  		fid->db = nil;
	  	}
	  
	+ 	fid->qid.vers = fileGetMcount(fid->file);
	  	m->r.qid = fid->qid;
	  	m->r.iounit = m->con->msize-IOHDRSZ;
	  


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.