fixes samba3 to use gawk instead of mawk
[openwrt/svn-archive/archive.git] / net / samba3 / patches / 150-fix_ls.patch
1 Index: samba-3.0.24/source/lib/ms_fnmatch.c
2 ===================================================================
3 --- samba-3.0.24.orig/source/lib/ms_fnmatch.c 2008-08-11 11:08:03.000000000 +0200
4 +++ samba-3.0.24/source/lib/ms_fnmatch.c 2008-08-11 11:11:33.000000000 +0200
5 @@ -153,6 +153,10 @@
6 int ret, count, i;
7 struct max_n *max_n = NULL;
8
9 + if (strcmp(pattern, "*") == 0) {
10 + return 0;
11 + }
12 +
13 if (strcmp(string, "..") == 0) {
14 string = ".";
15 }