aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-23 21:57:53 +0200
committerGitHub <noreply@github.com>2020-09-23 21:57:53 +0200
commit8d9402f411643c451cf2a0776afcb3a1af0f9a8c (patch)
treefe73a6c74465b7b1c36840f7fb267d04157b330d /src/libutil
parent8ee779da7dabeef935ec61667120aa26743e472a (diff)
parent4ce8a3ed452f06b18a40cffefc37d47c916927a8 (diff)
Merge pull request #4054 from edolstra/fix-4021
registerOutputs(): Don't call canonicalisePathMetaData() twice
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/archive.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc
index cdf3d89ae..6ad9fa238 100644
--- a/src/libutil/archive.cc
+++ b/src/libutil/archive.cc
@@ -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 << "(";