summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 19269cbc6c..2f164dafa2 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -684,7 +684,7 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
* a Win2k client bug. JRA.
*/
memset(p,'\0',26);
- if (!was_8_3) {
+ if (!was_8_3 && lp_manglednames(SNUM(conn))) {
pstring mangled_name;
pstrcpy(mangled_name, fname);
mangle_map(mangled_name,True,True,SNUM(conn));
@@ -806,7 +806,7 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
* a Win2k client bug. JRA.
*/
memset(p,'\0',26);
- if (!was_8_3) {
+ if (!was_8_3 && lp_manglednames(SNUM(conn))) {
pstring mangled_name;
pstrcpy(mangled_name, fname);
mangle_map(mangled_name,True,True,SNUM(conn));