summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-07-19 17:14:19 +0000
committerJeremy Allison <jra@samba.org>2002-07-19 17:14:19 +0000
commit80c8fe63d2d2149ff9d2294da281d61a683e27ea (patch)
tree9b0b29b10e3ae78655c7c7bf5587c8b3ea6b0f21 /source3/smbd/nttrans.c
parent5f894476d86fd5a5b453e7043e087714c9e1c6ef (diff)
downloadsamba-80c8fe63d2d2149ff9d2294da281d61a683e27ea.tar.gz
samba-80c8fe63d2d2149ff9d2294da281d61a683e27ea.tar.bz2
samba-80c8fe63d2d2149ff9d2294da281d61a683e27ea.zip
Allow trans2 and nttrans messages to be processed in oplock break state.
As noticed by Lev Iserovich <lev@ciprico.com> this seems to fix a problem with oplock breaks and Win2k, and we are protected from problems by existing code in trans2.c and nttrans.c Jeremy. (This used to be commit e3f7d6c03f100962395763a5066313d60b4761d0)
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r--source3/smbd/nttrans.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index e03588bf05..8f6b4ab374 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -1636,13 +1636,15 @@ int reply_nttrans(connection_struct *conn,
uint32 num_params_sofar, num_data_sofar;
START_PROFILE(SMBnttrans);
- if(global_oplock_break && (function_code == NT_TRANSACT_CREATE)) {
+ if(global_oplock_break &&
+ ((function_code == NT_TRANSACT_CREATE) ||
+ (function_code == NT_TRANSACT_RENAME))) {
/*
* Queue this open message as we are the process of an oplock break.
*/
- DEBUG(2,("reply_nttrans: queueing message NT_TRANSACT_CREATE \
-due to being in oplock break state.\n" ));
+ DEBUG(2,("reply_nttrans: queueing message code 0x%x \
+due to being in oplock break state.\n", (unsigned int)function_code ));
push_oplock_pending_smb_message( inbuf, length);
END_PROFILE(SMBnttrans);