1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Changed name of case_sensitive in mask_match to avaid gcc "shadow global"

warning.
Jeremy.
(This used to be commit 36629d2a93)
This commit is contained in:
Jeremy Allison 2000-05-17 20:54:56 +00:00
parent 819c154498
commit 7b49e6ac6c

View File

@ -1978,16 +1978,14 @@ BOOL ms_has_wild(char *s)
/*******************************************************************
a wrapper that handles case sensitivity and the special handling
of the ".." name
case_sensitive is a boolean
*******************************************************************/
BOOL mask_match(char *string, char *pattern, BOOL case_sensitive)
BOOL mask_match(char *string, char *pattern, BOOL is_case_sensitive)
{
fstring p2, s2;
if (strcmp(string,"..") == 0) string = ".";
if (strcmp(pattern,".") == 0) return False;
if (case_sensitive) {
if (is_case_sensitive) {
return ms_fnmatch(pattern, string) == 0;
}