summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/trans2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 28bff08843..0ef7327d2e 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -329,8 +329,7 @@ static int get_lanman2_dir_entry(int cnum,char *path_mask,int dirtype,int info_l
strcpy(fname,dname);
- if(name_map_mangle(fname,False,SNUM(cnum)) &&
- mask_match(fname, mask, case_sensitive, True))
+ if(mask_match(fname, mask, case_sensitive, True))
{
BOOL isdots = (strequal(fname,"..") || strequal(fname,"."));
if (dont_descend && !isdots)
@@ -369,6 +368,8 @@ static int get_lanman2_dir_entry(int cnum,char *path_mask,int dirtype,int info_l
}
}
+ name_map_mangle(fname,False,SNUM(cnum));
+
p = pdata;
nameptr = p;