mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
vac: handle mid
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5451114
This commit is contained in:
parent
e80159c932
commit
c2b544f8cd
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue