diff options
author | Julian Andres Klode <jak@debian.org> | 2016-02-04 18:00:42 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-02-04 18:00:42 +0100 |
commit | 1996a6a785a54efaeddb4ecf5e88fa6070330182 (patch) | |
tree | fc3554c4da66e119f0623b0022c57d0509e2d40b /apt-pkg | |
parent | 610e13842a3718128c03454c5dfcbde49d323281 (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')
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 2 |
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; } |