summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-07-11 11:31:50 +0200
committerJeremy Allison <jra@samba.org>2013-07-11 10:02:36 -0700
commit02ff6ab5e778ceac30410136e622310b3a90e903 (patch)
tree308624f1de8ff28435dae2438e647266fff6faaa /source3
parentf387d9a352141dad9e9aea9e0d19d6d769f414c0 (diff)
downloadsamba-02ff6ab5e778ceac30410136e622310b3a90e903.tar.gz
samba-02ff6ab5e778ceac30410136e622310b3a90e903.tar.bz2
samba-02ff6ab5e778ceac30410136e622310b3a90e903.zip
srvsvc: Use a symbolic constant where we have one
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srvsvc/srv_srvsvc_nt.c7
1 files changed, 6 insertions, 1 deletions
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);
}
/*******************************************************************