diff options
author | Jeremy Allison <jra@samba.org> | 2020-06-30 14:00:41 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-07-06 09:50:31 +0000 |
commit | 79f5d88663ba8e106f3c04e420478afc499afbee (patch) | |
tree | d538ce02dbd1158f1dfb5922e5f55f81f5e09ffb /lib | |
parent | c160cfa9922c6687ec943a3e0cdb01371c6769ed (diff) | |
download | samba-79f5d88663ba8e106f3c04e420478afc499afbee.tar.gz |
s3: libsmb: Fix SMB2 client rename bug to a Windows server.
Fix bug where renaming to a target name of one
UCS2 character (name length 2 bytes) fails to
a Windows 10 SMB2 server.
The Windows 10 SMB2 server has a minimum length
for a SMB2_FILE_RENAME_INFORMATION buffer of
24 bytes. It returns NT_STATUS_INFO_LENGTH_MISMATCH
if the length is less. This isn't an alignment
issue as Windows client happily 2-byte align
for larget target name sizes. Also the Windows 10
SMB1 server doesn't have this restriction.
If the name length is too short, pad out with
zeros to 24 bytes.
Hard to add a test for this as we don't want to
add this silly restriction to the Samba server
as it would break all non-Windows clients.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14403
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 1 18:59:53 UTC 2020 on sn-devel-184
(cherry picked from commit f59490dc2d07107d32d6e888f2814011ab2845b7)
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions