From d63c481fb9a0dc35f0a4d87864095d8116fb0674 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 31 Dec 2004 05:34:31 +0000 Subject: 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) --- source4/rpc_server/common/share_info.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'source4/rpc_server/common') 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! */ @@ -99,6 +99,12 @@ uint32_t dcesrv_common_get_share_csc_policy(TALLOC_CTX *mem_ctx, struct dcesrv_c return 0; } +/* 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) { -- cgit