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;