]> git.saurik.com Git - apt.git/commit
fileutl: empty file support: Avoid fstat() on -1 fd and check result
authorJulian Andres Klode <jak@debian.org>
Fri, 12 Aug 2016 11:55:09 +0000 (13:55 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 5 Oct 2016 19:53:37 +0000 (21:53 +0200)
commit984a637a21acbbecc7ebec3f6eada09a221f068b
tree565d4ce62eb909d44e7a398829d64c9f5f40d96e
parente5f2e875e53cf03112dda0ac72ab252ca9b2b377
fileutl: empty file support: Avoid fstat() on -1 fd and check result

When checking if a file is empty, we forget to check that
fstat() actually worked.

(cherry picked from commit 15fe8e62d37bc87114c59d385bed7ceefb72886b)
apt-pkg/contrib/fileutl.cc