diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-11 19:09:01 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-11 19:09:01 -0400 |
commit | 5e2ffd0b8a857da3239015d28f3a8b803566aecc (patch) | |
tree | 8e440493f86c483ae2e8c656b8d3cd7443176a3b /src/libstore | |
parent | 8cf672091eb93fea5496aca2655436413f4d3c66 (diff) |
Fix "non-zero padding" error
Probably it's not a good idea to pass a temporary object to
StringSource.
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 93dfd21cc..e94c6b793 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1332,7 +1332,8 @@ void DerivationGoal::buildDone() StringSink sink; dumpPath(path, sink); deletePath(path); - StringSource source(rewriteHashes(sink.s, rewritesFromTmp)); + sink.s = rewriteHashes(sink.s, rewritesFromTmp); + StringSource source(sink.s); restorePath(path, source); } |