diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-03-02 14:51:14 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-03-02 14:51:14 +0100 |
commit | 989b823ac5265a7738396566fa0792f3cb55160e (patch) | |
tree | 04187c462c969e86ef7411c73f4b6cd3a7b8dafe | |
parent | c13cbd20ab97e46eeb39939494d137a2f831b5e1 (diff) |
nix store cat: Use writeFull()
Fixes #7939.
-rw-r--r-- | src/nix/cat.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/cat.cc b/src/nix/cat.cc index 6420a0f79..60aa66ce0 100644 --- a/src/nix/cat.cc +++ b/src/nix/cat.cc @@ -17,7 +17,7 @@ struct MixCat : virtual Args if (st.type != FSAccessor::Type::tRegular) throw Error("path '%1%' is not a regular file", path); - std::cout << accessor->readFile(path); + writeFull(STDOUT_FILENO, accessor->readFile(path)); } }; |