diff options
author | Mark Wielaard <mjw@redhat.com> | 2013-02-22 23:42:59 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2013-02-22 23:42:59 +0100 |
commit | f6185a75448c395795182ed1e568484056e7a2bf (patch) | |
tree | 650306441329e704499afefb9571c1370321ff94 /libdwfl/open.c | |
parent | 443304efce95d66ac089d95807a0002cf8558d13 (diff) | |
download | elfutils-f6185a75448c395795182ed1e568484056e7a2bf.tar.gz |
libdwfl: Try opening files all installed compression libraries.
rhbz #909481. When a compression library wasn't installed libdwfl would
not try the next compression library for opening a file. Retry with the
next available compression library if a previous one isn't installed. Also
disable tests that depend on a particular compression library
(run-readelf-s.sh and run-dwflsyms.sh) if that library isn't installed.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'libdwfl/open.c')
-rw-r--r-- | libdwfl/open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdwfl/open.c b/libdwfl/open.c index 7dd5b520..40aac388 100644 --- a/libdwfl/open.c +++ b/libdwfl/open.c @@ -33,15 +33,15 @@ #include <unistd.h> #if !USE_ZLIB -# define __libdw_gunzip(...) false +# define __libdw_gunzip(...) DWFL_E_BADELF #endif #if !USE_BZLIB -# define __libdw_bunzip2(...) false +# define __libdw_bunzip2(...) DWFL_E_BADELF #endif #if !USE_LZMA -# define __libdw_unlzma(...) false +# define __libdw_unlzma(...) DWFL_E_BADELF #endif /* Consumes and replaces *ELF only on success. */ |