From: Micah Cowan Date: Fri, 16 May 2008 04:06:51 +0000 (-0700) Subject: Use the quote module for the password prompt. X-Git-Tag: v1.13~421^2~12^2~26 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=051528cb8535c53248613bdf82976b345af7532d Use the quote module for the password prompt. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5eef2bd6..c5edf7a3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-05-15 Micah Cowan + + * main.c (prompt_for_password): Use the quote module. + 2008-05-14 Micah Cowan * ftp.c (ftp_retrieve_list): Symlinks and other filenames diff --git a/src/main.c b/src/main.c index 5fb91664..e239b6d0 100644 --- a/src/main.c +++ b/src/main.c @@ -56,7 +56,8 @@ as that of the covered work. */ #include "http.h" /* for save_cookies */ #include -#include "getpass.h" +#include +#include #ifndef PATH_SEPARATOR # define PATH_SEPARATOR '/' @@ -681,7 +682,7 @@ static char * prompt_for_password (void) { if (opt.user) - printf (_("Password for user \"%s\": "), opt.user); + printf (_("Password for user %s: "), quote (opt.user)); else printf (_("Password: ")); return getpass("");