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:
parent
66517821ee
commit
c3bd5412a8
@ -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
|
||||
|
@ -1031,8 +1031,13 @@ for details.\n\n"));
|
||||
int dt;
|
||||
|
||||
if (opt.ask_passwd)
|
||||
{
|
||||
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)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user