s4:torture/shell: simplify cli_credentials_set_password() call
authorStefan Metzmacher <metze@samba.org>
Wed, 31 Jul 2013 11:22:10 +0000 (13:22 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 5 Aug 2013 05:48:03 +0000 (17:48 +1200)
All we want is to avoid a possible callback...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/shell.c

index d6cc94c6655cc56faf6b0277e55f345bdc558c20..aa85da3a8fc9539a09ff9780706c18e997bfaab7 100644 (file)
@@ -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.
         */
         * 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);
 
        while (1) {
                cline = smb_readline("torture> ", NULL, NULL);