diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-07-23 15:24:46 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-07-23 17:23:13 +0200 |
commit | 8ca481e8419c19b6ef9074b68cc028177a507161 (patch) | |
tree | 01b06b8fbc63894d333247396e00f3131110af9e /apt-pkg/contrib/fileutl.cc | |
parent | 8b21456acba3cbbc28f35eba684d8f21b0c290b4 (diff) |
call flush on the wrapped writebuffered FileFd
The flush call is a no-op in most FileFd implementations so this isn't
as critical as it might sound as the only non-trivial implementation is
in the buffered writer, which tends not be used to buffer another
buffer…
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index fa0930dff..fc578cd23 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1277,9 +1277,8 @@ public: writebuffer.bufferstart += written; } - writebuffer.reset(); - return true; + return wrapped->InternalFlush(); } virtual ssize_t InternalWrite(void const * const From, unsigned long long const Size) APT_OVERRIDE { |