]> 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)
committerJule Anger <janger@samba.org>
Thu, 11 Sep 2025 10:07:09 +0000 (10:07 +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

(cherry picked from commit 8738fa1cc42d913e3ab2b54fe1e75ca4da37073f)

source3/utils/net_ads.c

index 46531210411a6867ef933801311322ef0d58f868..d47e72faae07d85095c5a1040b234ce0eb538600 100644 (file)
@@ -1359,7 +1359,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);
        }