1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

Correctly report share types (now Win7 makes RPC calls against us).

Jeremy.
This commit is contained in:
Jeremy Allison 2010-04-26 21:36:01 -07:00
parent a94a4b788c
commit 3f643f18d9

View File

@ -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;