Don't ask twice for the password
authorVolker Lendecke <vlendec@samba.org>
Thu, 14 Aug 2003 21:57:11 +0000 (21:57 +0000)
committerVolker Lendecke <vlendec@samba.org>
Thu, 14 Aug 2003 21:57:11 +0000 (21:57 +0000)
source/client/client.c

index 262ac417981281c0e1f69551d31c64fc6cae4a1b..67fadd11a8022edf70d810743dde1b6e2ddb75c0 100644 (file)
@@ -2572,6 +2572,7 @@ static struct cli_state *do_connect(const char *server, const char *share)
                char *pass = getpass("Password: ");
                if (pass) {
                        pstrcpy(password, pass);
+                       got_pass = 1;
                }
        }