summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-13 22:49:42 +0100
committerMichael Adam <obnox@samba.org>2008-01-13 23:16:41 +0100
commit89fb79ada6cf8cdc94ae181cdcfa9a2c0a4ffaeb (patch)
tree91e9e3aa59a115d5309eb16206af6174658f349c
parent5b6520044b7026baf1cff554b400f7ff1f024d77 (diff)
downloadsamba-89fb79ada6cf8cdc94ae181cdcfa9a2c0a4ffaeb.tar.gz
samba-89fb79ada6cf8cdc94ae181cdcfa9a2c0a4ffaeb.tar.bz2
samba-89fb79ada6cf8cdc94ae181cdcfa9a2c0a4ffaeb.zip
Remove auto-generation of missing share from libnet_conf_set_parameter().
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)
-rw-r--r--source3/libnet/libnet_conf.c6
1 files changed, 2 insertions, 4 deletions
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,