diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/venti/copy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/venti/copy.c b/src/cmd/venti/copy.c index 3c3996c9..7e03b56c 100644 --- a/src/cmd/venti/copy.c +++ b/src/cmd/venti/copy.c @@ -55,7 +55,8 @@ walk(uchar score[VtScoreSize], uint type, int base) } walk(root.score, VtDirType, 0); walk(root.prev, VtRootType, 0); - vtrootpack(&root, buf); /* walk might have changed score */ + if(rewrite) + vtrootpack(&root, buf); /* walk might have changed score */ break; case VtDirType: @@ -67,7 +68,8 @@ walk(uchar score[VtScoreSize], uint type, int base) if(!(e.flags & VtEntryActive)) continue; walk(e.score, e.type, e.type&VtTypeBaseMask); - vtentrypack(&e, buf, i); + if(rewrite) + vtentrypack(&e, buf, i); } break; |