From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: pgg-gpg broken? Date: Thu, 06 Apr 2006 19:13:40 +0900 Message-ID: <5cefc5bf-ec40-4bd4-881e-5b4c177d26c8@well-done.deisui.org> References: <2cd46e7f0510031250u66ea1349yb437d539ce4027ef@mail.gmail.com> <2cd46e7f0510200708x4640d1c2t50743cf439e52dd4@mail.gmail.com> <87pskfq361.fsf@latte.josefsson.org> <877j6mg2af.fsf@latte.josefsson.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1144318447 32082 80.91.229.2 (6 Apr 2006 10:14:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2006 10:14:07 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org, Simon Josefsson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 06 12:14:07 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FRRV8-00012J-0O for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2006 12:14:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRRV7-000587-KU for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2006 06:14:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FRRUv-00057d-CJ for emacs-devel@gnu.org; Thu, 06 Apr 2006 06:13:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FRRUt-00057C-MB for emacs-devel@gnu.org; Thu, 06 Apr 2006 06:13:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRRUt-000578-Ip for emacs-devel@gnu.org; Thu, 06 Apr 2006 06:13:51 -0400 Original-Received: from [210.231.96.69] (helo=well-done.deisui.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FRRYb-0002Py-5i for emacs-devel@gnu.org; Thu, 06 Apr 2006 06:17:41 -0400 Original-Received: from [150.82.173.221] (helo=well-done.deisui.org) by well-done.deisui.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1FRRUl-0007gz-T5; Thu, 06 Apr 2006 19:13:44 +0900 Original-To: Sascha Wilde X-Attribution: DU In-Reply-To: (Sascha Wilde's message of "Thu, 06 Apr 2006 11:58:21 +0200") User-Agent: T-gnus/6.17.2 (based on No Gnus v0.2) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.4 (patch 17) (Jumbo Shrimp) (i686-pc-linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52470 gmane.emacs.gnus.general:62544 Archived-At: >>>>> In >>>>> Sascha Wilde wrote: > Daiki Ueno wrote: > > As I said in the private mail, this is because the pipe is closed after > > cat exits. Could you try this one and see if gpg waits after "[GNUPG:] > > GET_HIDDEN passphrase.enter"? > > > > $ (cat test.msg; sleep 10) | gpg --no-tty --status-fd 1 --command-fd 0 --yes \ > > --output output.txt --decrypt > No, it doesn't -- here is what happens > is seems that gpg detects the end early and uses the rest of the > message as passphrase, which of cause fails... If you have pgpdump installed, you will see what packets are read from the message. Anyway, I'll try to change pgg-gpg-decrypt-region to read a PGP message from a temporary file. Thanks for testing! Regards, -- Daiki Ueno