unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Daiki Ueno <ueno@unixuser.org>
Cc: 7130@debbugs.gnu.org
Subject: bug#7130: 24.0.50; EPA queries twice and doesn't cache passwords when decrypting files
Date: Thu, 30 Sep 2010 08:24:40 +0200	[thread overview]
Message-ID: <201009300824.40732.tassilo@member.fsf.org> (raw)
In-Reply-To: <m3r5gc9dm7.fsf-ueno@unixuser.org>

On Thursday 30 September 2010 04:20:00 Daiki Ueno wrote:

Hi!

> Hrm, I can't reproduce this.  It seems that the only special thing on
> your environment is that your dot-authinfo.gpg is version controlled.

Indeed, that's the cause of the issue.  It has to be version controlled
and already committed (just git-added is not sufficient, but see below).

> However, even if I created a test Git repo and set up the symlink, I
> can by-pass the 2nd password query, if
> epa-file-cache-passphrase-for-symmetric-encryption is set.
> 
> [...]
> 
> Anyway, I added some resources to "(epa)Bug Reports".  Could you
> provide more information to reproduce this?

Sure.

> Ideally, with a script to setup the test environment.  Here are the
> steps I tried:

That script is missing only one line:

> $ mkdir -p /tmp/test && cd /tmp/test
> $ gpg --symmetric > dot-test.gpg < /dev/null
> $ git init
> $ git add dot-test.gpg

$ git commit -m test

> $ cd .. && ln -s test/dot-test.gpg .test.gpg
> $ emacs -Q
> $ M-: (setq epa-file-cache-passphrase-for-symmetric-encryption t)
> $ C-x C-f .test.gpg

Without having the file committed, emacs won't query you if it should
follow a symlink to a git version controlled file, and that seems to
trigger the bug.

Bye,
Tassilo





  reply	other threads:[~2010-09-30  6:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-29  7:33 bug#7130: 24.0.50; EPA queries twice and doesn't cache passwords when decrypting files Tassilo Horn
2010-09-30  2:20 ` Daiki Ueno
2010-09-30  6:24   ` Tassilo Horn [this message]
2010-10-01  2:52     ` Daiki Ueno
2010-10-01 10:14       ` Tassilo Horn
2010-10-01 11:47         ` Daiki Ueno
2010-10-01 21:42           ` Tassilo Horn
2010-10-02  0:23             ` Daiki Ueno
2010-10-02  7:16               ` Tassilo Horn
2010-10-03  9:15                 ` Daiki Ueno
2010-10-04 19:01                   ` Tassilo Horn
2010-10-05  1:58                     ` Daiki Ueno
2010-10-05  6:49                       ` Tassilo Horn

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201009300824.40732.tassilo@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=7130@debbugs.gnu.org \
    --cc=ueno@unixuser.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).