mirror of
https://github.com/dynup/kpatch
synced 2025-01-02 18:52:02 +00:00
create-diff-object: only check if kernel object starts with "vmlinux"
On Debian/Ubuntu, the `vmlinux` from `-dbg` package has a version number appended to it. For example: `/usr/lib/debug/boot/vmlinux-3.13.0-117-generic`. Make it work nonetheless.
This commit is contained in:
parent
8c558d367c
commit
998c794c7a
@ -286,7 +286,7 @@ struct lookup_table *lookup_open(char *obj_path, char *symvers_path,
|
||||
ERROR("malloc table");
|
||||
memset(table, 0, sizeof(*table));
|
||||
|
||||
table->vmlinux = !strcmp(basename(obj_path), "vmlinux");
|
||||
table->vmlinux = !strncmp(basename(obj_path), "vmlinux", 7);
|
||||
|
||||
obj_read(table, obj_path);
|
||||
symvers_read(table, symvers_path);
|
||||
|
Loading…
Reference in New Issue
Block a user