git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a94a4b7
)
Correctly report share types (now Win7 makes RPC calls against us).
author
Jeremy Allison
<jra@samba.org>
Tue, 27 Apr 2010 04:36:01 +0000
(21:36 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 27 Apr 2010 04:36:01 +0000
(21:36 -0700)
Jeremy.
source3/smbd/smb2_tcon.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_tcon.c
b/source3/smbd/smb2_tcon.c
index c3e46eeb1cb7b692ec5660532e4a37960673f87f..f3efb83c1dedf7a4f11e34f085aac5dff42d3cfb 100644
(file)
--- a/
source3/smbd/smb2_tcon.c
+++ b/
source3/smbd/smb2_tcon.c
@@
-208,7
+208,13
@@
static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
tcon->compat_conn = talloc_move(tcon, &compat_conn);
tcon->compat_conn->cnum = tcon->tid;
- *out_share_type = 0x01;
+ if (IS_PRINT(tcon->compat_conn)) {
+ *out_share_type = 0x03;
+ } else if (IS_IPC(tcon->compat_conn)) {
+ *out_share_type = 0x02;
+ } else {
+ *out_share_type = 0x01;
+ }
*out_share_flags = SMB2_SHAREFLAG_ALL;
*out_capabilities = 0;
*out_maximal_access = FILE_GENERIC_ALL;