From: David Kalnischkies Date: Fri, 25 Mar 2016 11:15:00 +0000 (+0100) Subject: use buffered writing for InRelease splitting X-Git-Tag: 1.2.10~4 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/46c4043d741cb2c1d54e7f5bfaa234f1b7580f6c?hp=cabfb8808d77323fb444c7f6661683df97b40a91 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. --- 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());