From ff2dbe24b80b24bdb4897d0152e76ed3931048f2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 19 Dec 2018 14:16:38 +0100 Subject: 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 Reviewed-by: Jeremy Allison --- source4/dsdb/dns/dns_update.c | 4 ++-- 1 file 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")); } -- cgit v1.2.1