summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-12-19 14:16:38 +0100
committerVolker Lendecke <vl@samba.org>2019-01-15 07:53:21 +0100
commitff2dbe24b80b24bdb4897d0152e76ed3931048f2 (patch)
treeb130706ad786bc97136e64a12b11e250e7437567
parenta7e28a7eb56dc3279af52a6edd50cc59c771f1f1 (diff)
downloadsamba-ff2dbe24b80b24bdb4897d0152e76ed3931048f2.tar.gz
dns_update: samba_dnsupdate's exit code is not an errno
This avoids confusing messages, samba_dnsupdate returns the number of failed updates Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source4/dsdb/dns/dns_update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/dns/dns_update.c b/source4/dsdb/dns/dns_update.c
index b2b951c0561..0a1f0ac2330 100644
--- a/source4/dsdb/dns/dns_update.c
+++ b/source4/dsdb/dns/dns_update.c
@@ -327,8 +327,8 @@ static void dnsupdate_nameupdate_done(struct tevent_req *subreq)
TALLOC_FREE(subreq);
if (ret != 0) {
- DBG_ERR("Failed DNS update - with error code %d: %s\n",
- sys_errno, strerror(sys_errno));
+ DBG_ERR("Failed DNS update with exit code %d\n",
+ sys_errno);
} else {
DEBUG(3,("Completed DNS update check OK\n"));
}