From 2853e622483f5f1d2b78e8242bc45168516a44ee Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 3 Feb 2004 21:53:51 +0000 Subject: 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) --- source4/torture/torture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/torture') 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")) { -- cgit