From: Volker Lendecke Date: Wed, 19 Dec 2018 13:16:38 +0000 (+0100) Subject: dns_update: samba_dnsupdate's exit code is not an errno X-Git-Tag: talloc-2.1.15~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff2dbe24b80b24bdb4897d0152e76ed3931048f2;p=thirdparty%2Fsamba.git 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 --- 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")); }