From: frank@kuesterei.ch (Frank Küster)
Subject: Bug in pgg-gpg-process-region (was: Problems with signing Mails)
Date: Tue, 25 Feb 2003 15:20:25 +0100 [thread overview]
Message-ID: <87ptpgigra.fsf_-_@alhambra.bioz.unibas.ch> (raw)
In-Reply-To: <iluvfz85w32.fsf@latte.josefsson.org> (Simon Josefsson's message of "Tue, 25 Feb 2003 14:27:45 +0100")
Simon Josefsson <jas@extundo.com> schrieb:
> frank@kuesterei.ch (Frank Küster) writes:
>
>> Hi,
>>
>> When I compose a short message to myself and then choose PGP sign, I get
>> an error.
>>
>> It asks me for my Passphrase, and then I get an error message with the
>> following backtrace:
>>
>> Debugger entered--Lisp error: (error "gpg exited abnormally: '2'")
>> signal(error ("gpg exited abnormally: '2'"))
>> error("%s exited abnormally: '%s'" "gpg" 2)
>> pgg-gpg-process-region(1 9 "XXXXXXXXXXXXX" "gpg" ("--clearsign" "--armor" "--batch" "--verbose" "--local-user" "frank@kuesterei.ch"))
>
> Is your GnuPG configuration kosher? Can you sign on the command line?
Yes, without problems.
I now found out where the error comes from. The passphrase that Gnus
passes to gpg should be enclosed in '' to prevent any shell action on
it.
Try
~$ echo "hel$lo"
vs.
~$ echo 'hel$lo'
Seen the problem? I found it out by trying
~$ echo "Mypass$phrase" | gpg --status-fd 2 --passphrase-fd 0 \
--output gpg.out --clearsign --armor --batch --verbose \
--local-user frank@kuesterei.ch netenv.conf; echo $?
which should be exactly the call Gnus does. With echo 'Mypass$phrase' it
works. But I guess it's better to check with any character that's
allowed in passphrases. I checked that redirection signs are no problem.
Unfortunately, I do not dare to code this in Lisp, so I can't provide a
patch.
Bye, Frank
--
Dr. Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
next prev parent reply other threads:[~2003-02-25 14:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-25 9:11 Problems with signing Mails Frank Küster
2003-02-25 13:27 ` Simon Josefsson
2003-02-25 14:20 ` Frank Küster [this message]
2003-02-27 16:51 ` Bug in pgg-gpg-process-region Frank Küster
2003-02-27 21:44 ` Kai Großjohann
2003-02-28 9:39 ` Frank Küster
2003-02-28 13:04 ` Kai Großjohann
2003-02-27 23:56 ` Satyaki Das
2003-02-28 9:37 ` Frank Küster
2003-02-28 18:04 ` Satyaki Das
2003-03-03 9:19 ` Frank Küster
2003-03-18 13:18 ` Frank Küster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ptpgigra.fsf_-_@alhambra.bioz.unibas.ch \
--to=frank@kuesterei.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).