mirror of
https://github.com/samba-team/samba.git
synced 2025-12-13 16:23:50 +03:00
Fixed wildcard match bug with '****' with smbclient. Found by Andrew (damn him! :-).
Jeremy.
This commit is contained in:
@@ -1321,8 +1321,9 @@ BOOL mask_match(char *str, char *regexp, BOOL case_sig, BOOL trans2)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Remove any *? and ** as they are meaningless */
|
/* Remove any *? and ** as they are meaningless */
|
||||||
pstring_sub(t_pattern, "*?", "*");
|
for(p = t_pattern; *p; p++)
|
||||||
pstring_sub(t_pattern, "**", "*");
|
while( *p == '*' && (p[1] == '?' || p[1] == '*'))
|
||||||
|
(void)pstrcpy( &p[1], &p[2]);
|
||||||
|
|
||||||
if (strequal(t_pattern,"*"))
|
if (strequal(t_pattern,"*"))
|
||||||
return(True);
|
return(True);
|
||||||
|
|||||||
Reference in New Issue
Block a user