smbtorture: Print global options for interactive "list" command.
authorJames Peach <jpeach@samba.org>
Fri, 19 Mar 2010 04:59:35 +0000 (21:59 -0700)
committerJames Peach <jpeach@apple.com>
Mon, 21 Jun 2010 15:58:10 +0000 (08:58 -0700)
source4/torture/smbtorture.c

index c1d32a769d738dc464710e38c030d2f85ebc97cb..96014a22066560e741cdd64b767a0e2a170dfb60 100644 (file)
@@ -406,7 +406,9 @@ static void run_shell(struct torture_context *tctx)
                        print_structured_test_list();
                } else if (!strcmp(argv[0], "set")) {
                        if (argc < 3) {
-                               fprintf(stderr, "Usage: set <variable> <value>\n");
+                               lp_dump(tctx->lp_ctx, stdout,
+                                       false /* show_defaults */,
+                                       0 /* skip services */);
                        } else {
                                char *name = talloc_asprintf(NULL, "torture:%s", argv[1]);
                                lp_set_cmdline(tctx->lp_ctx, name, argv[2]);