From 4c6ecb43949fd491939fd1392e22ab225c9e5342 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Feb 2008 16:52:57 +1100 Subject: fixed some options that could not be overridden on the command line (This used to be commit eea486d8942fdda769684fa6e825c0f899cf3304) --- source4/torture/gentest.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index 28cac81624..d5fc855f17 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -2200,6 +2200,9 @@ static bool split_unc_name(const char *unc, char **server, char **share) setlinebuf(stdout); options.seed = time(NULL); + options.numops = 1000; + options.max_open_handles = 20; + options.seeds_file = "gentest_seeds.dat"; pc = poptGetContext("gentest", argc, (const char **) argv, long_options, POPT_CONTEXT_KEEP_FIRST); @@ -2265,16 +2268,6 @@ static bool split_unc_name(const char *unc, char **server, char **share) } } - argc -= NSERVERS; - argv += NSERVERS; - - lp_load(lp_ctx, dyn_CONFIGFILE); - - options.seed = time(NULL); - options.numops = 1000; - options.max_open_handles = 20; - options.seeds_file = "gentest_seeds.dat"; - if (username_count == 0) { usage(pc); return -1; -- cgit