From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 18 08:43:30 2012 Received: (at submit) by debbugs.gnu.org; 18 Nov 2012 13:43:30 +0000 Received: from localhost ([127.0.0.1]:52387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta59l-00044D-E6 for submit@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 ) id 1Ta59e-000442-VN for submit@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 ) id 1Ta58f-0007m1-Oj for submit@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 ) id 1Ta58f-0007lx-MA for submit@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 ) id 1Ta58c-00025p-Jl for bug-gnu-emacs@gnu.org; Sun, 18 Nov 2012 08:42:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ta58Z-0007lA-HP for bug-gnu-emacs@gnu.org; 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 ) id 1Ta58Z-0007kw-5m for bug-gnu-emacs@gnu.org; Sun, 18 Nov 2012 08:42:15 -0500 Received: by mail-ee0-f41.google.com with SMTP id d41so2813358eek.0 for ; 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 To: bug-gnu-emacs@gnu.org 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@gavenkoa.example.com> 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@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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! From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 20 02:33:57 2012 Received: (at 12923) by debbugs.gnu.org; 20 Nov 2012 07:33:57 +0000 Received: from localhost ([127.0.0.1]:56139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaiLD-0008FX-QU for submit@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 ) id 1TaiL9-0008FN-Jj for 12923@debbugs.gnu.org; Tue, 20 Nov 2012 02:33:54 -0500 Message-ID: From: Daiki Ueno To: Oleksandr Gavenko Subject: Re: bug#12923: 24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit References: <87haon10zw.fsf@gavenkoa.example.com> Date: Tue, 20 Nov 2012 16:32:35 +0900 In-Reply-To: <87haon10zw.fsf@gavenkoa.example.com> (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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) Oleksandr Gavenko 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 20 13:12:43 2012 Received: (at 12923) by debbugs.gnu.org; 20 Nov 2012 18:12:43 +0000 Received: from localhost ([127.0.0.1]:57235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TasJP-0007tY-AW for submit@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 ) id 1TasJN-0007tQ-7E for 12923@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@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 To: Daiki Ueno Subject: Re: bug#12923: 24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit Organization: Oleksandr Gavenko , http://gavenkoa.users.sf.net References: <87haon10zw.fsf@gavenkoa.example.com> Date: Tue, 20 Nov 2012 20:11:26 +0200 In-Reply-To: (Daiki Ueno's message of "Tue, 20 Nov 2012 16:32:35 +0900") Message-ID: <878v9w6t69.fsf@gavenkoa.example.com> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 2012-11-20, Daiki Ueno wrote: > Oleksandr Gavenko 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! From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 20 16:51:03 2012 Received: (at 12923) by debbugs.gnu.org; 20 Nov 2012 21:51:03 +0000 Received: from localhost ([127.0.0.1]:57476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tavih-0005MY-5W for submit@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 ) id 1Tavie-0005M9-A0 for 12923@debbugs.gnu.org; Tue, 20 Nov 2012 16:51:02 -0500 Message-ID: <87lidw54hx.fsf-ueno@unixuser.org> From: Daiki Ueno To: Oleksandr Gavenko Subject: Re: bug#12923: 24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit References: <87haon10zw.fsf@gavenkoa.example.com> <878v9w6t69.fsf@gavenkoa.example.com> Date: Wed, 21 Nov 2012 06:49:46 +0900 In-Reply-To: <878v9w6t69.fsf@gavenkoa.example.com> (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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) Oleksandr Gavenko 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 20 20:13:39 2012 Received: (at 12923) by debbugs.gnu.org; 21 Nov 2012 01:13:39 +0000 Received: from localhost ([127.0.0.1]:57585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Taysk-0001S1-O0 for submit@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 ) id 1Taysi-0001Rr-0O for 12923@debbugs.gnu.org; Tue, 20 Nov 2012 20:13:38 -0500 Message-ID: From: Daiki Ueno To: Oleksandr Gavenko Subject: Re: bug#12923: 24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit References: <87haon10zw.fsf@gavenkoa.example.com> <878v9w6t69.fsf@gavenkoa.example.com> <87lidw54hx.fsf-ueno@unixuser.org> Date: Wed, 21 Nov 2012 10:12:16 +0900 In-Reply-To: <87lidw54hx.fsf-ueno@unixuser.org> (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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.0 (/) Daiki Ueno 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@unixuser.org --encrypt < /dev/null $ file pub.gpg pub.gpg: data $ file ~/.gnupg/pubring.gpg /home/ueno/.gnupg/pubring.gpg: GPG key public ring From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 21 09:02:17 2012 Received: (at 12923) by debbugs.gnu.org; 21 Nov 2012 14:02:17 +0000 Received: from localhost ([127.0.0.1]:58400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbAsa-0002J3-LO for submit@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 ) id 1TbAsY-0002Iw-Nc for 12923@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 To: Daiki Ueno Subject: Re: bug#12923: 24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit Message-ID: References: <87haon10zw.fsf@gavenkoa.example.com> <878v9w6t69.fsf@gavenkoa.example.com> <87lidw54hx.fsf-ueno@unixuser.org> Date: Wed, 21 Nov 2012 09:00:58 -0500 In-Reply-To: <87lidw54hx.fsf-ueno@unixuser.org> (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@debbugs.gnu.org, Oleksandr Gavenko X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 23:39:50 2021 Received: (at 12923) by debbugs.gnu.org; 4 Dec 2021 04:39:50 +0000 Received: from localhost ([127.0.0.1]:52707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtMpx-0006pV-VW for submit@debbugs.gnu.org; Fri, 03 Dec 2021 23:39:50 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtMpv-0006pF-IY for 12923@debbugs.gnu.org; Fri, 03 Dec 2021 23:39:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=A2NmpscV66py3FRq9mMqtDypOjiNq0a5XTtIjzJma8w=; b=Opv/2A3/WZoEqWeFba8uBgwMEd AueH5h5jDhDOAFVzOaX4wNENz59YpNwsZ8rmU0+0wTak2+faoiD75loaqkmuhnhtDtcvt/ImWT7XQ jrnZtlrx5gxyxtiMPjUVXyJWyJMglLYg4q2f2lgtkMqaSjxz0sKHSdD5pc9kht4oZPIk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtMpk-0002UQ-Ao; Sat, 04 Dec 2021 05:39:39 +0100 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#12923: 24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit References: <87haon10zw.fsf@gavenkoa.example.com> <878v9w6t69.fsf@gavenkoa.example.com> <87lidw54hx.fsf-ueno@unixuser.org> X-Now-Playing: Genesis's _Nursery Cryme_: "The Fountain Of Salmacis" Date: Sat, 04 Dec 2021 05:39:35 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 21 Nov 2012 09:00:58 -0500") Message-ID: <87tufpouew.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 12923 Cc: 12923@debbugs.gnu.org, Daiki Ueno , Oleksandr Gavenko X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > 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)"). I've now done this in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 23:39:52 2021 Received: (at control) by debbugs.gnu.org; 4 Dec 2021 04:39:52 +0000 Received: from localhost ([127.0.0.1]:52710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtMq0-0006pj-8h for submit@debbugs.gnu.org; Fri, 03 Dec 2021 23:39:52 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtMpz-0006pM-6V for control@debbugs.gnu.org; Fri, 03 Dec 2021 23:39:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=16N+DFxrDJBXXX/XqRsEJkXoGY6OZKxt8KKme2dKEAo=; b=OvClYyZmUtvSmVjim3RTProFJ0 26zCRaPBRuFkWqp1dMy4ilfrnkbVFUFwJJ9MCu6HlE6V/HYh+K+5xdZ7udDidAJMvfI8XEkOBy33o L3qprkIPPSolUyGiR/ltDEK+R9VykmF3dYvTw5knguweBOqxB/7AIiijAL6+pjHlh7IE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtMpr-0002Uc-Md for control@debbugs.gnu.org; Sat, 04 Dec 2021 05:39:45 +0100 Date: Sat, 04 Dec 2021 05:39:43 +0100 Message-Id: <87sfv9oueo.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #12923 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 12923 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 12923 29.1 quit From unknown Sat Jun 21 03:28:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 01 Jan 2022 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator