mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
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 commit is contained in:
parent
f42e164e90
commit
381cea68b8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user