diff options
author | Andreas Schneider <asn@samba.org> | 2011-04-07 17:19:03 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-05-10 19:13:20 +0200 |
commit | 29eea4b09ad2e99504f42a3c29195fb4757792dd (patch) | |
tree | 97bff20a1b7977b07e0576960cb1b3b4830dbec0 /source3/lib/netapi | |
parent | b34e1768b762ae46e4fe761d9691ed09d285c9a9 (diff) | |
download | samba-29eea4b09ad2e99504f42a3c29195fb4757792dd.tar.gz samba-29eea4b09ad2e99504f42a3c29195fb4757792dd.tar.bz2 samba-29eea4b09ad2e99504f42a3c29195fb4757792dd.zip |
libsmbconf: Convert smbconf_init() to sbcErr.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/serverinfo.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c index 22c7df69d1..e995bdaf47 100644 --- a/source3/lib/netapi/serverinfo.c +++ b/source3/lib/netapi/serverinfo.c @@ -541,6 +541,7 @@ static WERROR NetServerSetInfo_l_1005(struct libnetapi_ctx *ctx, struct NetServerSetInfo *r) { WERROR werr; + sbcErr err; struct smbconf_ctx *conf_ctx; struct srvsvc_NetSrvInfo1005 *info1005; @@ -563,8 +564,12 @@ static WERROR NetServerSetInfo_l_1005(struct libnetapi_ctx *ctx, return WERR_NOT_SUPPORTED; } - werr = smbconf_init_reg(ctx, &conf_ctx, NULL); - if (!W_ERROR_IS_OK(werr)) { + err = smbconf_init_reg(ctx, &conf_ctx, NULL); + if (!SBC_ERROR_IS_OK(err)) { + libnetapi_set_error_string(ctx, + "Could not initialize backend: %s", + sbcErrorString(err)); + werr = WERR_NO_SUCH_SERVICE; goto done; } |