commit - 53e2a4c62e0662d3b72bd0f8807f7b2459684ae1
commit + 3e1960ce9ea541b4bb70509c7b1915e88bfe69ed
blob - 93add14d6c9d5c5570925e84843cc39fa151cc91
blob + ff977235926148cb102d2206a89e5b7d7b24164a
--- src/cmd/vac/vac.c
+++ src/cmd/vac/vac.c
{
char score2[VtScoreSize];
- sha1(buf, n, score, nil);
+ sha1(buf, n, score2, nil);
if(memcmp(score, score2, VtScoreSize) == 0)
return 0;
return -1;
warn("file truncated due to read error: %s: %r", lname);
if(n <= 0)
break;
- if(vf != nil && vacfileblockscore(vf, block, score) && sha1check(score, buf, n)>=0) {
+ if(vf != nil && vacfileblockscore(vf, block, score)>=0 && sha1check(score, buf, n)>=0) {
stats.sdata++;
sinkwritescore(sink, score, n);
} else