diff options
author | Volker Lendecke <vl@samba.org> | 2014-06-04 14:47:05 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-06-18 18:51:13 +0200 |
commit | 9fd8d5154f178208f82777f7f81682be66e79400 (patch) | |
tree | 775f42a9df3a6b018f76219025124258156a116d /source3/utils | |
parent | 2f3435085e0d6f64cd41b2d42e446da8821abc4b (diff) | |
download | samba-9fd8d5154f178208f82777f7f81682be66e79400.tar.gz samba-9fd8d5154f178208f82777f7f81682be66e79400.tar.xz samba-9fd8d5154f178208f82777f7f81682be66e79400.zip |
messaging3: Make messaging_dgm_wipe return 0/errno
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcontrol.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index d11adc666e..edd2edcb63 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -973,22 +973,18 @@ static bool do_dgm_cleanup(struct tevent_context *ev_ctx, const struct server_id pid, const int argc, const char **argv) { - NTSTATUS status = NT_STATUS_OK; + int ret; if (pid.pid != 0) { - int ret; ret = messaging_dgm_cleanup(msg_ctx, pid.pid); - if (ret != 0) { - status = map_nt_error_from_unix(ret); - } } else { - status = messaging_dgm_wipe(msg_ctx); + ret = messaging_dgm_wipe(msg_ctx); } printf("cleanup(%u) returned %s\n", (unsigned)pid.pid, - nt_errstr(status)); + ret ? strerror(ret) : "ok"); - return NT_STATUS_IS_OK(status); + return (ret == 0); } /* Shutdown a server process */ |