From: Andrew Bartlett Date: Tue, 3 Feb 2004 21:53:51 +0000 (+0000) Subject: This would appear to restore smbtorture to be able to use the syntax X-Git-Tag: samba-4.0.0alpha6~801^3~14782 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=2853e622483f5f1d2b78e8242bc45168516a44ee 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) --- diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 15e8ae9ec89..46bb99d2eac 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")) {