GNU bug report logs - #12923
24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Oleksandr Gavenko <gavenkoa@HIDDEN>; dated Sun, 18 Nov 2012 13:44:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 12923 <at> debbugs.gnu.org:


Received: (at 12923) by debbugs.gnu.org; 21 Nov 2012 14:02:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 21 09:02:17 2012
Received: from localhost ([127.0.0.1]:58400 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TbAsa-0002J3-LO
	for submit <at> debbugs.gnu.org; Wed, 21 Nov 2012 09:02:17 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:26985)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1TbAsY-0002Iw-Nc
	for 12923 <at> debbugs.gnu.org; Wed, 21 Nov 2012 09:02:14 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FpaQ6/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNAcLFBgNJIgcBboJkEQDiEKacYFYgwc
X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="208118167"
Received: from 69-165-164-58.dsl.teksavvy.com (HELO pastel.home)
	([69.165.164.58])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	21 Nov 2012 09:00:59 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id F3973597C9; Wed, 21 Nov 2012 09:00:58 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Daiki Ueno <ueno@HIDDEN>
Subject: Re: bug#12923: 24.2;
	epa-file--find-file-not-found-function: Opening input file: Can't
	decrypt, Exit
Message-ID: <jwvwqxfjbwp.fsf-monnier+emacs@HIDDEN>
References: <87haon10zw.fsf@HIDDEN>
	<m3k3tgwwz0.fsf-ueno@HIDDEN>
	<878v9w6t69.fsf@HIDDEN>
	<87lidw54hx.fsf-ueno@HIDDEN>
Date: Wed, 21 Nov 2012 09:00:58 -0500
In-Reply-To: <87lidw54hx.fsf-ueno@HIDDEN> (Daiki Ueno's message of "Wed, 
	21 Nov 2012 06:49:46 +0900")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 12923
Cc: 12923 <at> debbugs.gnu.org, Oleksandr Gavenko <gavenkoa@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.8 (/)

> If the above magic works well for typical use-cases, it might be worth
> adding them to Emacs too.

I took this bug-report to say "make sure that we handle .gpg files in
a file-safe way, showing the raw-bytes if we can't show the decrypted
content".  So rather than try to detect that we have a keyring, we
should just try to decrypt and look at the resulting error
(which should hopefully be different for "bad decryption key" than it
is for "trying to decrypt something else (e.g. a keyring file)").


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12923; Package emacs. Full text available.

Message received at 12923 <at> debbugs.gnu.org:


Received: (at 12923) by debbugs.gnu.org; 21 Nov 2012 01:13:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 20 20:13:39 2012
Received: from localhost ([127.0.0.1]:57585 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Taysk-0001S1-O0
	for submit <at> debbugs.gnu.org; Tue, 20 Nov 2012 20:13:39 -0500
Received: from du-a.org ([219.94.251.20]:57398 helo=www6246ue.sakura.ne.jp)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <ueno@HIDDEN>) id 1Taysi-0001Rr-0O
	for 12923 <at> debbugs.gnu.org; Tue, 20 Nov 2012 20:13:38 -0500
Message-ID: <m3wqxfg3nz.fsf-ueno@HIDDEN>
From: Daiki Ueno <ueno@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#12923: 24.2;
	epa-file--find-file-not-found-function: Opening input file: Can't
	decrypt, Exit
References: <87haon10zw.fsf@HIDDEN>
	<m3k3tgwwz0.fsf-ueno@HIDDEN>
	<878v9w6t69.fsf@HIDDEN>
	<87lidw54hx.fsf-ueno@HIDDEN>
Date: Wed, 21 Nov 2012 10:12:16 +0900
In-Reply-To: <87lidw54hx.fsf-ueno@HIDDEN> (Daiki Ueno's message of "Wed, 
	21 Nov 2012 06:49:46 +0900")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 12923
Cc: 12923 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.0 (/)

Daiki Ueno <ueno@HIDDEN> writes:

> If the above magic works well for typical use-cases,

Unfortunately it seems not:

$ gpg --output sym.gpg --symmetric < /dev/null
$ file sym.gpg
sym.gpg: DOS executable (COM)

$ gpg --output pub.gpg -r ueno@HIDDEN --encrypt < /dev/null
$ file pub.gpg
pub.gpg: data

$ file ~/.gnupg/pubring.gpg
/home/ueno/.gnupg/pubring.gpg: GPG key public ring




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12923; Package emacs. Full text available.

Message received at 12923 <at> debbugs.gnu.org:


Received: (at 12923) by debbugs.gnu.org; 20 Nov 2012 21:51:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 20 16:51:03 2012
Received: from localhost ([127.0.0.1]:57476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Tavih-0005MY-5W
	for submit <at> debbugs.gnu.org; Tue, 20 Nov 2012 16:51:03 -0500
Received: from du-a.org ([219.94.251.20]:57393 helo=www6246ue.sakura.ne.jp)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <ueno@HIDDEN>) id 1Tavie-0005M9-A0
	for 12923 <at> debbugs.gnu.org; Tue, 20 Nov 2012 16:51:02 -0500
Message-ID: <87lidw54hx.fsf-ueno@HIDDEN>
From: Daiki Ueno <ueno@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#12923: 24.2;
	epa-file--find-file-not-found-function: Opening input file: Can't
	decrypt, Exit
References: <87haon10zw.fsf@HIDDEN>
	<m3k3tgwwz0.fsf-ueno@HIDDEN>
	<878v9w6t69.fsf@HIDDEN>
Date: Wed, 21 Nov 2012 06:49:46 +0900
In-Reply-To: <878v9w6t69.fsf@HIDDEN> (Oleksandr Gavenko's
	message of "Tue, 20 Nov 2012 20:11:26 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 12923
Cc: 12923 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.8 (/)

Oleksandr Gavenko <gavenkoa@HIDDEN> writes:

> So Emacs break some usual convention used by gpg about .gpg extension...
>
>   $ file /home/user/.gnupg/pubring.gpg
>   /home/user/.gnupg/pubring.gpg: GPG key public ring

Oh, I didn't know that the file command defines such a magic:

# GnuPG
# The format is very similar to pgp
0       string          \001gpg                 GPG key trust database
>4      byte            x                       version %d
# Note: magic.mime had 0x8501 for the next line instead of 0x8502
0       beshort         0x8502                  GPG encrypted data
!:mime  text/PGP # encoding: data

# This magic is not particularly good, as the keyrings don't have true
# magic. Nevertheless, it covers many keyrings.
0       beshort         0x9901                  GPG key public ring
!:mime  application/x-gnupg-keyring

> I expect that Emacs open this file in any case (ever if it doesn't support
> some "standard" .gpg format - open it literary as fall back!).

The rationale of the current behavior (try decryption only) was that a
.gpg file may contain GPG packets which can have any type of GPG data
(encrypted, signed, public keys, ...) in theory.

If the above magic works well for typical use-cases, it might be worth
adding them to Emacs too.

Regards,
-- 
Daiki Ueno




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12923; Package emacs. Full text available.

Message received at 12923 <at> debbugs.gnu.org:


Received: (at 12923) by debbugs.gnu.org; 20 Nov 2012 18:12:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 20 13:12:43 2012
Received: from localhost ([127.0.0.1]:57235 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TasJP-0007tY-AW
	for submit <at> debbugs.gnu.org; Tue, 20 Nov 2012 13:12:43 -0500
Received: from mail-ee0-f44.google.com ([74.125.83.44]:53928)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <gavenkoa@HIDDEN>) id 1TasJN-0007tQ-7E
	for 12923 <at> debbugs.gnu.org; Tue, 20 Nov 2012 13:12:42 -0500
Received: by mail-ee0-f44.google.com with SMTP id b47so3970489eek.3
	for <12923 <at> debbugs.gnu.org>; Tue, 20 Nov 2012 10:11:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:organization:references:date:in-reply-to
	:message-id:user-agent:mime-version:content-type;
	bh=X7RaHFFzJBQngRk5JEqUvfA+vPdL+xbOVT2EOYYQjJ8=;
	b=hzJRvDHdNqBKwQfftO0N+lMf0YOodFvU4XY/YdQGBWnT7kbr9gWQFNn/ld4BJf10y/
	fn0LLTil9r2IP1HrLYSCJiAv1LZNxyOX/kpJ1Hh2/SdeCuEdOOft+L6Z+KgRwE/vDWzu
	56CC4MThCHyPZ1Ry74FngatIVrcb+aQExWtYlKk70DVPwgBVg412ggsu+fDo1m3zhqLc
	OZI/s92TCNTXX2/wSGwYZOcr6ZZx4ff4VhzB/YA6tE0Z6mj3/TiJ6sUw1DR8ibPOVj18
	4e81Aq1zjON6pn2npW4NsX50d60S8gFHSxvS/wDc7gvNJxq4YcpHCafFsgJfADRJzy8R
	aZ+w==
Received: by 10.14.221.5 with SMTP id q5mr2144545eep.33.1353435090139;
	Tue, 20 Nov 2012 10:11:30 -0800 (PST)
Received: from desktop ([37.229.16.202])
	by mx.google.com with ESMTPS id b44sm31908147eep.12.2012.11.20.10.11.27
	(version=SSLv3 cipher=OTHER); Tue, 20 Nov 2012 10:11:28 -0800 (PST)
From: Oleksandr Gavenko <gavenkoa@HIDDEN>
To: Daiki Ueno <ueno@HIDDEN>
Subject: Re: bug#12923: 24.2;
	epa-file--find-file-not-found-function: Opening input file: Can't
	decrypt, Exit
Organization: Oleksandr Gavenko <gavenkoa@HIDDEN>,
	http://gavenkoa.users.sf.net
References: <87haon10zw.fsf@HIDDEN>
	<m3k3tgwwz0.fsf-ueno@HIDDEN>
Date: Tue, 20 Nov 2012 20:11:26 +0200
In-Reply-To: <m3k3tgwwz0.fsf-ueno@HIDDEN> (Daiki Ueno's message of "Tue, 
	20 Nov 2012 16:32:35 +0900")
Message-ID: <878v9w6t69.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 12923
Cc: 12923 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

On 2012-11-20, Daiki Ueno wrote:

> Oleksandr Gavenko <gavenkoa@HIDDEN> writes:
>
>> When I try open any .gpg files I get error:
>
> Correction: "open existing, not encrypted .gpg files"
>
Yes!

>> Root of issue come from Emacs call:
>>
>>   $ gpg "--no-tty" "--status-fd" "1" "--yes" "--enable-progress-filter" \
>>   "--command-fd" "0" "--output" "/tmp/epg-output3999nru" \
>>   "--decrypt" "--" "/home/user/.gnupg/pubring.gpg"
>
>> So this error occur on opening files with '.gpg' extension.
>
> So what do you want instead?  I think you get a similar error when
> opening a .tar.gz file which is not a gzip compressed tar archive.
>
> If you want to edit the binary contents, you can use M-x
> find-file-literally.  If you want to browse your keyring, you can use
> M-x epa-list-keys.

My point that this file created by:

  $ gpg --version
  gpg (GnuPG) 1.4.12

from Debian distribution and I don't take .gpg extension to them personally
(this do gpg privately without my knowledge):

  $ ls ~/.gnupg/*.gpg
  /home/user/.gnupg/pubring.gpg
  /home/user/.gnupg/secring.gpg
  /home/user/.gnupg/trustdb.gpg

So Emacs break some usual convention used by gpg about .gpg extension...

  $ file /home/user/.gnupg/pubring.gpg
  /home/user/.gnupg/pubring.gpg: GPG key public ring

I expect that Emacs open this file in any case (ever if it doesn't support
some "standard" .gpg format - open it literary as fall back!).

-- 
Best regards!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12923; Package emacs. Full text available.

Message received at 12923 <at> debbugs.gnu.org:


Received: (at 12923) by debbugs.gnu.org; 20 Nov 2012 07:33:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 20 02:33:57 2012
Received: from localhost ([127.0.0.1]:56139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TaiLD-0008FX-QU
	for submit <at> debbugs.gnu.org; Tue, 20 Nov 2012 02:33:57 -0500
Received: from du-a.org ([219.94.251.20]:57378 helo=www6246ue.sakura.ne.jp)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <ueno@HIDDEN>) id 1TaiL9-0008FN-Jj
	for 12923 <at> debbugs.gnu.org; Tue, 20 Nov 2012 02:33:54 -0500
Message-ID: <m3k3tgwwz0.fsf-ueno@HIDDEN>
From: Daiki Ueno <ueno@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#12923: 24.2;
	epa-file--find-file-not-found-function: Opening input file: Can't
	decrypt, Exit
References: <87haon10zw.fsf@HIDDEN>
Date: Tue, 20 Nov 2012 16:32:35 +0900
In-Reply-To: <87haon10zw.fsf@HIDDEN> (Oleksandr Gavenko's
	message of "Sun, 18 Nov 2012 15:42:11 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 12923
Cc: 12923 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.8 (/)

Oleksandr Gavenko <gavenkoa@HIDDEN> writes:

> When I try open any .gpg files I get error:

Correction: "open existing, not encrypted .gpg files"

> Root of issue come from Emacs call:
>
>   $ gpg "--no-tty" "--status-fd" "1" "--yes" "--enable-progress-filter" \
>   "--command-fd" "0" "--output" "/tmp/epg-output3999nru" \
>   "--decrypt" "--" "/home/user/.gnupg/pubring.gpg"

> So this error occur on opening files with '.gpg' extension.

So what do you want instead?  I think you get a similar error when
opening a .tar.gz file which is not a gzip compressed tar archive.

If you want to edit the binary contents, you can use M-x
find-file-literally.  If you want to browse your keyring, you can use
M-x epa-list-keys.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12923; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Nov 2012 13:43:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 18 08:43:30 2012
Received: from localhost ([127.0.0.1]:52387 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ta59l-00044D-E6
	for submit <at> debbugs.gnu.org; Sun, 18 Nov 2012 08:43:30 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54190)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <gavenkoa@HIDDEN>) id 1Ta59e-000442-VN
	for submit <at> debbugs.gnu.org; Sun, 18 Nov 2012 08:43:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Ta58f-0007m1-Oj
	for submit <at> debbugs.gnu.org; Sun, 18 Nov 2012 08:42:24 -0500
Received: from lists.gnu.org ([208.118.235.17]:38624)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Ta58f-0007lx-MA
	for submit <at> debbugs.gnu.org; Sun, 18 Nov 2012 08:42:21 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35368)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Ta58c-00025p-Jl
	for bug-gnu-emacs@HIDDEN; Sun, 18 Nov 2012 08:42:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Ta58Z-0007lA-HP
	for bug-gnu-emacs@HIDDEN; Sun, 18 Nov 2012 08:42:18 -0500
Received: from mail-ee0-f41.google.com ([74.125.83.41]:60515)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Ta58Z-0007kw-5m
	for bug-gnu-emacs@HIDDEN; Sun, 18 Nov 2012 08:42:15 -0500
Received: by mail-ee0-f41.google.com with SMTP id d41so2813358eek.0
	for <bug-gnu-emacs@HIDDEN>; Sun, 18 Nov 2012 05:42:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:subject:date:message-id:mime-version:content-type;
	bh=j8rnLqUS+NAVy/ipZOr0SHiwp8BIfiPgl+RcnQ7Ou60=;
	b=vVKja35of8ad9UItKHQZJ2TGBgbzlMC8Yp3mVn2xRLY3u74Tuc9fuQhtmoUF/MO8lX
	657HLaX2jyqjlb37naYWTUP7W9Wip93ZoQAA5WzX7nfgfoKjHqo45OL0tTnGI3lurEPc
	wsTitlAW5VuUYzxr7TkAo1OLTPz5TCsQu/l4UjdKB0yYi5+dSFsPFuWDwyhZSTynDkyh
	SXbr8yO9BFPSpvuP60ZPHGFQG0unvyfxjqyMEqxrlzUVbTyDqyVWh8GsiC1J50y0Aotd
	4xZW0TrolVM+LpLrzKEF05zVwfaq1V8f4Vf8BPh9CcbpI5UNu3s7jNQGH3jgu7RLBhcf
	/kUA==
Received: by 10.14.175.198 with SMTP id z46mr15021049eel.26.1353246134034;
	Sun, 18 Nov 2012 05:42:14 -0800 (PST)
Received: from desktop ([37.229.16.202])
	by mx.google.com with ESMTPS id f3sm17549027eeo.13.2012.11.18.05.42.12
	(version=SSLv3 cipher=OTHER); Sun, 18 Nov 2012 05:42:13 -0800 (PST)
From: Oleksandr Gavenko <gavenkoa@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.2;
	epa-file--find-file-not-found-function: Opening input file: Can't
	decrypt, Exit
Date: Sun, 18 Nov 2012 15:42:11 +0200
Message-ID: <87haon10zw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

When I try open any .gpg files I get error:

  epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit

Root of issue come from Emacs call:

  $ gpg "--no-tty" "--status-fd" "1" "--yes" "--enable-progress-filter" \
  "--command-fd" "0" "--output" "/tmp/epg-output3999nru" \
  "--decrypt" "--" "/home/user/.gnupg/pubring.gpg"

  gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/user/.gnupg/gpg.conf'
  [GNUPG:] PROGRESS /home/user/.gnupg/pu ? 0 22238
  [GNUPG:] UNEXPECTED 0
  gpg: decrypt_message failed: unexpected data

from call stack:

  epa-file-insert-file-contents --> epg-decrypt-file
    --> epg-start-decrypt --> epg--start
	--> (setq process
          (apply #'start-process "epg" buffer
		       (if (eq (epg-context-protocol context) 'CMS)
			   epg-gpgsm-program
			 epg-gpg-program)
		       args))

So this error occur on opening files with '.gpg' extension.

See also:

  http://unix.stackexchange.com/questions/28330/emacs-auto-encryption-and-gpg

  http://comments.gmane.org/gmane.emacs.bugs/38903
                gnupg support is no longer able to create .gpg files from
                scratch

================================================================

In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-09-09 on trouble, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.2/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  desktop-save-mode: t
  which-function-mode: t
  auto-image-file-mode: t
  icomplete-mode: t
  iswitchb-mode: t
  show-paren-mode: t
  global-hl-line-mode: t
  delete-selection-mode: t
  global-hi-lock-mode: t
  display-time-mode: t
  recentf-mode: t
  yas/global-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Decrypting /home/user/.gnupg/pubring.gpg...0%
epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Unexpected; Exit

Load-path shadows:
/usr/share/emacs/24.2/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs/24.2/site-lisp/cscope/xcscope hides /usr/share/emacs/site-lisp/xcscope
/usr/share/emacs24/site-lisp/quilt-el/quilt hides /usr/share/emacs/site-lisp/quilt
/usr/share/emacs24/site-lisp/flim/md4 hides /usr/share/emacs/24.2/lisp/md4
/usr/share/emacs24/site-lisp/flim/hex-util hides /usr/share/emacs/24.2/lisp/hex-util
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.2/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.2/lisp/textmodes/flyspell
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.2/lisp/textmodes/rst
/usr/share/emacs24/site-lisp/flim/ntlm hides /usr/share/emacs/24.2/lisp/net/ntlm
/usr/share/emacs24/site-lisp/flim/hmac-def hides /usr/share/emacs/24.2/lisp/net/hmac-def
/usr/share/emacs24/site-lisp/flim/sasl hides /usr/share/emacs/24.2/lisp/net/sasl
/usr/share/emacs24/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.2/lisp/net/sasl-digest
/usr/share/emacs24/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.2/lisp/net/hmac-md5
/usr/share/emacs24/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.2/lisp/net/sasl-cram
/usr/share/emacs24/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.2/lisp/net/sasl-ntlm
/usr/share/emacs24/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/24.2/lisp/language/thai-word
/usr/share/emacs24/site-lisp/emms/tq hides /usr/share/emacs/24.2/lisp/emacs-lisp/tq
/usr/share/emacs/site-lisp/emacs-jabber/srv hides /home/user/usr/share/emacs/site-lisp/srv
/usr/share/emacs/24.2/lisp/emacs-lisp/ert hides /home/user/usr/share/emacs/site-lisp/nxhtml/tests/ert
/home/user/usr/share/emacs/site-lisp/rnc-mode hides /home/user/usr/share/emacs/site-lisp/nxhtml/util/rnc-mode
/usr/share/emacs/24.2/lisp/emacs-lisp/chart hides /home/user/usr/share/emacs/site-lisp/nxhtml/util/chart
/usr/share/emacs/24.2/lisp/htmlfontify hides /home/user/usr/share/emacs/site-lisp/nxhtml/util/htmlfontify

Features:
(shadow emacsbug log-view find-dired grep cl-specs edebug debug diff-mode
vc-git vc-bzr vc-sccs vc-cvs vc-rcs vc-dir ewoc dired-aux debian-copyright
readme-debian debian-changelog-mode tar-mode deb-view shell dabbrev term ehelp
electric tabify man generic apt-utils log-edit pcvs-util add-log vc ediff-merg
ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff
epa-file epa epg reporter debian-bug canlock quail help-mode view newcomment
browse-url url-util url-handlers url-parse url-vars qp misearch multi-isearch
pp time-stamp nnfolder mailalias smtpmail sendmail sort smiley gnus-cite
mail-extr gnus-async gnus-bcklg gnus-ml gnus-topic utf-7 nndraft nnmh gnutls
network-stream auth-source eieio starttls nnimap parse-time tls utf7 netrc
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu
mml2015 epg-config mm-view mml-smime smime password-cache dig mailcap
gnus-cache gnus-sum doc-view image-mode rnc-mode make-mode nxml-uchnm rng-xsd
xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse
rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap
nxml-util nxml-glyph nxml-enc xmltok rst flyspell ispell sh-script executable
vc-dispatcher vc-svn eldoc python-21 python sgml-mode vc-hg org-wl org-w3m
org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html
org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-gnus
org-docview org-bibtex bibtex org-bbdb wesnoth-mode wesnoth-wml-data
wesnoth-update dictem fvwm-mode desktop ropemacs pymacs cwarn cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
which-func imenu gnus-demon nntp gnus-group gnus-undo nnmail mail-source
gnus-start gnus-spec gnus-win nnoo gnus-int gnus-range message rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems nnheader gnus-util
mail-utils mm-util mail-prsvr ecomplete org-remember org-datetree org byte-opt
warnings bytecomp byte-compile cconv macroexp ob-emacs-lisp ob-tangle ob-ref
ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval
org-pcomplete pcomplete org-list org-faces org-compat org-entities org-macs
noutline outline format-spec cal-menu calendar cal-loaddefs remember jdone
image-file jka-compr ls-lisp ffap dired saveplace icomplete uniquify iswitchb
paren hl-line delsel hi-lock generic-x disp-table server time avoid recentf
tree-widget wid-edit autoload-my etags-select etags-table etags debian-el
debian-el-loaddefs advice advice-preload yasnippet help-fns derived edmacro
kmacro easymenu assoc w3m-load slime-autoloads compile comint regexp-opt
ansi-color ring mmm-auto mmm-vars mmm-compat cl emms-auto jabber-autoloads
emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode
dpkg-dev-el dpkg-dev-el-loaddefs time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)

-- 
Best regards!




Acknowledgement sent to Oleksandr Gavenko <gavenkoa@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#12923; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.