summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-12-11 22:31:25 +0000
committerJeremy Allison <jra@samba.org>2000-12-11 22:31:25 +0000
commit60337746ea0d0f324ec39a16e3b8bee836b8ef51 (patch)
treedbca6de847f6307ff55cbc0c48439ee577554e2f
parentccb5cbf175c43455a956d42b2815a4529ab9383f (diff)
downloadsamba-60337746ea0d0f324ec39a16e3b8bee836b8ef51.tar.gz
samba-60337746ea0d0f324ec39a16e3b8bee836b8ef51.tar.bz2
samba-60337746ea0d0f324ec39a16e3b8bee836b8ef51.zip
Fix for short names not being returned correctly with non-mangled shares.
Jeremy. (This used to be commit bcf0a5c316ee8cf333d9d838b041e44a11cb5f1b)
-rw-r--r--source3/smbd/trans2.c3
1 files changed, 2 insertions, 1 deletions
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 {