diff options
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/share.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c index 36f8133f7d..414900a11d 100644 --- a/source3/lib/netapi/share.c +++ b/source3/lib/netapi/share.c @@ -128,7 +128,9 @@ static NTSTATUS map_SHARE_INFO_buffer_to_srvsvc_share_info(TALLOC_CTX *mem_ctx, union srvsvc_NetShareInfo *info) { struct SHARE_INFO_2 *i2 = NULL; + struct SHARE_INFO_1004 *i1004 = NULL; struct srvsvc_NetShareInfo2 *s2 = NULL; + struct srvsvc_NetShareInfo1004 *s1004 = NULL; if (!buffer) { return NT_STATUS_INVALID_PARAMETER; @@ -153,6 +155,17 @@ static NTSTATUS map_SHARE_INFO_buffer_to_srvsvc_share_info(TALLOC_CTX *mem_ctx, info->info2 = s2; break; + case 1004: + i1004 = (struct SHARE_INFO_1004 *)buffer; + + s1004 = TALLOC_P(mem_ctx, struct srvsvc_NetShareInfo1004); + NT_STATUS_HAVE_NO_MEMORY(s1004); + + s1004->comment = i1004->shi1004_remark; + + info->info1004 = s1004; + + break; default: return NT_STATUS_INVALID_PARAMETER; } |