diff options
Diffstat (limited to 'source4/torture/gentest.c')
-rw-r--r-- | source4/torture/gentest.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index 53dd83ac15..d414863d82 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -2068,7 +2068,7 @@ static void usage(void) "Usage:\n\ gentest2 //server1/share1 //server2/share2 [options..]\n\ options:\n\ - -U user%%pass (must be specified twice)\n\ + -U user%%pass (can be specified twice)\n\ -s seed\n\ -o numops\n\ -a (show all ops)\n\ @@ -2179,10 +2179,14 @@ static void usage(void) } } - if (!servers[0].username || !servers[1].username) { + if (!servers[0].username) { usage(); return -1; } + if (!servers[1].username) { + servers[1].username = servers[0].username; + servers[1].password = servers[0].password; + } printf("seed=%u\n", options.seed); |