75fc5f5cf3
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29351 3c298f89-4303-0410-b956-a3cf2f4a3e73
14 lines
285 B
Diff
14 lines
285 B
Diff
--- a/source/lib/ms_fnmatch.c
|
|
+++ b/source/lib/ms_fnmatch.c
|
|
@@ -153,6 +153,10 @@ int ms_fnmatch(const char *pattern, cons
|
|
int ret, count, i;
|
|
struct max_n *max_n = NULL;
|
|
|
|
+ if (strcmp(pattern, "*") == 0) {
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
if (strcmp(string, "..") == 0) {
|
|
string = ".";
|
|
}
|