1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbd: Disable SMB_SET_POSIX_LOCK when SMB1 is disabled

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Mulder 2022-03-21 14:11:04 -06:00 committed by Jeremy Allison
parent 941ed7efd2
commit 858a49d157

View File

@ -6695,6 +6695,7 @@ static NTSTATUS smbd_do_posix_setfilepathinfo(struct connection_struct *conn,
}
#endif
#if defined(WITH_SMB1SERVER)
case SMB_SET_POSIX_LOCK:
{
if (fsp == NULL) {
@ -6704,6 +6705,7 @@ static NTSTATUS smbd_do_posix_setfilepathinfo(struct connection_struct *conn,
pdata, total_data, fsp);
break;
}
#endif
case SMB_POSIX_PATH_OPEN:
{