summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-04-26 21:36:01 -0700
committerJeremy Allison <jra@samba.org>2010-04-26 21:36:01 -0700
commit3f643f18d911888d69bba7f03813b3bde816326e (patch)
treea7a189ee39d471cde0b4c3990528e3e9d5d67d76 /source3/smbd
parenta94a4b788c3056068d0c8e42c55e990f418db666 (diff)
downloadsamba-3f643f18d911888d69bba7f03813b3bde816326e.tar.gz
samba-3f643f18d911888d69bba7f03813b3bde816326e.tar.bz2
samba-3f643f18d911888d69bba7f03813b3bde816326e.zip
Correctly report share types (now Win7 makes RPC calls against us).
Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_tcon.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c
index c3e46eeb1c..f3efb83c1d 100644
--- 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;