git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc24c35
)
make sure we give an error for unknown lockingX locktype bits
author
Andrew Tridgell
<tridge@samba.org>
Mon, 11 Mar 2002 01:34:14 +0000
(
01:34
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 11 Mar 2002 01:34:14 +0000
(
01:34
+0000)
(This used to be commit
72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f
)
source3/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index 0de0e15274c32d46da74541fe812c07fdc24af3e..9d5d34e410fa2bc04e5def92e08ba1ee0c373963 100644
(file)
--- a/
source3/smbd/reply.c
+++ b/
source3/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.