Revision | 43dede07225c49b979aaf49d01840863e1f1cb86 (tree) |
---|---|
Zeit | 2016-10-14 18:09:17 |
Autor | Yohei Endo <yoheie@gmai...> |
Commiter | Yohei Endo |
Fix path check
@@ -1003,7 +1003,7 @@ include_path_p(path, name) | ||
1003 | 1003 | char *n = name; |
1004 | 1004 | while (*path) |
1005 | 1005 | if (*path++ != *n++) |
1006 | - return (path[-1] == '/' && *n == '\0'); | |
1006 | + return (path[-1] == '/' && n[-1] == '\0'); | |
1007 | 1007 | return (*n == '/' || (n != name && path[-1] == '/' && n[-1] == '/')); |
1008 | 1008 | } |
1009 | 1009 |