1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

make sure we give an error for unknown lockingX locktype bits

(This used to be commit 72cb43b912)
This commit is contained in:
Andrew Tridgell 2002-03-11 01:34:14 +00:00
parent cc24c353bb
commit 57970fd4e2

View File

@ -3722,6 +3722,13 @@ int reply_lockingX(connection_struct *conn, char *inbuf,char *outbuf,int length,
CHECK_FSP(fsp,conn);
data = smb_buf(inbuf);
if (locktype & (LOCKING_ANDX_CANCEL_LOCK | LOCKING_ANDX_CHANGE_LOCKTYPE)) {
/* we don't support these - and CANCEL_LOCK makes w2k
and XP reboot so I don't really want to be
compatible! (tridge) */
return ERROR_NT(NT_STATUS_NOT_SUPPORTED);
}
/* Check if this is an oplock break on a file
we have granted an oplock on.