diff --git a/src/nix/cat.cc b/src/nix/cat.cc index c1d73f2a2..dcf47f1fa 100644 --- a/src/nix/cat.cc +++ b/src/nix/cat.cc @@ -98,7 +98,7 @@ struct CmdCatNar : StoreCommand, MixCat if (path == neededPath) { logger->stop(); crfSink.skipContents = false; - crfSink.fd = STDOUT_FILENO; + crfSink.fd = getStandardOutput(); found = true; } else { crfSink.skipContents = true;