This would appear to restore smbtorture to be able to use the syntax
authorAndrew Bartlett <abartlet@samba.org>
Tue, 3 Feb 2004 21:53:51 +0000 (21:53 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Feb 2004 21:53:51 +0000 (21:53 +0000)
documented in it's self-help for RPC tests.

Andrew Bartlett

source/torture/torture.c

index 15e8ae9ec89095804c5501e103419673ac1e0b5e..46bb99d2eac380748e0c8e4eafb72763f82a0006 100644 (file)
@@ -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")) {