1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 10:31:15 +02:00

Apply suggestions from code review

Co-Authored-By: Cole Helbling <cole.e.helbling@outlook.com>
This commit is contained in:
John Ericson 2020-03-19 23:37:52 -04:00 committed by GitHub
parent f1cf3ab870
commit d5b3328dd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -364,12 +364,12 @@ static DrvHashModulo & pathDerivationModulo(Store & store, const StorePath & drv
/* See the header for interface details. These are the implementation details.
For fixed ouput derivations, each hash in the map is not the
For fixed-output derivations, each hash in the map is not the
corresponding output's content hash, but a hash of that hash along
with other constant data. The key point is that the value is a pure
function of the output's contents, and there are no preimage attacks
spoofing an either an output's contents for a derivation, or
derivation for an output's contents.
either spoofing an output's contents for a derivation, or
spoofing a derivation for an output's contents.
For regular derivations, it looks up each subderivation from its hash
and recurs. If the subderivation is also regular, it simply