]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:net: fix "net ads group"
authorMikeLiu <mikeliu@qnap.com>
Fri, 29 Aug 2025 09:31:36 +0000 (17:31 +0800)
committerVolker Lendecke <vl@samba.org>
Thu, 4 Sep 2025 09:33:27 +0000 (09:33 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15900

Signed-off-by: MikeLiu <mikeliu@qnap.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Sep  4 09:33:27 UTC 2025 on atb-devel-224

source3/utils/net_ads.c

index f77c2b8210a1bd8c6ee62ab7c1b32ce1f1c7b7f3..6c11faeb091117a97bee18a9edc85f3047a48c82 100644 (file)
@@ -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);
        }