summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-13 23:30:08 +0100
committerMichael Adam <obnox@samba.org>2008-01-13 23:30:08 +0100
commita6bf13ce971a87c1291082a4bc90fdca6d2b8c2b (patch)
treecbd01c73ba2a4ac3b1d89bed5f90d7f5a5889137 /source3/utils
parent3910dd2e1b069a58ef68c6848495afc0df8fa2ae (diff)
downloadsamba-a6bf13ce971a87c1291082a4bc90fdca6d2b8c2b.tar.gz
samba-a6bf13ce971a87c1291082a4bc90fdca6d2b8c2b.tar.bz2
samba-a6bf13ce971a87c1291082a4bc90fdca6d2b8c2b.zip
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)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_conf.c4
1 files changed, 4 insertions, 0 deletions
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)))