dns_update: samba_dnsupdate's exit code is not an errno
authorVolker Lendecke <vl@samba.org>
Wed, 19 Dec 2018 13:16:38 +0000 (14:16 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 15 Jan 2019 06:53:21 +0000 (07:53 +0100)
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>
source4/dsdb/dns/dns_update.c

index b2b951c05614562b569b2e2671551ecbf6db2a11..0a1f0ac2330df77e73714694321ce0626e2a3d01 100644 (file)
@@ -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"));
        }