mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
CVE-2021-44141: s3: smbd: Inside rename_internals_fsp(), we must use vfs_stat() for existence, not SMB_VFS_STAT().
We need to take SMB1+POSIX into account here and do an LSTAT if it's a POSIX name. Remove knownfail.d/posix_sylink_rename BUG: https://bugzilla.samba.org/show_bug.cgi?id=14911 Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jan 31 16:26:26 UTC 2022 on sn-devel-184
This commit is contained in:
parent
a44435c6e7
commit
e4e5539e40
@ -1 +0,0 @@
|
||||
^samba3.blackbox.test_symlink_rename.SMB1.posix.symlink_rename_SMB1_posix\(fileserver_smb1_done\)
|
@ -7305,7 +7305,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
|
||||
goto out;
|
||||
}
|
||||
|
||||
dst_exists = SMB_VFS_STAT(conn, smb_fname_dst) == 0;
|
||||
dst_exists = vfs_stat(conn, smb_fname_dst) == 0;
|
||||
|
||||
if(!replace_if_exists && dst_exists) {
|
||||
DEBUG(3, ("rename_internals_fsp: dest exists doing rename "
|
||||
|
Loading…
Reference in New Issue
Block a user