summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-04-11 13:23:26 +0200
committerMichael Adam <obnox@samba.org>2011-05-10 19:13:21 +0200
commitddc28a683fcf036a279a0d3d7b23504364316fa6 (patch)
tree9b7f70351c2a22c1102092b54291e089ce725c28 /source3/lib/netapi
parentfbd7626656d8d76f371e431005fbfa1228ba2029 (diff)
downloadsamba-ddc28a683fcf036a279a0d3d7b23504364316fa6.tar.gz
samba-ddc28a683fcf036a279a0d3d7b23504364316fa6.tar.bz2
samba-ddc28a683fcf036a279a0d3d7b23504364316fa6.zip
libsmbconf: Convert smbconf_set_parameter() to sbcErr.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/serverinfo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c
index e995bdaf47..f321648f24 100644
--- a/source3/lib/netapi/serverinfo.c
+++ b/source3/lib/netapi/serverinfo.c
@@ -573,8 +573,15 @@ static WERROR NetServerSetInfo_l_1005(struct libnetapi_ctx *ctx,
goto done;
}
- werr = smbconf_set_global_parameter(conf_ctx, "server string",
+ err = smbconf_set_global_parameter(conf_ctx, "server string",
info1005->comment);
+ if (!SBC_ERROR_IS_OK(err)) {
+ libnetapi_set_error_string(ctx,
+ "Could not set global parameter: %s",
+ sbcErrorString(err));
+ werr = WERR_NO_SUCH_SERVICE;
+ goto done;
+ }
done:
smbconf_shutdown(conf_ctx);