GNU bug report logs -
#30363
26.0.91; epa-decrypt-file not using epa-pinentry-mode
Previous Next
Reported by: Rajeev Narang <rajeev.narang <at> gmail.com>
Date: Tue, 6 Feb 2018 01:56:02 UTC
Severity: normal
Tags: fixed
Found in version 26.0.91
Fixed in versions 26.2, 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30363 in the body.
You can then email your comments to 30363 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30363
; Package
emacs
.
(Tue, 06 Feb 2018 01:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Rajeev Narang <rajeev.narang <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 06 Feb 2018 01:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
(setq epa-pinentry-mode 'loopback)
epa-decrypt-file (:d in dired mode) does not ask for the password in the minibuffer.
in comparison, epa-sign-region does ask for the password in the minibuffer.
In GNU Emacs 26.0.91 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
of 2018-02-03 built on hp
Repository revision: f589f5ae6e19210b8520526fa3111243ca446b02
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9.3 (stretch)
Recent messages:
Expiring articles...
Deleting articles...done
Expiring articles...done
(No changes need to be saved)
No news is good news
Running git --no-pager update-index --refresh . in background... done
Running git --no-pager diff-index --relative -z -M HEAD -- . in background... done
Running git --no-pager ls-files -z -c -s -- . in background... done
Running git --no-pager ls-files -z -o --directory --no-empty-directory --exclude-standard -- . in background... done
Hiding up-to-date and ignored items
Quit
Configured using:
'configure --prefix=/home/rajeev/tmp/build/emacs --with-modules
--with-x-toolkit --with-xwidgets 'CPPFLAGS= -I/usr/local/include
-I/usr/include/dvdnav' 'LDFLAGS= -L/usr/local/lib''
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
MODULES THREADS XWIDGETS LCMS2
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Shell
Minor modes in effect:
dirtrack-mode: t
editorconfig-mode: t
global-semanticdb-minor-mode: t
global-semantic-idle-scheduler-mode: t
semantic-mode: t
erc-list-mode: t
erc-menu-mode: t
erc-autojoin-mode: t
erc-ring-mode: t
erc-pcomplete-mode: t
erc-track-mode: t
erc-button-mode: t
erc-fill-mode: t
erc-stamp-mode: t
erc-netsplit-mode: t
erc-notifications-mode: t
erc-match-mode: t
erc-services-mode: t
erc-networks-mode: t
erc-irccontrols-mode: t
erc-noncommands-mode: t
erc-move-to-prompt-mode: t
erc-readonly-mode: t
diff-auto-refine-mode: t
buffer-face-mode: t
jabber-activity-mode: t
shell-dirtrack-mode: t
xterm-mouse-mode: t
which-function-mode: t
icomplete-mode: t
global-auto-revert-mode: t
cl-old-struct-compat-mode: t
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
abbrev-mode: t
Load-path shadows:
None found.
Features:
(shadow emacsbug epa-dired epa-file tabify man sh-script tar-mode
conf-mode icalendar el/icspurge el/sdiary holidays hol-loaddefs
semantic/html mhtml-mode css-mode smie js flyspell ispell el/bbdbgrp
files-x tramp-cache tramp-sh log-view pcvs-util semantic/tag-write
semantic/imenu semantic/sb semantic/tag-file semantic/db-file
data-debug cedet-files semantic/bovine/c semantic/decorate/include
semantic/decorate/mode semantic/decorate pulse hideif
semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep
semantic/bovine semantic/analyze/refs semantic/db-find semantic/db-ref
semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine debug org-indent org-rmail org-mhe org-irc org-info org-gnus
org-docview doc-view image-mode org-bibtex bibtex org-bbdb org-w3m
pcmpl-unix pcase term/xterm xterm mh-e mh-compat mh-buffers
mh-loaddefs gnus-registry registry gnus-salt gnus-topic gnus-vm
cl-print misearch multi-isearch dired-aux url-http url-gw url-auth
add-log view cal-iso cal-move bbdb-message mailalias nnir sendmail qp
eieio-opt speedbar sb-image dframe help-fns radix-tree gnus-gravatar
gravatar url-cache sort gnus-cite shr-color color mm-archive mail-extr
gnus-async gnus-bcklg cl-extra gnus-dup gnus-ml disp-table vc-bzr
vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir vc vc-dispatcher midnight
dirtrack adoc-mode tempo markup-faces bbdb-anniv appt utf-7 nnml
network-stream nsm bbdb-gnus nnfolder spam spam-stat hashcash gnus-uu
yenc jka-compr editorconfig rx semantic/db-mode semantic/db eieio-base
semantic/idle semantic/format ezimage semantic/tag-ls semantic/find
semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag
semantic/lex semantic/fw mode-local cedet time pinentry server
erc-list erc-menu erc-join erc-ring erc-pcomplete erc-track erc-button
erc-fill erc-stamp erc-netsplit erc-desktop-notifications erc-match
printing ps-print ps-print-loaddefs ps-def lpr rlogin ox-odt rng-loc
rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse
nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table
ox-ascii ox-publish ox eww mm-url url-queue url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util shr
svg ess-toolbar ess-mouse mouseme browse-url ess-menu ess-swv
ess-noweb noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l
ess-sas-a executable ess-arc-d ess-vst-d ess-xls-d ess-lsp-l ess-sta-d
ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp5-d ess-sp3-d
ess-r-d ess-r-args assoc ess-s-l ess-inf ess-utils ess-mode noweb-mode
ess ess-custom ess-compat ess-site erc-services erc-networks
erc-goodies erc erc-backend erc-compat el/macros el/cron bitly
thingatpt warnings compile time-stamp pp elec-pair cus-edit cus-start
cus-load edmacro kmacro vc-git diff-mode diary-lib diary-loaddefs
face-remap jabber-gmail jabber-otr json map jabber
jabber-notifications notifications jabber-libnotify dbus
jabber-awesome jabber-osd jabber-wmii jabber-xmessage jabber-festival
jabber-sawfish jabber-ratpoison jabber-tmux jabber-screen
jabber-socks5 jabber-ft-server jabber-si-server jabber-ft-client
jabber-ft-common jabber-si-client jabber-si-common jabber-feature-neg
jabber-truncate jabber-time jabber-autoaway jabber-vcard-avatars
jabber-chatstates jabber-events jabber-vcard jabber-avatar
jabber-activity jabber-watch jabber-modeline jabber-ahc-presence
jabber-ahc jabber-version jabber-ourversion jabber-muc-nick-completion
hippie-exp jabber-browse jabber-search jabber-register jabber-roster
jabber-presence jabber-muc jabber-bookmarks jabber-private
jabber-muc-nick-coloring hexrgb jabber-widget jabber-disco jabber-chat
jabber-history jabber-chatbuffer jabber-alert jabber-iq jabber-core
jabber-console sgml-mode dom ewoc jabber-keymap jabber-sasl sasl
sasl-anonymous sasl-login sasl-plain fsm jabber-logon jabber-conn srv
dns starttls jabber-xml xml jabber-menu jabber-util cl tramp
tramp-compat tramp-loaddefs trampver ucs-normalize shell org-element
avl-tree generator org advice org-macro org-footnote org-pcomplete
pcomplete org-list org-faces org-entities noutline outline easy-mmode
org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table
ob-keys ob-exp ob-comint comint ansi-color ring ob-core ob-eval
org-compat org-macs org-loaddefs find-func bbdb-mua bbdb-com crm bbdb
bbdb-site timezone gnus-delay gnus-draft gnus-agent gnus-srvr
gnus-score score-mode nnvirtual nntp gnus-cache gnus-msg gnus-art
mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum nndraft
nnmh gnus-group gnus-undo gnus-start gnus-cloud nnimap tls gnutls utf7
netrc nnoo parse-time gnus-spec gnus-win nnmail gnus-int gnus-range
mail-source message rmc puny dired dired-loaddefs format-spec rfc822
mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader gnus wid-edit nnheader
gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils
ind-util quail help-mode mm-util mail-prsvr xt-mouse time-date
which-func imenu icomplete autorevert filenotify el/util el/util-diary
cal-china lunar solar cal-dst cal-menu calendar cal-loaddefs
finder-inf info package easymenu epg-config url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv
cl-loaddefs cl-lib mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded
nadvice loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting
xwidget-internal move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 1026844 152317)
(symbols 48 68857 42)
(miscs 40 3771 2969)
(strings 32 244698 15609)
(string-bytes 1 7504233)
(vectors 16 116140)
(vector-slots 8 2552394 211048)
(floats 8 1485 1906)
(intervals 56 54940 1287)
(buffers 992 170))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30363
; Package
emacs
.
(Wed, 07 Feb 2018 19:31:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 30363 <at> debbugs.gnu.org (full text, mbox):
On Mon, Feb 5, 2018 at 8:48 PM, Rajeev Narang <rajeev.narang <at> gmail.com> wrote:
>
> (setq epa-pinentry-mode 'loopback)
>
> epa-decrypt-file (:d in dired mode) does not ask for the password in the minibuffer.
>
> in comparison, epa-sign-region does ask for the password in the minibuffer.
Just looking at those 2 functions, I'm guess the following would fix it?
--- i/lisp/epa.el
+++ w/lisp/epa.el
@@ -701,6 +701,7 @@ epa-decrypt-file
#'epa-progress-callback-function
(format "Decrypting %s..."
(file-name-nondirectory decrypt-file))))
+ (setf (epg-context-pinentry-mode context) epa-pinentry-mode)
(message "Decrypting %s..." (file-name-nondirectory decrypt-file))
(condition-case error
(epg-decrypt-file context decrypt-file plain-file)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30363
; Package
emacs
.
(Wed, 07 Feb 2018 19:40:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 30363 <at> debbugs.gnu.org (full text, mbox):
I think your patch should fix this function. I think mml-sec.el needs to be patched too, on similar lines.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30363
; Package
emacs
.
(Fri, 09 Feb 2018 00:50:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 30363 <at> debbugs.gnu.org (full text, mbox):
Rajeev Narang <rajeev.narang <at> gmail.com> writes:
> I think your patch should fix this function. I think mml-sec.el needs
> to be patched too, on similar lines.
Not sure if epa-pinentry-mode should apply to non-epa functions. I'm
remembering again my patch from Bug#23619 which enables loopback
whenever the epg passphrase-callback is set [1]. Although that would
not let the user disable loopback, so maybe it's not a good idea.
Daiki, any comments?
[1]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30363
; Package
emacs
.
(Fri, 27 Apr 2018 11:33:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 30363 <at> debbugs.gnu.org (full text, mbox):
tags 30363 fixed
close 30363 27.1
quit
Noam Postavsky <npostavs <at> users.sourceforge.net> writes:
> Rajeev Narang <rajeev.narang <at> gmail.com> writes:
>
>> I think your patch should fix this function. I think mml-sec.el needs
>> to be patched too, on similar lines.
I pushed that patch to master [217202c084].
> Not sure if epa-pinentry-mode should apply to non-epa functions. I'm
> remembering again my patch from Bug#23619 which enables loopback
> whenever the epg passphrase-callback is set [1]. Although that would
> not let the user disable loopback, so maybe it's not a good idea.
Still not sure about this, but it should be discussed in see Bug#26298.
[217202c084]: 2018-04-27 07:27:59 -0400
* lisp/epa.el (epa-decrypt-file): Apply epa-pinentry-mode (Bug#30363).
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=217202c084232f36d4fa0fead0f3aca21396d074
Added tag(s) fixed.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 27 Apr 2018 11:33:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
30363 <at> debbugs.gnu.org and Rajeev Narang <rajeev.narang <at> gmail.com>
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 27 Apr 2018 11:33:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 26 May 2018 11:24:04 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 04 Jun 2018 09:28:02 GMT)
Full text and
rfc822 format available.
bug Marked as fixed in versions 26.2.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 04 Jun 2018 09:28:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 02 Jul 2018 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 291 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.