]> sjero.net Git - wget/commitdiff
Use the quote module for the password prompt.
authorMicah Cowan <micah@cowan.name>
Fri, 16 May 2008 04:06:51 +0000 (21:06 -0700)
committerMicah Cowan <micah@cowan.name>
Fri, 16 May 2008 04:06:51 +0000 (21:06 -0700)
src/ChangeLog
src/main.c

index 5eef2bd6c7fbb4a2150ad08dd635958f48b82b30..c5edf7a32f3eb5693395faa74237a5ef1feb4820 100644 (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>
 
        * ftp.c (ftp_retrieve_list): Symlinks and other filenames
 2008-05-14  Micah Cowan  <micah@cowan.name>
 
        * ftp.c (ftp_retrieve_list): Symlinks and other filenames
index 5fb91664ca65e63ec728550e7caa92c385248dc9..e239b6d009ff0aa71456ed150aacc7a69c585e0b 100644 (file)
@@ -56,7 +56,8 @@ as that of the covered work.  */
 #include "http.h"               /* for save_cookies */
 
 #include <getopt.h>
 #include "http.h"               /* for save_cookies */
 
 #include <getopt.h>
-#include "getpass.h"
+#include <getpass.h>
+#include <quote.h>
 
 #ifndef PATH_SEPARATOR
 # define PATH_SEPARATOR '/'
 
 #ifndef PATH_SEPARATOR
 # define PATH_SEPARATOR '/'
@@ -681,7 +682,7 @@ static char *
 prompt_for_password (void)
 {
   if (opt.user)
 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("");
   else
     printf (_("Password: "));
   return getpass("");