summaryrefslogtreecommitdiff
path: root/source4/rpc_server/common
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-12-31 05:34:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:49 -0500
commitd63c481fb9a0dc35f0a4d87864095d8116fb0674 (patch)
treefb0b701d069bedb3fd989c286eefb793f589af1e /source4/rpc_server/common
parentcb25806d8dcdbf45f6de3b1a86e1c40ee3711fee (diff)
downloadsamba-d63c481fb9a0dc35f0a4d87864095d8116fb0674.tar.gz
samba-d63c481fb9a0dc35f0a4d87864095d8116fb0674.tar.bz2
samba-d63c481fb9a0dc35f0a4d87864095d8116fb0674.zip
r4432: - add srvsvc_NetShareInfo level 1006 and 1501 idl
- implement srvsvc_NetGetShareInfo() - add more error checks - bring the rest of the code in the same layout metze (This used to be commit 0dd14d9fc611a33dad4e559321d6c50d82efb5d1)
Diffstat (limited to 'source4/rpc_server/common')
-rw-r--r--source4/rpc_server/common/share_info.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/rpc_server/common/share_info.c b/source4/rpc_server/common/share_info.c
index 18df4a6cf4..824ad5758f 100644
--- a/source4/rpc_server/common/share_info.c
+++ b/source4/rpc_server/common/share_info.c
@@ -35,12 +35,12 @@ uint32_t dcesrv_common_get_count_of_shares(TALLOC_CTX *mem_ctx, struct dcesrv_co
const char *dcesrv_common_get_share_name(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx, int snum)
{
- return lp_servicename(snum);
+ return talloc_strdup(mem_ctx, lp_servicename(snum));
}
const char *dcesrv_common_get_share_comment(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx, int snum)
{
- return lp_comment(snum);
+ return talloc_strdup(mem_ctx, lp_comment(snum));
}
/* This hardcoded value should go into a ldb database! */
@@ -84,7 +84,7 @@ uint32_t dcesrv_common_get_share_type(TALLOC_CTX *mem_ctx, struct dcesrv_context
/* This hardcoded value should go into a ldb database! */
const char *dcesrv_common_get_share_path(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx, int snum)
{
- return "C:\\";
+ return talloc_strdup(mem_ctx, "C:\\");
}
/* This hardcoded value should go into a ldb database! */
@@ -100,6 +100,12 @@ uint32_t dcesrv_common_get_share_csc_policy(TALLOC_CTX *mem_ctx, struct dcesrv_c
}
/* This hardcoded value should go into a ldb database! */
+uint32_t dcesrv_common_get_share_dfs_flags(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx, int snum)
+{
+ return 0;
+}
+
+/* This hardcoded value should go into a ldb database! */
uint32_t dcesrv_common_get_share_unknown(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx, int snum)
{
return 0;