Differences From Artifact [65a050e80a]:
- File src/url.c — part of check-in [9f6abc5968] at 2012-08-29 13:57:22 on branch msvc-broken — Allow UTF-8 characters in sources. translate.exe will translate it to ASCII (user: jan.nijtmans size: 11379) [more...]
To Artifact [eb2624cb85]:
- File src/url.c — part of check-in [d1eb341f80] at 2012-08-31 19:57:42 on branch trunk — Avoid prompting for the password for SSH syncs, since the password is never used. Omit debugging output on SSH syncs. (user: drh size: 11399)
| ︙ | |||
388 389 390 391 392 393 394 395 396 397 398 | 388 389 390 391 392 393 394 395 396 397 398 399 | + |
/* Preemptively prompt for a password if a username is given in the
** URL but no password.
*/
void url_get_password_if_needed(void){
if( (g.urlUser && g.urlUser[0])
&& (g.urlPasswd==0 || g.urlPasswd[0]==0)
&& isatty(fileno(stdin))
&& g.urlIsSsh==0
){
url_prompt_for_password();
}
}
|