fix the alias support
authorJohn Crispin <blogic@openwrt.org>
Tue, 20 Oct 2015 18:12:24 +0000 (20:12 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 20 Oct 2015 18:12:41 +0000 (20:12 +0200)
the path compare return code was not honoured properly

Signed-off-by: John Crispin <blogic@openwrt.org>
file.c

diff --git a/file.c b/file.c
index 6b5020f..009acbd 100644 (file)
--- a/file.c
+++ b/file.c
@@ -828,7 +828,7 @@ static char *uh_handle_alias(char *old_url)
                int new_len;
                int path_len = 0;
 
                int new_len;
                int path_len = 0;
 
-               if (uh_path_match(alias->alias, old_url))
+               if (!uh_path_match(alias->alias, old_url))
                        continue;
 
                if (alias->path)
                        continue;
 
                if (alias->path)