1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

ctdb-tools: Always exit with positive return value

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Tue May 30 08:05:56 CEST 2017 on sn-devel-144
This commit is contained in:
Amitay Isaacs 2017-03-07 16:44:08 +11:00 committed by Martin Schwenke
parent a64a83f08a
commit 8d818e18c2

View File

@ -251,7 +251,8 @@ static int command_status(TALLOC_CTX *mem_ctx, struct tool_context *tctx,
talloc_free(script_list);
}
return event_status;
ret = (event_status < 0) ? -event_status : event_status;
return ret;
}
static int command_script_list(TALLOC_CTX *mem_ctx, struct tool_context *tctx,