Remove the global "struct cm_cred_struct" and associated calls, make
[abartlet/samba.git/.git] / source3 / utils / smbtree.c
index 6c69300e85b205c6125749f6a8a850c5d5600f09..02001f0abbdfce1dddfbce21346bd97dc3b214b2 100644 (file)
@@ -315,12 +315,7 @@ static bool print_tree(struct user_auth_info *user_info)
                return 1;
        }
 
-       if (!get_cmdline_auth_info_got_pass(auth_info)) {
-               char *pass = getpass("Password: ");
-               if (pass) {
-                       set_cmdline_auth_info_password(auth_info, pass);
-               }
-       }
+       set_cmdline_auth_info_getpass(auth_info);
 
        /* Now do our stuff */