[sysprof] binfile: fix path check



commit 0b4defe135928a5503fffdd82d3b694255e86003
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 24 12:54:36 2020 -0800

    binfile: fix path check

 src/libsysprof/binfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof/binfile.c b/src/libsysprof/binfile.c
index 3d55b60..36e7707 100644
--- a/src/libsysprof/binfile.c
+++ b/src/libsysprof/binfile.c
@@ -358,7 +358,7 @@ bin_file_new (const char          *filename,
     ElfParser *elf = NULL;
     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");
 
     bf = g_new0 (bin_file_t, 1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]