summaryrefslogtreecommitdiffstats
path: root/source/smbd/trans2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-12-11 22:32:39 +0000
committerJeremy Allison <jra@samba.org>2000-12-11 22:32:39 +0000
commit498fc43fdd13944de8cecf30f8ec4e493cb4234c (patch)
tree93a50e9903af3a0cfde9743ec609ddddab993a32 /source/smbd/trans2.c
parent21c662dcda6f83fc0221bc015248dfb55409d73b (diff)
downloadsamba-498fc43fdd13944de8cecf30f8ec4e493cb4234c.tar.gz
samba-498fc43fdd13944de8cecf30f8ec4e493cb4234c.tar.xz
samba-498fc43fdd13944de8cecf30f8ec4e493cb4234c.zip
Fix for short names not being returned correctly with non-mangled shares.
Jeremy
Diffstat (limited to 'source/smbd/trans2.c')
-rw-r--r--source/smbd/trans2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 5b6759aec0c..a08127694ab 100644
--- a/source/smbd/trans2.c
+++ b/source/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 {