From 82a10942d4e88b474b2e87f53cf2d82977e596e0 Mon Sep 17 00:00:00 2001 From: Bob Campbell Date: Fri, 3 Jun 2016 14:32:10 +1200 Subject: [PATCH] samba_spnupdate: do not interpret failure count as unix error code Signed-off-by: Bob Campbell Pair-programmed-with: Garming Sam Reviewed-by: Douglas Bagnall Autobuild-User(master): Douglas Bagnall Autobuild-Date(master): Fri Jun 3 11:02:26 CEST 2016 on sn-devel-144 --- source4/dsdb/dns/dns_update.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source4/dsdb/dns/dns_update.c b/source4/dsdb/dns/dns_update.c index 0c0e4b4512e..0591e346824 100644 --- a/source4/dsdb/dns/dns_update.c +++ b/source4/dsdb/dns/dns_update.c @@ -309,14 +309,8 @@ static void dnsupdate_spnupdate_done(struct tevent_req *subreq) ret = samba_runcmd_recv(subreq, &sys_errno); TALLOC_FREE(subreq); if (ret != 0) { - service->nameupdate.status = map_nt_error_from_unix_common(sys_errno); - } else { - service->nameupdate.status = NT_STATUS_OK; - } - - if (!NT_STATUS_IS_OK(service->nameupdate.status)) { - DEBUG(0,(__location__ ": Failed SPN update - %s\n", - nt_errstr(service->nameupdate.status))); + DEBUG(0,(__location__ ": Failed SPN update - with error code %d\n", + sys_errno)); } else { DEBUG(3,("Completed SPN update check OK\n")); }