From 46c4043d741cb2c1d54e7f5bfaa234f1b7580f6c Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 25 Mar 2016 12:15:00 +0100 Subject: use buffered writing for InRelease splitting Hardly noticeable, but given that we have the option to easily enable it, lets enable it as every newline in the message is written individually by the code. --- apt-pkg/contrib/gpgv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-pkg/contrib/gpgv.cc b/apt-pkg/contrib/gpgv.cc index ef84da0d8..0929ae0e2 100644 --- a/apt-pkg/contrib/gpgv.cc +++ b/apt-pkg/contrib/gpgv.cc @@ -341,7 +341,7 @@ bool OpenMaybeClearSignedFile(std::string const &ClearSignedFileName, FileFd &Me unlink(message); free(message); - MessageFile.OpenDescriptor(messageFd, FileFd::ReadWrite, true); + MessageFile.OpenDescriptor(messageFd, FileFd::ReadWrite | FileFd::BufferedWrite, true); if (MessageFile.Failed() == true) return _error->Error("Couldn't open temporary file to work with %s", ClearSignedFileName.c_str()); -- cgit v1.2.3