diff options
author | Petr Machata <pmachata@redhat.com> | 2014-09-10 22:25:35 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2014-09-11 19:45:11 +0200 |
commit | 237188e4d764598300a577e08fd872339812fb2c (patch) | |
tree | f3b76afe694593cb4eb76fd8235554cfa24fdeef /libdw/dwarf_getlocation.c | |
parent | 0375056af003d7676fb852e09782a985f3a52b1a (diff) | |
download | elfutils-237188e4d764598300a577e08fd872339812fb2c.tar.gz |
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>
Diffstat (limited to 'libdw/dwarf_getlocation.c')
0 files changed, 0 insertions, 0 deletions