summaryrefslogtreecommitdiffstats
path: root/libdwfl/linux-kernel-modules.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2014-08-14 22:07:44 +0200
committerMark Wielaard <[email protected]>2014-08-15 20:29:20 +0200
commit9d29ed2989b6691457bbd602de740c4423ac8781 (patch)
tree206e1b96d5ee2214401ab4f21ca41d67d1b69d9e /libdwfl/linux-kernel-modules.c
parentc1e0fcb9311c1d136e20e658449367ad8b7f487d (diff)
libdwfl: Handle LZMA .ko.xz compressed kernel modules.
Linux kernel modules can not just be compressed with gz and bz2, but also with xz. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libdwfl/linux-kernel-modules.c')
-rw-r--r--libdwfl/linux-kernel-modules.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
index 1ad7d2f6..e4065d89 100644
--- a/libdwfl/linux-kernel-modules.c
+++ b/libdwfl/linux-kernel-modules.c
@@ -302,6 +302,9 @@ check_suffix (const FTSENT *f, size_t namelen)
#if USE_BZLIB
TRY (".ko.bz2");
#endif
+#if USE_LZMA
+ TRY (".ko.xz");
+#endif
return 0;