]> git.saurik.com Git - apt.git/commit
if the FileFd failed already following calls should fail, too
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 29 Jul 2016 19:39:20 +0000 (21:39 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 5 Oct 2016 10:02:19 +0000 (12:02 +0200)
commit1b63558a39ee1eed7eb024cd0e164d73beb165b1
treeb902625038ce6ff4d1ae999a8f9017cd4daf105f
parentdf47efeb5764bba8ac4789727f9ffe970e5cd756
if the FileFd failed already following calls should fail, too

There is no point in trying to perform Write/Read on a FileFd which
already failed as they aren't going to work as expected, so we should
make sure that they fail early on and hard.

(cherry picked from commit 02c38073af51802c02bb104d4450e0e112d641ad)
apt-pkg/contrib/fileutl.cc