1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Handle Ctrl-D, empty password.

This commit is contained in:
Micah Cowan 2008-05-17 13:01:06 -07:00
parent 66517821ee
commit c3bd5412a8
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-05-17 Micah Cowan <micah@cowan.name>
* main.c (main): Handle Ctrl-D on command-line.
2008-05-15 Steven Schubiger <schubiger@gmail.com>
* ftp.c (getftp): Verify that the file actually exists in FTP, by

View File

@ -1031,7 +1031,12 @@ for details.\n\n"));
int dt;
if (opt.ask_passwd)
opt.passwd = prompt_for_password ();
{
opt.passwd = prompt_for_password ();
if (opt.passwd == NULL || opt.passwd[0] == '\0')
exit (1);
}
if ((opt.recursive || opt.page_requisites)
&& (url_scheme (*t) != SCHEME_FTP || url_uses_proxy (*t)))