commit | 237188e4d764598300a577e08fd872339812fb2c | [log] [tgz] |
---|---|---|
author | Petr Machata <pmachata@redhat.com> | Wed Sep 10 22:25:35 2014 +0200 |
committer | Petr Machata <pmachata@redhat.com> | Thu Sep 11 19:45:11 2014 +0200 |
tree | f3b76afe694593cb4eb76fd8235554cfa24fdeef | |
parent | 0375056af003d7676fb852e09782a985f3a52b1a [diff] |
elf_begin sets elf_errno for cases that the file is completely unreadable - The problem this is trying to solve can be seen for example thus: $ eu-readelf -a / eu-readelf: failed reading '/': (null) With the fix we see a proper error number and get a reasonable error message: $ eu-readelf -a / eu-readelf: failed reading '/': invalid file descriptor Signed-off-by: Petr Machata <pmachata@redhat.com>