From 329f8de9aaa39aac46ef4817efae0d64d7e0829b Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Tue, 7 Nov 2017 17:31:40 +0000 Subject: [PATCH] intercept: Don't override to the same name (i.e. spam with Vulkan) Signed-off-by: Ikey Doherty --- src/intercept/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/intercept/main.c b/src/intercept/main.c index 9e25ca5..5c8ad96 100644 --- a/src/intercept/main.c +++ b/src/intercept/main.c @@ -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",