From: Volker Lendecke Date: Sun, 18 Aug 2024 10:40:29 +0000 (+0200) Subject: utils: Fix "net rap password" return code X-Git-Tag: tdb-1.4.13~1366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf61617198c253d50f8e5460767f245910120362;p=thirdparty%2Fsamba.git utils: Fix "net rap password" return code cli_oem_change_password() returns a bool, net_rap_password must return 0 for success Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index 9818623a925..ed4b2c72277 100644 --- a/source3/utils/net_rap.c +++ b/source3/utils/net_rap.c @@ -1251,7 +1251,7 @@ int net_rap_password(struct net_context *c, int argc, const char **argv) /* BB Add check for password lengths? */ ret = cli_oem_change_password(cli, argv[0], argv[2], argv[1]); cli_shutdown(cli); - return ret; + return ret ? 0 : -1; } int net_rap_admin_usage(struct net_context *c, int argc, const char **argv)