diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-03-11 01:34:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-03-11 01:34:14 +0000 |
commit | 72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f (patch) | |
tree | a445534fdf4fb24d300228a380f23873956acd3c /source/smbd/reply.c | |
parent | 136b9752fc9da86f0ad0e1f46dc389b752975aea (diff) | |
download | samba-72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f.tar.gz samba-72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f.tar.xz samba-72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f.zip |
make sure we give an error for unknown lockingX locktype bits
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 0de0e15274c..9d5d34e410f 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -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. |