mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
lstat() cleanup
This commit is contained in:
parent
688bd4fb50
commit
236d9ee7f7
8 changed files with 15 additions and 46 deletions
|
@ -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 << "(";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue