From 89fb79ada6cf8cdc94ae181cdcfa9a2c0a4ffaeb Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Jan 2008 22:49:42 +0100 Subject: Remove auto-generation of missing share from libnet_conf_set_parameter(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Günther, I wanted to have this as atomic as possible. I will add this behaviour to libnet_conf_set_global_parameter() next with the justification that [global] should exist transparently. Michael (This used to be commit e2b34e9c028d712c7c8b22aade2c11d347ae176d) --- source3/libnet/libnet_conf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/libnet') diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c index 8e44e4f525..11dc1639ad 100644 --- a/source3/libnet/libnet_conf.c +++ b/source3/libnet/libnet_conf.c @@ -776,10 +776,8 @@ WERROR libnet_conf_set_parameter(struct libnet_conf_ctx *ctx, TALLOC_CTX *mem_ctx = talloc_stackframe(); if (!libnet_conf_share_exists(ctx, service)) { - werr = libnet_conf_create_share(ctx, service); - if (!W_ERROR_IS_OK(werr)) { - goto done; - } + werr = WERR_NO_SUCH_SERVICE; + goto done; } werr = libnet_conf_reg_open_service_key(mem_ctx, ctx, service, -- cgit