diff options
Diffstat (limited to 'g10/passphrase.c')
-rw-r--r-- | g10/passphrase.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/g10/passphrase.c b/g10/passphrase.c index 030d801b2..740ac549b 100644 --- a/g10/passphrase.c +++ b/g10/passphrase.c @@ -746,7 +746,16 @@ ask_passphrase (const char *description, *canceled = 0; if (!opt.batch && description) - tty_printf ("\n%s\n",description); + { + if (strchr (description, '%')) + { + char *tmp = unescape_percent_string (description); + tty_printf ("\n%s\n", tmp); + xfree (tmp); + } + else + tty_printf ("\n%s\n",description); + } agent_died: if ( opt.use_agent ) |