]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: Write better error on invalid cmdline option
authorAndreas Schneider <asn@samba.org>
Wed, 9 Dec 2020 09:49:51 +0000 (10:49 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Jun 2021 00:34:38 +0000 (00:34 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/smbtorture.c

index 890c75f068ba80a578bd9e0c45d82f437ff20546..b1e0576e560e2ebf13689f380151066de7c4cdf4 100644 (file)
@@ -521,7 +521,9 @@ int main(int argc, const char *argv[])
                        break;
                default:
                        if (opt < 0) {
-                               printf("bad command line option %d\n", opt);
+                               printf("Invalid command line option %s (%d)\n",
+                                      poptBadOption(pc, 0),
+                                      opt);
                                talloc_free(mem_ctx);
                                exit(1);
                        }