diff options
author | Michael Adam <obnox@samba.org> | 2008-01-13 22:49:42 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-13 23:16:41 +0100 |
commit | e2b34e9c028d712c7c8b22aade2c11d347ae176d (patch) | |
tree | 1b7df5a3498b3a6c2f0618eaae8d2fed1eab38cc /source/libnet | |
parent | 4aaf4e7e73a5c7fa97ef730fbff5c7cb12df2d6c (diff) | |
download | samba-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.c | 6 |
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, |