From 02ff6ab5e778ceac30410136e622310b3a90e903 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 11 Jul 2013 11:31:50 +0200 Subject: srvsvc: Use a symbolic constant where we have one Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/rpc_server/srvsvc/srv_srvsvc_nt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server/srvsvc') diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c index 011d41fa52..655b0c70a8 100644 --- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c +++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c @@ -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); } /******************************************************************* -- cgit