diff options
author | David du Colombier <0intro@gmail.com> | 2011-12-07 14:07:25 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-12-07 14:07:25 -0500 |
commit | c2b544f8cdf7513f47c139d1a99743a471acd827 (patch) | |
tree | 7c314763f872dd79f11a274a2470c2805cc46226 /src/cmd/vac | |
parent | e80159c932a9f8728a7e8adf6a79282dec98a61d (diff) | |
download | plan9port-c2b544f8cdf7513f47c139d1a99743a471acd827.tar.gz plan9port-c2b544f8cdf7513f47c139d1a99743a471acd827.tar.bz2 plan9port-c2b544f8cdf7513f47c139d1a99743a471acd827.zip |
vac: handle mid
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5451114
Diffstat (limited to 'src/cmd/vac')
-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; |