nix store cat: Use writeFull()

Fixes #7939.
This commit is contained in:
Eelco Dolstra 2023-03-02 14:51:14 +01:00
parent c13cbd20ab
commit 989b823ac5

View file

@ -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));
}
};