diff options
author | Günther Deschner <gd@samba.org> | 2008-09-04 20:24:02 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-09-05 13:22:39 +0200 |
commit | 136ddc8f049a248b635d82ff395d774c5d78769d (patch) | |
tree | 225fa942054bd5cc8f569a58a5c40cdb37f71318 /source3/lib | |
parent | 86df00a38813f96780e4b7a8bbc7cfc02572b13e (diff) | |
download | samba-136ddc8f049a248b635d82ff395d774c5d78769d.tar.gz samba-136ddc8f049a248b635d82ff395d774c5d78769d.tar.bz2 samba-136ddc8f049a248b635d82ff395d774c5d78769d.zip |
netapi: add support for level 1004 in
map_SHARE_INFO_buffer_to_srvsvc_share_info.
Guenther
(This used to be commit f21a934e1e100cb1496a6c854684ff110ba6d1cc)
Diffstat (limited to 'source3/lib')
-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; } |