summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-02-04 18:00:42 +0100
committerJulian Andres Klode <jak@debian.org>2016-02-04 18:00:42 +0100
commit1996a6a785a54efaeddb4ecf5e88fa6070330182 (patch)
treefc3554c4da66e119f0623b0022c57d0509e2d40b /apt-pkg/contrib
parent610e13842a3718128c03454c5dfcbde49d323281 (diff)
Correctly report write errors when flushing buffered writer
We cannot just return false without setting an error, as InternalWrite does not set one itself.
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/fileutl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 8c50874dc..fcdaee644 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -1250,7 +1250,7 @@ public:
if (written < 0 && errno == EINTR)
continue;
if (written < 0)
- return false;
+ return wrapped->InternalWriteError();
writebuffer.bufferstart += written;
}