summaryrefslogtreecommitdiff
path: root/source3/smbd/negprot.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-10 00:35:10 +0000
committerJeremy Allison <jra@samba.org>1998-09-10 00:35:10 +0000
commitaab0323d294770f80c6514389e5f84d3abf82429 (patch)
tree1baacda2492a93d24fd6a84498f9956b60081942 /source3/smbd/negprot.c
parent5de3c136808d891ca25009beefc194dc825a5a16 (diff)
downloadsamba-aab0323d294770f80c6514389e5f84d3abf82429.tar.gz
samba-aab0323d294770f80c6514389e5f84d3abf82429.tar.bz2
samba-aab0323d294770f80c6514389e5f84d3abf82429.zip
Improved stat cache code by uppercasing any search name that gets added to
it if we're in case insensitive mode, and then doing a memcmp rather than a StrnCaseCmp (which is *horribly* slow) on every lookup. Fixed bug with refusing NT SMB's (use *brackets* where needed :-). Jeremy. (This used to be commit 02b3fddce33a58a4db2102670b502fc0c6f45fab)
Diffstat (limited to 'source3/smbd/negprot.c')
-rw-r--r--source3/smbd/negprot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index b1e8a65c94..6a9cc9fb9b 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -156,8 +156,8 @@ reply for the nt protocol
static int reply_nt1(char *outbuf)
{
/* dual names + lock_and_read + nt SMBs + remote API calls */
- int capabilities = CAP_NT_FIND|CAP_LOCK_AND_READ|CAP_RPC_REMOTE_APIS |
- lp_nt_smb_support() ? CAP_NT_SMBS : 0;
+ int capabilities = CAP_NT_FIND|CAP_LOCK_AND_READ|
+ (lp_nt_smb_support() ? CAP_NT_SMBS | CAP_RPC_REMOTE_APIS : 0);
/*
other valid capabilities which we may support at some time...