about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-11-17T21·07+0100
committerGitHub <noreply@github.com>2018-11-17T21·07+0100
commit2f8255cba1597aa1d7afefcac0a33bec63e0ceb6 (patch)
treed5440a1a8ffd0ab7f14ba8af39207759b83a3801
parenta32ff2573ba4d0df4e3360c5a96398738da953f6 (diff)
parent40e0c9e925e266c1b0944d9810f3a7f3dd6ec544 (diff)
Merge pull request #2544 from mayflower/lsnar-allow-fifo
nix ls-nar: allow reading from FIFOs
-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 e99622faf472..d089be42fb20 100644
--- a/src/nix/ls.cc
+++ b/src/nix/ls.cc
@@ -148,7 +148,7 @@ struct CmdLsNar : Command, MixLs
 
     void run() override
     {
-        list(makeNarAccessor(make_ref<std::string>(readFile(narPath))));
+        list(makeNarAccessor(make_ref<std::string>(readFile(narPath, true))));
     }
 };