diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-03-25 12:15:00 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-04-03 14:44:47 +0200 |
commit | 46c4043d741cb2c1d54e7f5bfaa234f1b7580f6c (patch) | |
tree | 9e64adc9df160769303f7be7ebd9527ca37418f8 | |
parent | cabfb8808d77323fb444c7f6661683df97b40a91 (diff) | |
download | apt-46c4043d741cb2c1d54e7f5bfaa234f1b7580f6c.tar.gz |
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.
-rw-r--r-- | apt-pkg/contrib/gpgv.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |