aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index ad53c37bb..7ae006a68 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -306,8 +306,11 @@ sign_uids( KBNODE keyblock, STRLIST locusr, int *ret_modified, int local )
tty_printf(
_("The signature will be marked as non-exportable.\n\n"));
- if( !cpr_get_answer_is_yes("sign_uid.okay", _("Really sign? ")) )
- continue;;
+
+ if( opt.batch && opt.answer_yes )
+ ;
+ else if( !cpr_get_answer_is_yes("sign_uid.okay", _("Really sign? ")) )
+ continue;
/* now we can sign the user ids */
reloop: /* (must use this, because we are modifing the list) */
primary_pk = NULL;