From: Julian Andres Klode Date: Thu, 4 Feb 2016 16:56:27 +0000 (+0100) Subject: rred: If there were I/O errors, fail X-Git-Tag: 1.2.2~4 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/610e13842a3718128c03454c5dfcbde49d323281 rred: If there were I/O errors, fail We basically ignored errors from writing and flushing, let's not do that. --- diff --git a/methods/rred.cc b/methods/rred.cc index e568c75b2..79ab8cb52 100644 --- a/methods/rred.cc +++ b/methods/rred.cc @@ -660,6 +660,11 @@ class RredMethod : public aptMethod { out.Close(); inp.Close(); + if (_error->PendingError() == true) { + std::cerr << "FAILED to read or write files" << std::endl; + return false; + } + if (Debug == true) { std::clog << "rred: finished file patching of " << Path << "." << std::endl; }