summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-02-03 21:53:51 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-02-03 21:53:51 +0000
commit2853e622483f5f1d2b78e8242bc45168516a44ee (patch)
tree651620890d8e9b73ed650bfc97500d9d29edae9a /source4/torture
parent0b4da9d7e069a5e32d9706ee12cde7fe7625270d (diff)
downloadsamba-2853e622483f5f1d2b78e8242bc45168516a44ee.tar.gz
samba-2853e622483f5f1d2b78e8242bc45168516a44ee.tar.bz2
samba-2853e622483f5f1d2b78e8242bc45168516a44ee.zip
This would appear to restore smbtorture to be able to use the syntax
documented in it's self-help for RPC tests. Andrew Bartlett (This used to be commit 49b52cdbfe26dd7afe74aeb4596a4fd34806dabe)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/torture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 15e8ae9ec8..46bb99d2ea 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -4128,6 +4128,7 @@ static void usage(void)
if (strncmp(argv[1], "ncacn_", 6) == 0) {
lp_set_cmdline("torture:binding", argv[1]);
} else {
+ char *binding = NULL;
if (strncmp(argv[1], "//", 2)) {
usage();
}
@@ -4143,7 +4144,8 @@ static void usage(void)
lp_set_cmdline("torture:host", host);
lp_set_cmdline("torture:share", share);
lp_set_cmdline("torture:password", "");
- lp_set_cmdline("torture:transport", "ncacn_np");
+ asprintf(&binding, "ncacn_np:%s", host);
+ lp_set_cmdline("torture:binding", binding);
}
if (getenv("LOGNAME")) {