From 01634eaf129e90877c054664703d100be9f41ce0 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 8 Feb 2001 20:47:09 +0000 Subject: merge from SAMBA_2_2 (This used to be commit 9347121ce6888afeae3cdf256b5f0c5b9c58b0bc) --- source3/smbd/trans2.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source3/smbd/trans2.c') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index a45c2183ce..2210b38d74 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -375,8 +375,14 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn, pstrcpy(fname,dname); - if(!(got_match = *got_exact_match = exact_match(fname, mask, case_sensitive))) - got_match = mask_match(fname, mask, case_sensitive); + if(!(got_match = *got_exact_match = exact_match(fname, mask, case_sensitive))) { + if (!strcmp(mask, "*.*")) { + got_match = True; + } + else { + got_match = mask_match(fname, mask, case_sensitive); + } + } if(!got_match && !is_8_3(fname, False)) { -- cgit