diff options
-rw-r--r-- | src/cmd/vac/file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c index 8f2fd84f..d9650289 100644 --- a/src/cmd/vac/file.c +++ b/src/cmd/vac/file.c @@ -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; |