From 5aee4157de9273ed42fe8c384014319d9b362375 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 12 Mar 2004 20:24:07 +0000 Subject: Fix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048 when mangled names are turned off. Jeremy. (This used to be commit 11487e24666c7b3dd4b37f4ef8aec8f8a5bd5a6f) --- source3/smbd/trans2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd') 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)); -- cgit