summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-07-23 15:24:46 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-31 14:16:10 +0200
commit689857bec8c01a222d2ce0369a13994920c9155b (patch)
tree2f4295c35a02f6e5a88208293a26b6ed9a76d3c7 /apt-pkg/contrib/fileutl.cc
parent1d33342f8777ee80a365e531a461d284c9d9b5cb (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… (cherry picked from commit 8ca481e8419c19b6ef9074b68cc028177a507161)
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r--apt-pkg/contrib/fileutl.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index ef88f6fdd..b041ef131 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -1258,9 +1258,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
{