summaryrefslogtreecommitdiff
path: root/source4/lib/ms_fnmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ms_fnmatch.c')
-rw-r--r--source4/lib/ms_fnmatch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/ms_fnmatch.c b/source4/lib/ms_fnmatch.c
index 1c4b3d1806..5a9edc2c87 100644
--- a/source4/lib/ms_fnmatch.c
+++ b/source4/lib/ms_fnmatch.c
@@ -94,7 +94,8 @@ static int ms_fnmatch_lanman_core(const smb_ucs2_t *pattern,
break;
default:
- if (c != *n) goto nomatch;
+ if (c != *n &&
+ toupper_w(c) != toupper_w(*n)) goto nomatch;
n++;
}
}
@@ -198,7 +199,8 @@ static int ms_fnmatch_w(const smb_ucs2_t *pattern, const smb_ucs2_t *string,
break;
default:
- if (c != *n) return -1;
+ if (c != *n &&
+ toupper_w(c) != toupper_w(*n)) return -1;
n++;
}
}