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

Use the quote module for the password prompt.

This commit is contained in:
Micah Cowan 2008-05-15 21:06:51 -07:00
parent ec84142901
commit 051528cb85
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-05-15 Micah Cowan <micah@cowan.name>
* main.c (prompt_for_password): Use the quote module.
2008-05-14 Micah Cowan <micah@cowan.name> 2008-05-14 Micah Cowan <micah@cowan.name>
* ftp.c (ftp_retrieve_list): Symlinks and other filenames * ftp.c (ftp_retrieve_list): Symlinks and other filenames

View File

@ -56,7 +56,8 @@ as that of the covered work. */
#include "http.h" /* for save_cookies */ #include "http.h" /* for save_cookies */
#include <getopt.h> #include <getopt.h>
#include "getpass.h" #include <getpass.h>
#include <quote.h>
#ifndef PATH_SEPARATOR #ifndef PATH_SEPARATOR
# define PATH_SEPARATOR '/' # define PATH_SEPARATOR '/'
@ -681,7 +682,7 @@ static char *
prompt_for_password (void) prompt_for_password (void)
{ {
if (opt.user) if (opt.user)
printf (_("Password for user \"%s\": "), opt.user); printf (_("Password for user %s: "), quote (opt.user));
else else
printf (_("Password: ")); printf (_("Password: "));
return getpass(""); return getpass("");