Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz>
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
return;
}
status = WEXITSTATUS(status);
- DEBUG(3,("Child %s exited with status %d - %s\n",
- state->arg0, status, strerror(status)));
+ DEBUG(3,("Child %s exited with status %d\n",
+ state->arg0, status));
if (status != 0) {
tevent_req_error(req, status);
return;
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 DNS update - %s\n",
- nt_errstr(service->nameupdate.status)));
+ if (ret != 0) {
+ DEBUG(0,(__location__ ": Failed DNS update - with error code %d\n",
+ sys_errno));
} else {
DEBUG(3,("Completed DNS update check OK\n"));
}