From 1ae406b3f81f6b4e277d495d120b071dffeddfaa Mon Sep 17 00:00:00 2001 From: Kacper Wysocki Date: Thu, 16 Aug 2012 13:47:09 +0200 Subject: [PATCH] go to readonly mode when she is missing keys --- gpg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpg.c b/gpg.c index 6bc04cf..c2c1410 100644 --- a/gpg.c +++ b/gpg.c @@ -979,6 +979,8 @@ int gpgGetRecipients(gpgme_recipient_t recipients, _("unknown recipient id %s"), recipient -> keyid); (showerror_cb)(_("GpgMe recipient error"), tmpbuffer); memFree(__FILE__, __LINE__, tmpbuffer, STDBUFFERLENGTH); + /* user shouldn't write db when she is missing keys */ + runtime->readonly = 1; } recipient = recipient -> next;