git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4984d6
)
TODO: s3:smb2_negprot: announce persistent handle support (default: no)
author
Stefan Metzmacher
<metze@samba.org>
Thu, 26 Jul 2012 00:49:16 +0000
(
02:49
+0200)
committer
Michael Adam
<obnox@samba.org>
Fri, 9 May 2014 10:58:13 +0000
(12:58 +0200)
add "smbd:announce persistent handles" option (default: false)
metze
source3/smbd/smb2_negprot.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_negprot.c
b/source3/smbd/smb2_negprot.c
index 66434643782e9f5ddf7696618c538c0b9b73ab56..24eddf91e62e65f442de9092078f9226c3878cab 100644
(file)
--- a/
source3/smbd/smb2_negprot.c
+++ b/
source3/smbd/smb2_negprot.c
@@
-303,6
+303,13
@@
NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
max_read = MIN(max_limit, lp_smb2_max_read());
max_write = MIN(max_limit, lp_smb2_max_write());
+ if (protocol >= PROTOCOL_SMB2_22 &&
+ lp_parm_bool(-1, "smbd", "announce persistent handles", false)) {
+ if (in_capabilities & SMB2_CAP_PERSISTENT_HANDLES) {
+ capabilities |= SMB2_CAP_PERSISTENT_HANDLES;
+ }
+ }
+
security_offset = SMB2_HDR_BODY + 0x40;
#if 1