[Pkg-gnupg-commit] [gnupg2] 103/118: gpg: Emit a new error status line in --quick-adduid.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 15 18:25:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch encoding-and-speling
in repository gnupg2.

commit f4e11f2e9e8f58fd5f0df3148e6d7ccef0f84232
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Sep 14 10:59:18 2016 +0200

    gpg: Emit a new error status line in --quick-adduid.
    
    * g10/keyedit.c (menu_adduid): Emit an ERROR status for an existsing
    user id.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 g10/keyedit.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/g10/keyedit.c b/g10/keyedit.c
index baee180..25f61ec 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -4308,7 +4308,10 @@ menu_adduid (ctrl_t ctrl, kbnode_t pub_keyblock,
   if (!uid)
     {
       if (uidstring)
-        log_error ("%s", _("Such a user ID already exists on this key!\n"));
+        {
+          write_status_error ("adduid", gpg_error (304));
+          log_error ("%s", _("Such a user ID already exists on this key!\n"));
+        }
       return 0;
     }
 

-- 
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