intercept: Don't override to the same name (i.e. spam with Vulkan)

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-11-07 17:31:40 +00:00
parent b001cbf750
commit 329f8de9aa
+6
View File
@@ -409,6 +409,12 @@ static bool lsi_override_dlopen(const char *orig_name, const char **soname)
if (!lsi_file_exists(path_lookup)) {
continue;
}
/* We hit a match but it was identical to our expectation */
if (strcmp(path_lookup, orig_name) == 0) {
return false;
}
*soname = path_lookup;
lsi_log_debug(
"intercepting vendor dlopen() \033[31;1m%s\033[0m -> \033[34;1m%s\033[0m",