diff options
author | Jeremy Allison <jra@samba.org> | 2002-02-27 21:46:53 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-02-27 21:46:53 +0000 |
commit | 2da4d64cfcf289d18d622c67d3250c51e6b88466 (patch) | |
tree | e6e8897eff144ae4f8cc6a79b94760a737d2e1bb /source3/smbd/nttrans.c | |
parent | 9e2a06611d5ab7e2dbba7e9fbc84e1fcae0c58ed (diff) | |
download | samba-2da4d64cfcf289d18d622c67d3250c51e6b88466.tar.gz samba-2da4d64cfcf289d18d622c67d3250c51e6b88466.tar.bz2 samba-2da4d64cfcf289d18d622c67d3250c51e6b88466.zip |
Added "nt status support" parameter. Fix offline synchronisation.
Jeremy.
(This used to be commit 9243a9778e52999d5c62cba484640637b24994d8)
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 501f0e9ab0..d56b7fe622 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -828,8 +828,8 @@ int reply_ntcreate_and_X(connection_struct *conn, if(oplock_request && EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) smb_action |= EXTENDED_OPLOCK_GRANTED; -#if 1 /* JRATEST */ - /* W2K sends back 42 words here ! */ +#if 0 + /* W2K sends back 42 words here ! If we do the same it breaks offline sync. Go figure... ? JRA. */ set_message(outbuf,42,0,True); #else set_message(outbuf,34,0,True); @@ -1809,9 +1809,8 @@ due to being in oplock break state.\n" )); } } - if (Protocol >= PROTOCOL_NT1) { - SSVAL(outbuf,smb_flg2,SVAL(outbuf,smb_flg2) | 0x40); /* IS_LONG_NAME */ - } + if (Protocol >= PROTOCOL_NT1) + SSVAL(outbuf,smb_flg2,SVAL(outbuf,smb_flg2) | FLAGS2_IS_LONG_NAME); /* Now we must call the relevant NT_TRANS function */ switch(function_code) { |