1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

Merge pull request #4054 from edolstra/fix-4021

registerOutputs(): Don't call canonicalisePathMetaData() twice
This commit is contained in:
Eelco Dolstra 2020-09-23 21:57:53 +02:00 committed by GitHub
commit 8d9402f411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 75 additions and 124 deletions

View file

@ -68,9 +68,7 @@ static void dump(const Path & path, Sink & sink, PathFilter & filter)
{
checkInterrupt();
struct stat st;
if (lstat(path.c_str(), &st))
throw SysError("getting attributes of path '%1%'", path);
auto st = lstat(path);
sink << "(";