packages/net/samba3/patches/150-fix_ls.patch
jow 75fc5f5cf3 [packages] samba3: add missing patches from previous update commit, refresh series
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29351 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-28 19:16:08 +00:00

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 = ".";
}