aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index ed81c4a03..ea3bcf2b8 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -751,10 +751,11 @@ sign_uids (ctrl_t ctrl, estream_t fp,
_("\"%s\" was already signed by key %s\n"),
user, keystr_from_pk (pk));
- if (opt.expert && !quick
- && cpr_get_answer_is_yes ("sign_uid.dupe_okay",
- _("Do you want to sign it "
- "again anyway? (y/N) ")))
+ if (opt.flags.force_sign_key
+ || (opt.expert && !quick
+ && cpr_get_answer_is_yes ("sign_uid.dupe_okay",
+ _("Do you want to sign it "
+ "again anyway? (y/N) "))))
{
/* Don't delete the old sig here since this is
an --expert thing. */