vac: handle mid

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5451114
This commit is contained in:
David du Colombier 2011-12-07 14:07:25 -05:00 committed by Russ Cox
parent e80159c932
commit c2b544f8cd

View file

@ -1592,6 +1592,11 @@ vacfilesetdir(VacFile *f, VacDir *dir)
f->dir.gid = vtstrdup(dir->gid);
}
if(strcmp(f->dir.mid, dir->mid) != 0){
vtfree(f->dir.mid);
f->dir.mid = vtstrdup(dir->mid);
}
f->dir.mtime = dir->mtime;
f->dir.atime = dir->atime;