1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-28 09:49:30 +03:00

s3: smbd: Remove the NULL fsp use of refuse_symlink().

It makes no sense here and will allow us to rename
refuse_symlink() -> refuse_symlink_fsp() and clean it up.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison
2021-05-20 11:55:45 -07:00
committed by Ralph Boehme
parent ddc226c849
commit 8f9606b26d

View File

@ -6858,17 +6858,9 @@ static NTSTATUS smb_info_set_ea(connection_struct *conn,
* and we're in POSIX context.
* Ensure this is the case.
*
* There is still a race condition in that
* the symlink could be changed after we
* checked it, so ensure we only operate
* EA setting on a file handle.
* In this case we cannot set the EA.
*/
SMB_ASSERT(smb_fname->flags & SMB_FILENAME_POSIX_PATH);
if (!(smb_fname->flags & SMB_FILENAME_POSIX_PATH)) {
return NT_STATUS_ACCESS_DENIED;
}
status = refuse_symlink(conn, NULL, smb_fname);
SMB_ASSERT(NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED));
return NT_STATUS_ACCESS_DENIED;
}