aboutsummaryrefslogtreecommitdiff
path: root/src/nix/ls.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-06 11:33:55 +0200
committerGitHub <noreply@github.com>2020-05-06 11:33:55 +0200
commit74a1bfdcab03d3c6ecb9353f4bae0a0c550ddb98 (patch)
treeaefac7fd096274bd795cec43f222e93e4a26376e /src/nix/ls.cc
parent272c4ba36dab76b01eef19bd30e56310d033b4dd (diff)
parent2e5be2a7495ac0b204454c74664e590a38d039d3 (diff)
Merge pull request #3546 from guibou/nix_readfile_on_0_sized_files
builtins.readFile: do not truncate content
Diffstat (limited to 'src/nix/ls.cc')
-rw-r--r--src/nix/ls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/ls.cc b/src/nix/ls.cc
index 6ae4df27e..b9716a6a1 100644
--- a/src/nix/ls.cc
+++ b/src/nix/ls.cc
@@ -140,7 +140,7 @@ struct CmdLsNar : Command, MixLs
void run() override
{
- list(makeNarAccessor(make_ref<std::string>(readFile(narPath, true))));
+ list(makeNarAccessor(make_ref<std::string>(readFile(narPath))));
}
};