summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-20 20:12:24 +0200
committerJohn Crispin <blogic@openwrt.org>2015-10-20 20:12:41 +0200
commit618315bc0729c3064e06af2900a86211354f81c9 (patch)
tree01358441199ef458044b3dff6beb8c7e56261a83
parent3614ae6eb7b6101fa5d0f14ff0d3a6eb4970c3da (diff)
fix the alias support
the path compare return code was not honoured properly Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 6b5020f..009acbd 100644
--- 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;
- if (uh_path_match(alias->alias, old_url))
+ if (!uh_path_match(alias->alias, old_url))
continue;
if (alias->path)