[Pkg-gnupg-commit] [gnupg2] 110/241: gpg: Indicate which characters are invalid.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Dec 9 20:32:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit a958ffd148a46f3757d1c309bb13555638044640
Author: Neal H. Walfield <neal at g10code.com>
Date: Thu Nov 5 14:31:58 2015 +0100
gpg: Indicate which characters are invalid.
* g10/keygen.c (ask_user_id): Indicate which characters are invalid.
--
Signed-off-by: Neal H. Walfield <neal at g10code.com>
GnuPG-bug-id: 1143
---
g10/keygen.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/g10/keygen.c b/g10/keygen.c
index 85bbe13..70d351d 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -2536,7 +2536,10 @@ ask_user_id (int mode, int full, KBNODE keyblock)
break;
if( strpbrk( aname, "<>" ) )
+ {
tty_printf(_("Invalid character in name\n"));
+ tty_printf(_("The characters < and > may not appear in name\n"));
+ }
else if( digitp(aname) )
tty_printf(_("Name may not start with a digit\n"));
else if( strlen(aname) < 5 )
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list