1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

srvsvc: Use a symbolic constant where we have one

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2013-07-11 11:31:50 +02:00 committed by Jeremy Allison
parent f387d9a352
commit 02ff6ab5e7

View File

@ -301,7 +301,12 @@ static void init_srv_share_info_501(struct pipes_struct *p,
r->name = net_name;
r->type = get_share_type(snum);
r->comment = remark ? remark : "";
r->csc_policy = (lp_csc_policy(snum) << 4);
/*
* According to [MS-SRVS] 2.2.4.25, the flags field is the same as in
* level 1005.
*/
r->csc_policy = (lp_csc_policy(snum) << SHARE_1005_CSC_POLICY_SHIFT);
}
/*******************************************************************