summaryrefslogtreecommitdiffstats
path: root/source/libnet
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
commite2b34e9c028d712c7c8b22aade2c11d347ae176d (patch)
tree1b7df5a3498b3a6c2f0618eaae8d2fed1eab38cc /source/libnet
parent4aaf4e7e73a5c7fa97ef730fbff5c7cb12df2d6c (diff)
downloadsamba-e2b34e9c028d712c7c8b22aade2c11d347ae176d.tar.gz
samba-e2b34e9c028d712c7c8b22aade2c11d347ae176d.tar.xz
samba-e2b34e9c028d712c7c8b22aade2c11d347ae176d.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
Diffstat (limited to 'source/libnet')
-rw-r--r--source/libnet/libnet_conf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/libnet/libnet_conf.c b/source/libnet/libnet_conf.c
index 8e44e4f5253..11dc1639ad7 100644
--- a/source/libnet/libnet_conf.c
+++ b/source/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,