srvsvc: Use a symbolic constant where we have one
authorVolker Lendecke <vl@samba.org>
Thu, 11 Jul 2013 09:31:50 +0000 (11:31 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 11 Jul 2013 17:02:36 +0000 (10:02 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/srvsvc/srv_srvsvc_nt.c

index 011d41fa5227b84e045f955f911b51300acc948c..655b0c70a8fa670a97280dc170ab9802eb5ad36b 100644 (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);
 }
 
 /*******************************************************************