diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-23 19:17:28 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-09-23 19:17:28 +0200 |
commit | 236d9ee7f72ca4238f5f44c244fd2b885691c6ad (patch) | |
tree | f5dc04851c9788ac7bb8802787a3eae7857eadf5 /src/libutil | |
parent | 688bd4fb500c70cda4ffe6864bbf59dbc4da49a2 (diff) |
lstat() cleanup
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/archive.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc index 14399dea3..4f59c8ed5 100644 --- a/src/libutil/archive.cc +++ b/src/libutil/archive.cc @@ -66,9 +66,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 << "("; |