mirror of
https://github.com/clearlinux/linux-steam-integration.git
synced 2026-09-06 22:01:27 +00:00
redirect: Reduce spam, don't redirect to non-existent files
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
+1
-1
@@ -272,11 +272,11 @@ _nica_public_ int open(const char *p, int flags, ...)
|
||||
continue;
|
||||
}
|
||||
if (strcmp(redirect->path_source, path) != 0) {
|
||||
fprintf(stderr, "No match: %s vs %s\n", redirect->path_source, path);
|
||||
continue;
|
||||
}
|
||||
if (!lsi_file_exists(redirect->path_target)) {
|
||||
lsi_log_warn("Replacement path does not exist: %s", redirect->path_target);
|
||||
return lsi_table.open(p, flags, mode);
|
||||
}
|
||||
lsi_log_info("Replaced '%s' with '%s'", path, redirect->path_target);
|
||||
return lsi_table.open(redirect->path_target, flags, mode);
|
||||
|
||||
Reference in New Issue
Block a user