From 36b3c9506c1ac5549a38140e7ffd57644290069f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 31 Jul 2013 13:22:10 +0200 Subject: s4:torture/shell: simplify cli_credentials_set_password() call All we want is to avoid a possible callback... Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/torture/shell.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source4/torture/shell.c') diff --git a/source4/torture/shell.c b/source4/torture/shell.c index d6cc94c6655..aa85da3a8fc 100644 --- a/source4/torture/shell.c +++ b/source4/torture/shell.c @@ -110,10 +110,7 @@ void torture_shell(struct torture_context *tctx) * stops the credentials system prompting when we use the "auth" * command to display the current auth parameters. */ - if (cmdline_credentials->password_obtained != CRED_SPECIFIED) { - cli_credentials_set_password(cmdline_credentials, "", - CRED_SPECIFIED); - } + cli_credentials_set_password(cmdline_credentials, "", CRED_GUESS_ENV); while (1) { cline = smb_readline("torture> ", NULL, NULL); -- cgit v1.2.1