summaryrefslogtreecommitdiff
path: root/source3/smbd/negprot.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-27 21:46:53 +0000
committerJeremy Allison <jra@samba.org>2002-02-27 21:46:53 +0000
commit2da4d64cfcf289d18d622c67d3250c51e6b88466 (patch)
treee6e8897eff144ae4f8cc6a79b94760a737d2e1bb /source3/smbd/negprot.c
parent9e2a06611d5ab7e2dbba7e9fbc84e1fcae0c58ed (diff)
downloadsamba-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/negprot.c')
-rw-r--r--source3/smbd/negprot.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index 934d594853..f4ed360845 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -220,7 +220,7 @@ static int reply_nt1(char *inbuf, char *outbuf)
{
/* dual names + lock_and_read + nt SMBs + remote API calls */
int capabilities = CAP_NT_FIND|CAP_LOCK_AND_READ|
- CAP_LEVEL_II_OPLOCKS|CAP_STATUS32;
+ CAP_LEVEL_II_OPLOCKS;
int secword=0;
time_t t = time(NULL);
@@ -242,28 +242,29 @@ static int reply_nt1(char *inbuf, char *outbuf)
capabilities |= CAP_NT_SMBS|CAP_RPC_REMOTE_APIS|CAP_UNIX;
- if (lp_large_readwrite() && (SMB_OFF_T_BITS == 64)) {
+ if (lp_large_readwrite() && (SMB_OFF_T_BITS == 64))
capabilities |= CAP_LARGE_READX|CAP_LARGE_WRITEX|CAP_W2K_SMBS;
- }
- if (SMB_OFF_T_BITS == 64) {
+ if (SMB_OFF_T_BITS == 64)
capabilities |= CAP_LARGE_FILES;
- }
-
- if (lp_readraw() && lp_writeraw()) {
+
+ if (lp_readraw() && lp_writeraw())
capabilities |= CAP_RAW_MODE;
- }
/* allow for disabling unicode */
- if (lp_unicode()) {
+ if (lp_unicode())
capabilities |= CAP_UNICODE;
- }
+
+ if (lp_nt_status_support())
+ capabilities |= CAP_STATUS32;
if (lp_host_msdfs())
capabilities |= CAP_DFS;
- if (lp_security() >= SEC_USER) secword |= 1;
- if (global_encrypted_passwords_negotiated) secword |= 2;
+ if (lp_security() >= SEC_USER)
+ secword |= 1;
+ if (global_encrypted_passwords_negotiated)
+ secword |= 2;
set_message(outbuf,17,0,True);