From 60337746ea0d0f324ec39a16e3b8bee836b8ef51 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 11 Dec 2000 22:31:25 +0000 Subject: Fix for short names not being returned correctly with non-mangled shares. Jeremy. (This used to be commit bcf0a5c316ee8cf333d9d838b041e44a11cb5f1b) --- source3/smbd/trans2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 5b6759aec0..a08127694a 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -535,7 +535,8 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn, SIVAL(p,0,0); p += 4; if (!was_8_3) { fstrcpy(p+2,fname); - name_map_mangle(p+2,True,True,SNUM(conn)); + if(!name_map_mangle(p+2,True,True,SNUM(conn))) + (p+2)[12] = 0; strupper(p+2); SSVAL(p, 0, strlen(p+2)); } else { -- cgit