summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-06-06 04:21:43 +0000
committerAndrew Tridgell <tridge@samba.org>2003-06-06 04:21:43 +0000
commit7d4b53c2aaef07f03b5d4a066ea8b2abb10926f9 (patch)
tree52517e422ae0b2c56d1f631e7a7dd140d5b522dd
parent398ce536e9181dc68012ffe7a1fc4cfaa8296b4f (diff)
downloadsamba-7d4b53c2aaef07f03b5d4a066ea8b2abb10926f9.tar.gz
samba-7d4b53c2aaef07f03b5d4a066ea8b2abb10926f9.tar.bz2
samba-7d4b53c2aaef07f03b5d4a066ea8b2abb10926f9.zip
removed the 'valgrind fix' that (although it may well remove a
valgrind warning) causes us to return a completely wrong 8.3 filename in directory searches! come on guys, this close to a release you need to TEST CODE BEFORE COMMITTING (This used to be commit 381cea68b81aeb42b088677d2a8bfd410a7da329)
-rw-r--r--source3/smbd/trans2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 4498f0727b..70e41010a1 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -683,14 +683,6 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
mangle_map(mangled_name,True,True,SNUM(conn));
mangled_name[12] = 0;
len = srvstr_push(outbuf, p+2, mangled_name, 24, STR_UPPER);
-#ifdef DEVELOPER
- /* valgrind fixer... */
- {
- size_t sl = strlen(p+2);
- if (24-sl)
- memset(&p[sl+2], '\0', 24-sl);
- }
-#endif
SSVAL(p, 0, len);
} else {
SSVAL(p,0,0);