1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3
Jeremy Allison f59490dc2d 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
2020-07-01 18:59:53 +00:00
..
auth s3:auth: fill in info3 domain name in passwd_to_SamInfo3() 2020-05-30 01:17:36 +00:00
build
client smbclient: Use NT_STATUS_NOTIFY_ENUM_DIR instead of STATUS_NOTIFY_ENUM_DIR 2020-06-22 12:07:38 +00:00
exports
groupdb smbdotconf: mark "set primary group script" with substitution="1" 2019-11-27 10:25:36 +00:00
include lib: Remove an unused macro 2020-06-15 17:59:39 +00:00
intl lib: Remove "tdb based replacement for gettext" 2019-05-22 05:59:13 +00:00
lib s3:lib: Make sure that have_rsrc is initialized 2020-06-16 10:30:16 +00:00
libads ldap.c: clarify the need for ldap_get_values_len() in a code comment 2020-06-23 00:54:26 +00:00
libgpo/gpext Spelling fixes s/emtpy/empty/ 2019-09-01 22:21:26 +00:00
libnet Add net-ads-join dnshostname=fqdn option 2020-05-29 13:33:28 +00:00
librpc s3:smbXsrv.idl: add lock_sequence_array to smbXsrv_open_global0 2020-06-27 04:20:39 +00:00
libsmb s3: libsmb: Fix SMB2 client rename bug to a Windows server. 2020-07-01 18:59:53 +00:00
locale Spelling fixes s/Mirgate/Migrate/ 2019-09-01 22:21:26 +00:00
locking share_mode_lock.c: initialize out param 2020-06-30 09:42:33 +00:00
modules vfs_shadow_copy2: Fix a log message 2020-06-21 16:20:26 +00:00
nmbd lib: Move a #define ip_equal_v4() to nmbd/nmbd.h 2020-06-15 17:59:39 +00:00
param tls: Use NORMAL:-VERS-SSL3.0 as the default configuration 2020-07-01 14:56:33 +00:00
passdb Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
printing smbd: add dirfsp arg to SMB_VFS_CREATE_FILE() 2020-05-21 05:23:31 +00:00
profile s3:profile: Allow profile subsystem to use SHA1 in FIPS mode 2019-07-09 13:31:46 +00:00
registry registry3: Fix a typo 2020-06-10 22:20:46 +00:00
rpc_client s3:cli_pipe: remove unused cli_rpc_pipe_open_generic_auth() 2020-05-28 06:43:38 +00:00
rpc_server s3:rpc_server: Check return code of set_blocking() 2020-06-16 09:08:34 +00:00
rpcclient s3:rpcclient: avoid using auth related CLI_FULL_CONNECTION_* flags 2020-05-28 06:43:40 +00:00
script s3: selftest: Add samba3.blackbox.aio-outstanding test. 2020-06-24 18:53:32 +00:00
selftest s3: selftest: Add samba3.blackbox.aio-outstanding test. 2020-06-24 18:53:32 +00:00
services
smbd s3:smbd: fix the handling of the durable_v2_timeout 2020-06-27 05:42:05 +00:00
torture s3/torture: test rbtree TDB_INSERT and TDB_MODIFY flags 2020-06-10 20:28:45 +00:00
utils net: Align integer types 2020-06-15 17:59:38 +00:00
web
winbindd winbindd: Fix a use-after-free when winbind clients exit 2020-05-19 10:45:06 +00:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript build: Put the note from the bottom of the old BUILD_SYSTEMS.txt somewhere useful 2020-06-12 22:11:43 +00:00
wscript_build smbd: set fsp_name of conn->cwd_fsp 2020-05-21 05:23:30 +00:00
wscript_configure_system_ncurses