From e3a4640c04522e952180f77e769a042d0446f247 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Mon, 23 Oct 2017 03:08:02 +0100 Subject: [PATCH] redirect: Reduce spam, don't redirect to non-existent files Signed-off-by: Ikey Doherty --- src/redirect/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redirect/main.c b/src/redirect/main.c index a565efd..d55ee43 100644 --- a/src/redirect/main.c +++ b/src/redirect/main.c @@ -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);