]> git.saurik.com Git - apt.git/commit
OpenDescriptor should autoclose fd always on error
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 25 May 2013 18:33:15 +0000 (20:33 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 9 Jun 2013 13:12:32 +0000 (15:12 +0200)
commitf97bb5237489134cb971ce38b93c5d6220341ea8
treeeabfd141e20fd499bbad1c0b0385eca41cf24229
parentbf35c19b817cc1474b3deabce0b0953c248bad42
OpenDescriptor should autoclose fd always on error

OpenInternDescriptor failures would cause additional errors to be
generated by double-closing an fd. Other errors (although these
 are generated if the method is used incorrectly, so unlikely)
didn't close the fd aswell.

Closes: 704608
apt-pkg/contrib/fileutl.cc
debian/changelog