From 8738fa1cc42d913e3ab2b54fe1e75ca4da37073f Mon Sep 17 00:00:00 2001 From: MikeLiu Date: Fri, 29 Aug 2025 17:31:36 +0800 Subject: [PATCH] s3:net: fix "net ads group" BUG: https://bugzilla.samba.org/show_bug.cgi?id=15900 Signed-off-by: MikeLiu Reviewed-by: Volker Lendecke Reviewed-by: Noel Power Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Thu Sep 4 09:33:27 UTC 2025 on atb-devel-224 --- source3/utils/net_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index f77c2b8210a..6c11faeb091 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -1360,7 +1360,7 @@ int net_ads_group(struct net_context *c, int argc, const char **argv) char *disp_fields[2] = {NULL, NULL}; int ret = -1; - if (argc >= 0) { + if (argc > 0) { TALLOC_FREE(tmp_ctx); return net_run_function(c, argc, argv, "net ads group", func); } -- 2.47.3