mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +00:00
binfile: fix path check
This commit is contained in:
@ -358,7 +358,7 @@ bin_file_new (const char *filename,
|
|||||||
ElfParser *elf = NULL;
|
ElfParser *elf = NULL;
|
||||||
bin_file_t *bf;
|
bin_file_t *bf;
|
||||||
|
|
||||||
if (g_str_has_prefix (filename, "/var/run/host"))
|
if (g_str_has_prefix (filename, "/var/run/host/"))
|
||||||
real_filename = filename + strlen ("/var/run/host");
|
real_filename = filename + strlen ("/var/run/host");
|
||||||
|
|
||||||
bf = g_new0 (bin_file_t, 1);
|
bf = g_new0 (bin_file_t, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user