From: Amitay Isaacs Date: Tue, 7 Mar 2017 05:44:08 +0000 (+1100) Subject: ctdb-tools: Always exit with positive return value X-Git-Tag: ldb-1.1.30~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d818e18c2ba0385b96e0fd9385dc77b23cf43b1;p=thirdparty%2Fsamba.git ctdb-tools: Always exit with positive return value Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Tue May 30 08:05:56 CEST 2017 on sn-devel-144 --- diff --git a/ctdb/tools/ctdb_event.c b/ctdb/tools/ctdb_event.c index 8e2dca70e67..9b348a6846d 100644 --- a/ctdb/tools/ctdb_event.c +++ b/ctdb/tools/ctdb_event.c @@ -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,