diff options
author | Jeremy Allison <jra@samba.org> | 2002-08-21 21:07:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-08-21 21:07:27 +0000 |
commit | 00ec57063460533b3074227b9df73ba781744253 (patch) | |
tree | ec2f25337202678b8f2083fab782a01c57ab23b7 | |
parent | e56a79f03f014b4001179c4c4a392f5a8460eb32 (diff) | |
download | samba-00ec57063460533b3074227b9df73ba781744253.tar.gz samba-00ec57063460533b3074227b9df73ba781744253.tar.bz2 samba-00ec57063460533b3074227b9df73ba781744253.zip |
Fix longstanding bug in Win2k clients by clearing the shortname
buffer before returning ascii short name.
Jeremy.
(This used to be commit d01bbd42ff043d9fb0dc40dc4e207da8df0c9c14)
-rw-r--r-- | source3/smbd/trans2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 8da55ba4ec..91e76012e6 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -660,6 +660,11 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn, SIVAL(p,0,nt_extmode); p += 4; q = p; p += 4; SIVAL(p,0,0); p += 4; + /* Clear the short name buffer. This is + * IMPORTANT as not doing so will trigger + * a Win2k client bug. JRA. + */ + memset(p,'\0',26); if (!was_8_3) { pstring mangled_name; pstrcpy(mangled_name, fname); |