From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50382 Path: main.gmane.org!not-for-mail From: frank@kuesterei.ch (Frank =?iso-8859-15?q?K=FCster?=) Newsgroups: gmane.emacs.gnus.general Subject: Bug in pgg-gpg-process-region (was: Problems with signing Mails) Date: Tue, 25 Feb 2003 15:20:25 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <87ptpgigra.fsf_-_@alhambra.bioz.unibas.ch> References: <87u1esbu7t.fsf@alhambra.bioz.unibas.ch> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1046183196 1458 80.91.224.249 (25 Feb 2003 14:26:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2003 14:26:36 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ng2Q-0000N7-00 for ; Tue, 25 Feb 2003 15:26:31 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18ng1t-0002ZJ-00; Tue, 25 Feb 2003 08:25:57 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 25 Feb 2003 08:26:56 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id IAA09622 for ; Tue, 25 Feb 2003 08:26:43 -0600 (CST) Original-Received: (qmail 62939 invoked by alias); 25 Feb 2003 14:25:40 -0000 Original-Received: (qmail 62933 invoked from network); 25 Feb 2003 14:25:39 -0000 Original-Received: from moutng.kundenserver.de (212.227.126.186) by 66.230.238.6 with SMTP; 25 Feb 2003 14:25:39 -0000 Original-Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18ng1Z-00052K-00 for ding@gnus.org; Tue, 25 Feb 2003 15:25:37 +0100 Original-Received: from [131.152.17.45] (helo=alhambra.bioz.unibas.ch) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18ng1Z-000072-00 for ding@gnus.org; Tue, 25 Feb 2003 15:25:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=alhambra.bioz.unibas.ch) by alhambra.bioz.unibas.ch with esmtp (Exim 3.35 #1 (Debian)) id 18nfwY-0001nG-00 for ; Tue, 25 Feb 2003 15:20:26 +0100 Original-To: ding@gnus.org X-Attribution: fant X-Ehrenamt: http://www.langau.de In-Reply-To: (Simon Josefsson's message of "Tue, 25 Feb 2003 14:27:45 +0100") User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50382 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50382 Simon Josefsson schrieb: > frank@kuesterei.ch (Frank K=FCster) writes: > >> Hi, >> >> When I compose a short message to myself and then choose PGP sign, I get >> an error.=20 >> >> 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" "--arm= or" "--batch" "--verbose" "--local-user" "frank@kuesterei.ch")) > > Is your GnuPG configuration kosher? Can you sign on the command line? Yes, without problems.=20 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.=20 ~$ echo 'hel$lo' Seen the problem? I found it out by trying=20 ~$ 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.=20 Bye, Frank --=20 Dr. Frank K=FCster, Biozentrum der Univ. Basel Abt. Biophysikalische Chemie