summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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;