From 051528cb8535c53248613bdf82976b345af7532d Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Thu, 15 May 2008 21:06:51 -0700 Subject: [PATCH] Use the quote module for the password prompt. --- src/ChangeLog | 4 ++++ src/main.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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(""); -- 2.39.2