From a6bf13ce971a87c1291082a4bc90fdca6d2b8c2b Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Jan 2008 23:30:08 +0100 Subject: Add explicit creation of shares to net conf import function. It has been removed from libnet_conf_set_parameter(). Michael (This used to be commit b5c533b06cba9a8ffd28a1fb3bc56ab248340775) --- source3/utils/net_conf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/utils/net_conf.c') diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index f212ed7b19..9a4f3ff69a 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -217,6 +217,10 @@ static int import_process_service(TALLOC_CTX *ctx, goto done; } } + werr = libnet_conf_create_share(conf_ctx, servicename); + if (!W_ERROR_IS_OK(werr)) { + goto done; + } } while ((parm = lp_next_parameter(share->service, &pnum, 0))) -- cgit