]> 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>
Fri, 12 Aug 2016 12:11:14 +0000 (14:11 +0200)
commit15fe8e62d37bc87114c59d385bed7ceefb72886b
treeaeeb06a15a5110ca105bd7902f5e987504bdf43c
parent5404685b66b92f93da7ded5f8fe44fbabea38ba4
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.
apt-pkg/contrib/fileutl.cc