diff options
author | Jeremy Allison <jra@samba.org> | 2000-12-11 22:31:25 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-12-11 22:31:25 +0000 |
commit | bcf0a5c316ee8cf333d9d838b041e44a11cb5f1b (patch) | |
tree | f0a68fdf63ff19037cfa1e2f15272b604d58d9f8 | |
parent | 7eb7241442ea0f1e065b009c3cccd5821b89a8b6 (diff) | |
download | samba-bcf0a5c316ee8cf333d9d838b041e44a11cb5f1b.tar.gz |
Fix for short names not being returned correctly with non-mangled shares.
Jeremy.
-rw-r--r-- | source/smbd/trans2.c | 3 |
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 { |