From unknown Sun Jun 22 08:05:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20634: 25.0.50; Conflict between Tramp and EasyPG Resent-From: Jens Lechtenboerger Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2015 15:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20634@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143239465517018 (code B ref -1); Sat, 23 May 2015 15:25:03 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2015 15:24:15 +0000 Received: from localhost ([127.0.0.1]:54069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwBHW-0004QM-OG for submit@debbugs.gnu.org; Sat, 23 May 2015 11:24:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35538) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwBHP-0004Pl-Oq for submit@debbugs.gnu.org; Sat, 23 May 2015 11:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwBHJ-0007nh-Mc for submit@debbugs.gnu.org; Sat, 23 May 2015 11:23:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwBHJ-0007nd-JL for submit@debbugs.gnu.org; Sat, 23 May 2015 11:23:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwBHF-0007c7-8x for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 11:23:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwBH4-0007lB-NC for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 11:23:53 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:40100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwBH4-0007ky-HL for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 11:23:42 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id D9BD3432E0 for ; Sat, 23 May 2015 17:23:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id k-d8gGe15yBk for ; Sat, 23 May 2015 17:23:40 +0200 (CEST) From: Jens Lechtenboerger OpenPGP: id=0xA142FD84; url=http://www.informationelle-selbstbestimmung-im-internet.de/A142FD84.asc Date: Sat, 23 May 2015 17:23:38 +0200 Message-ID: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Hi there, I use EasyPG for transparent access of encrypted files with extension .gpg. If I copy an encrypted file, say test.gpg, via ssh (Tramp) to a remote location, then I=E2=80=99m asked what public key to use for encryption (none for symmetric encryption), and the encrypted file is encrypted again, rendering it useless from within Emacs. (If I open the remote file via Tramp, the outer layer of encryption is removed, and I see the original encrypted file.) Recipe: 0. Encrypt a file: test.gpg 1. emacs -Q 2. Open directory of test.gpg (C-x C-f). 3. Copy (C) the file to a remote location (e.g., /user@localhost:/tmp). The key chooser opens. Copy is cancelled if I cancel the choice. Otherwise, a remote file is created, which is not a copy but an encrypted file with two layers of encryption. 4. Open the remote file (C-x C-f /user@localhost:/tmp/test.gpg). Observe encrypted data. In contrast, if I copy an encrypted file to a local directory, it is copied without extra encryption. Note also that if I copy a plaintext file (test.txt) locally to one with gpg extension (test.gpg), it remains a plaintext file. If I copy that to a remote location, it gets encrypted. This may be a bug or a feature, but is certainly inconsistent behavior. Best wishes Jens From unknown Sun Jun 22 08:05:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20634: 25.0.50; Conflict between Tramp and EasyPG Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 May 2015 16:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jens Lechtenboerger Cc: 20634@debbugs.gnu.org Received: via spool by 20634-submit@debbugs.gnu.org id=B20634.143248466230388 (code B ref 20634); Sun, 24 May 2015 16:25:03 +0000 Received: (at 20634) by debbugs.gnu.org; 24 May 2015 16:24:22 +0000 Received: from localhost ([127.0.0.1]:54920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwYhG-0007tv-1C for submit@debbugs.gnu.org; Sun, 24 May 2015 12:24:22 -0400 Received: from mout.gmx.net ([212.227.15.19]:62883) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwYhA-0007tW-1J for 20634@debbugs.gnu.org; Sun, 24 May 2015 12:24:16 -0400 Received: from detlef.gmx.de ([87.146.56.57]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MhiPD-1YjXt842IF-00MtaX; Sun, 24 May 2015 18:24:06 +0200 From: Michael Albinus References: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> Date: Sun, 24 May 2015 18:24:04 +0200 In-Reply-To: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> (Jens Lechtenboerger's message of "Sat, 23 May 2015 17:23:38 +0200") Message-ID: <87lhgevt97.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:Nwl5Oc41/XVRvIZAhzlIjNPXtOQMpRjcn2uaayzNWaEuWuXyEjB sPvxKC5A3SuwpVpk2CymVQIAxYMFcciz8ptseFwHzrUqqKKXttjHC/x2F5CsrOZPIe1ha0r 15hWm7Mk3qVmpJu1X6xG00/M5U7ZR8DI0msK982RBabC6MVbVsb0IAEvfD8S5qiURzykk5A t/XibRnGCfxLp7QQKpR8Q== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Jens Lechtenboerger writes: > Hi there, Hi Jens, > I use EasyPG for transparent access of encrypted files with > extension .gpg. If I copy an encrypted file, say test.gpg, via ssh > (Tramp) to a remote location, then I=E2=80=99m asked what public key to u= se > for encryption (none for symmetric encryption), and the encrypted > file is encrypted again, rendering it useless from within Emacs. > (If I open the remote file via Tramp, the outer layer of encryption > is removed, and I see the original encrypted file.) Thanks for the report; I could reproduce the problem using your recipe. Could you, please, check whether the following patch fixes the problem? --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/tramp/lisp/tramp-sh.el.~master~ 2015-05-24 18:17:53.3= 33961247 +0200 --- /home/albinus/src/tramp/lisp/tramp-sh.el 2015-05-24 18:13:15.299684599 = +0200 *************** *** 2122,2136 **** KEEP-DATE is non-nil if NEWNAME should have the same timestamp as FILENAM= E." ;; We must disable multibyte, because binary data shall not be ;; converted. We don't want the target file to be compressed, so we ! ;; let-bind `jka-compr-inhibit' to t. ! ;; We remove `tramp-file-name-handler' from ;; `inhibit-file-name-handlers'; otherwise the file name handler for ;; `insert-file-contents' might be deactivated in some corner cases. (let ((coding-system-for-read 'binary) (coding-system-for-write 'binary) (jka-compr-inhibit t) (inhibit-file-name-handlers ! (remq 'tramp-file-name-handler inhibit-file-name-handlers))) (with-temp-file newname (set-buffer-multibyte nil) (insert-file-contents-literally filename))) --- 2122,2137 ---- KEEP-DATE is non-nil if NEWNAME should have the same timestamp as FILENAM= E." ;; We must disable multibyte, because binary data shall not be ;; converted. We don't want the target file to be compressed, so we ! ;; let-bind `jka-compr-inhibit' to t. `epa-file-handler' shall not ! ;; be called either. We remove `tramp-file-name-handler' from ;; `inhibit-file-name-handlers'; otherwise the file name handler for ;; `insert-file-contents' might be deactivated in some corner cases. (let ((coding-system-for-read 'binary) (coding-system-for-write 'binary) (jka-compr-inhibit t) (inhibit-file-name-handlers ! (cons epa-file-handler ! . (remq 'tramp-file-name-handler inhibit-file-name-handlers)))) (with-temp-file newname (set-buffer-multibyte nil) (insert-file-contents-literally filename))) *************** *** 3205,3211 **** (if (fboundp 'find-buffer-file-type) (symbol-function 'find-buffer-file-type) nil)) ! (inhibit-file-name-handlers '(jka-compr-handler image-file-handler)) (inhibit-file-name-operation 'insert-file-contents)) (unwind-protect (progn --- 3206,3213 ---- (if (fboundp 'find-buffer-file-type) (symbol-function 'find-buffer-file-type) nil)) ! (inhibit-file-name-handlers ! '(epa-file-handler image-file-handler jka-compr-handler)) (inhibit-file-name-operation 'insert-file-contents)) (unwind-protect (progn --8<---------------cut here---------------end--------------->8--- > Note also that if I copy a plaintext file (test.txt) locally to one > with gpg extension (test.gpg), it remains a plaintext file. If I > copy that to a remote location, it gets encrypted. This may be a > bug or a feature, but is certainly inconsistent behavior. It is rather a feature (a copy operation shall not change the file contents). The above patch shall fix this as well. > Best wishes > Jens Best regards, Michael. From unknown Sun Jun 22 08:05:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20634: 25.0.50; Conflict between Tramp and EasyPG Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2015 10:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jens Lechtenboerger Cc: 20634@debbugs.gnu.org Received: via spool by 20634-submit@debbugs.gnu.org id=B20634.14325508957230 (code B ref 20634); Mon, 25 May 2015 10:49:02 +0000 Received: (at 20634) by debbugs.gnu.org; 25 May 2015 10:48:15 +0000 Received: from localhost ([127.0.0.1]:55305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwpvW-0001sS-U0 for submit@debbugs.gnu.org; Mon, 25 May 2015 06:48:14 -0400 Received: from mout.gmx.net ([212.227.15.19]:64249) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwpvQ-0001rt-Fh for 20634@debbugs.gnu.org; Mon, 25 May 2015 06:48:09 -0400 Received: from detlef.gmx.de ([87.146.53.203]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MXq3L-1YbXUA2GcJ-00Wj5G; Mon, 25 May 2015 12:47:57 +0200 From: Michael Albinus References: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> <87lhgevt97.fsf@gmx.de> Date: Mon, 25 May 2015 12:47:56 +0200 In-Reply-To: <87lhgevt97.fsf@gmx.de> (Michael Albinus's message of "Sun, 24 May 2015 18:24:04 +0200") Message-ID: <87wpzxvspv.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:DrpRXmO5aGLQ/yXbkc5KX6NWuU/kbg5d3Zg7/jFSJ4FXzH67voV Z15eU6GTfGqvd+JeH1q65RGeOWERUMOMxhTEFWJWIB5ifohkZpIGItl0hrH7F80CWfocM07 LukedP8MZ/Db2PjmfzV8TS6aVa5Sfy+QPnCKIFX01gUQuTKf4CCZ1GImk+E2FFeGf1LaEnf 2usq9Lvyihrlhj/rsoa6A== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Michael Albinus writes: Hi Jens, > Thanks for the report; I could reproduce the problem using your > recipe. Could you, please, check whether the following patch fixes the > problem? There was a typo in the patch. I've fixed it in the Emacs repository; could you please test that version? >> Best wishes >> Jens Best regards, Michael. From unknown Sun Jun 22 08:05:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20634: 25.0.50; Conflict between Tramp and EasyPG Resent-From: Jens Lechtenboerger Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2015 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 20634@debbugs.gnu.org Received: via spool by 20634-submit@debbugs.gnu.org id=B20634.143257154514639 (code B ref 20634); Mon, 25 May 2015 16:33:02 +0000 Received: (at 20634) by debbugs.gnu.org; 25 May 2015 16:32:25 +0000 Received: from localhost ([127.0.0.1]:55828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwvIa-0003lB-Ev for submit@debbugs.gnu.org; Mon, 25 May 2015 12:32:24 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:41832) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwvIT-0003e6-MI for 20634@debbugs.gnu.org; Mon, 25 May 2015 12:32:17 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 4EAF743207; Mon, 25 May 2015 18:32:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id 2w8AR_k0AoyB; Mon, 25 May 2015 18:32:06 +0200 (CEST) From: Jens Lechtenboerger References: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> <87lhgevt97.fsf@gmx.de> <87wpzxvspv.fsf@gmx.de> OpenPGP: id=0xA142FD84; url=http://www.informationelle-selbstbestimmung-im-internet.de/A142FD84.asc Date: Mon, 25 May 2015 18:32:04 +0200 In-Reply-To: <87wpzxvspv.fsf@gmx.de> (Michael Albinus's message of "Mon, 25 May 2015 12:47:56 +0200") Message-ID: <87h9r0aa9n.fsf@informationelle-selbstbestimmung-im-internet.de> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -2.3 (--) On 2015-05-25, at 12:47, Michael Albinus wrote: > Michael Albinus writes: > > Hi Jens, > >> Thanks for the report; I could reproduce the problem using your >> recipe. Could you, please, check whether the following patch fixes the >> problem? > > There was a typo in the patch. I've fixed it in the Emacs repository; > could you please test that version? Hi Michael, many thanks for your quick reply. Unfortunately, that does not solve my issue. The new file still gets encrypted a second time. I traced what happens: In tramp-do-copy-or-rename-file-via-buffer, the call to with-temp-file results in a call to epa-file-handler, where the argument operation has the value 'write-region. In epa-file-handler, op is let-bound to 'epa-file-write-region, which gets called without looking at inhibit-file-name-handlers. I also tried to let-bind inhibit-file-name-operation to 'write-region in tramp-do-copy-or-rename-file-via-buffer, but that did not work either. Best wishes Jens From unknown Sun Jun 22 08:05:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20634: 25.0.50; Conflict between Tramp and EasyPG Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2015 18:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jens Lechtenboerger Cc: 20634@debbugs.gnu.org Received: via spool by 20634-submit@debbugs.gnu.org id=B20634.143257895927728 (code B ref 20634); Mon, 25 May 2015 18:36:01 +0000 Received: (at 20634) by debbugs.gnu.org; 25 May 2015 18:35:59 +0000 Received: from localhost ([127.0.0.1]:55860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwxED-0007D7-Qu for submit@debbugs.gnu.org; Mon, 25 May 2015 14:35:58 -0400 Received: from mout.gmx.net ([212.227.17.21]:60783) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwxEB-0007Cu-Fj for 20634@debbugs.gnu.org; Mon, 25 May 2015 14:35:56 -0400 Received: from detlef.gmx.de ([87.146.53.203]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MY3Ho-1Yas0y2PwG-00Up54; Mon, 25 May 2015 20:35:48 +0200 From: Michael Albinus References: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> <87lhgevt97.fsf@gmx.de> <87wpzxvspv.fsf@gmx.de> <87h9r0aa9n.fsf@informationelle-selbstbestimmung-im-internet.de> Date: Mon, 25 May 2015 20:35:45 +0200 In-Reply-To: <87h9r0aa9n.fsf@informationelle-selbstbestimmung-im-internet.de> (Jens Lechtenboerger's message of "Mon, 25 May 2015 18:32:04 +0200") Message-ID: <874mn0ijy6.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:kvfowce7iBnGahVIvkBr5O1CMoURWEmee+uejfD3U02ZRQQmK/k FcHlp+ewwpfH6nABYgEtanfZztTFkRfhAFGL4OeOcTxTiHIvjU7d/blyNoEpdvwqTsOfQas mfybr7y/hEZHIw2118u02T2PPK8m+S0PN7Ky8hBlcwJN1b60sz9QF1Qepkfbh7lw1OkIZJl B4sTTwfAuRK/HNls5krNQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Jens Lechtenboerger writes: > Hi Michael, Hi Jens, > many thanks for your quick reply. Unfortunately, that does not > solve my issue. The new file still gets encrypted a second time. Indeed, I haven't tested all use cases :-( I've pushed an improved version of the patch; could you please check? That seems to work for me. > Best wishes > Jens Best regards, Michael. From unknown Sun Jun 22 08:05:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jens Lechtenboerger Subject: bug#20634: closed (Re: bug#20634: 25.0.50; Conflict between Tramp and EasyPG) Message-ID: References: <87bnh7l8xx.fsf@gmx.de> <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> X-Gnu-PR-Message: they-closed 20634 X-Gnu-PR-Package: emacs Reply-To: 20634@debbugs.gnu.org Date: Tue, 26 May 2015 14:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1432649882-6318-1" This is a multi-part message in MIME format... ------------=_1432649882-6318-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20634: 25.0.50; Conflict between Tramp and EasyPG which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20634@debbugs.gnu.org. --=20 20634: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20634 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1432649882-6318-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20634-done) by debbugs.gnu.org; 26 May 2015 14:17:40 +0000 Received: from localhost ([127.0.0.1]:57145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxFfo-0001dL-BP for submit@debbugs.gnu.org; Tue, 26 May 2015 10:17:40 -0400 Received: from mout.gmx.net ([212.227.15.15]:51069) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxFfm-0001d8-6o for 20634-done@debbugs.gnu.org; Tue, 26 May 2015 10:17:38 -0400 Received: from detlef.gmx.de ([79.195.10.179]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M2L2a-1ZDgcx1Z5A-00s4kL; Tue, 26 May 2015 16:17:31 +0200 From: Michael Albinus To: Jens Lechtenboerger Subject: Re: bug#20634: 25.0.50; Conflict between Tramp and EasyPG References: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> <87lhgevt97.fsf@gmx.de> <87wpzxvspv.fsf@gmx.de> <87h9r0aa9n.fsf@informationelle-selbstbestimmung-im-internet.de> <874mn0ijy6.fsf@gmx.de> <87k2vva0lw.fsf@informationelle-selbstbestimmung-im-internet.de> Date: Tue, 26 May 2015 16:17:30 +0200 In-Reply-To: <87k2vva0lw.fsf@informationelle-selbstbestimmung-im-internet.de> (Jens Lechtenboerger's message of "Tue, 26 May 2015 16:12:59 +0200") Message-ID: <87bnh7l8xx.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:j3TvQeQdne7XIcthy4SASNDGnbkXWhfZjE5jVsxAXcAmpXyNS2g FC2DIbjitq5UNaa9TPK0cUTtfQjVq82LfyJzwFFenPhMvTN8Z2ZulKiv/o6ujhr0IwUzHxK kfGfyHWM/OKDIdDCnSbG+zbdoUYoaJ05DZptmodCaZkXcvqMfYw9YHfhsZOCjqs7QpxICpo XVxrnRbQ8w19LbeVCPB2w== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20634-done Cc: 20634-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Version: 25.1 Jens Lechtenboerger writes: > Hi Michael, Hi Jens, > fixed :-) Thanks for confirmation. I'm closing the ticket. > Many thanks > Jens Best regards, Michael. ------------=_1432649882-6318-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 May 2015 15:24:15 +0000 Received: from localhost ([127.0.0.1]:54069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwBHW-0004QM-OG for submit@debbugs.gnu.org; Sat, 23 May 2015 11:24:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35538) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwBHP-0004Pl-Oq for submit@debbugs.gnu.org; Sat, 23 May 2015 11:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwBHJ-0007nh-Mc for submit@debbugs.gnu.org; Sat, 23 May 2015 11:23:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwBHJ-0007nd-JL for submit@debbugs.gnu.org; Sat, 23 May 2015 11:23:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwBHF-0007c7-8x for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 11:23:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwBH4-0007lB-NC for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 11:23:53 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:40100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwBH4-0007ky-HL for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 11:23:42 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id D9BD3432E0 for ; Sat, 23 May 2015 17:23:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id k-d8gGe15yBk for ; Sat, 23 May 2015 17:23:40 +0200 (CEST) From: Jens Lechtenboerger To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Conflict between Tramp and EasyPG OpenPGP: id=0xA142FD84; url=http://www.informationelle-selbstbestimmung-im-internet.de/A142FD84.asc Date: Sat, 23 May 2015 17:23:38 +0200 Message-ID: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Hi there, I use EasyPG for transparent access of encrypted files with extension .gpg. If I copy an encrypted file, say test.gpg, via ssh (Tramp) to a remote location, then I=E2=80=99m asked what public key to use for encryption (none for symmetric encryption), and the encrypted file is encrypted again, rendering it useless from within Emacs. (If I open the remote file via Tramp, the outer layer of encryption is removed, and I see the original encrypted file.) Recipe: 0. Encrypt a file: test.gpg 1. emacs -Q 2. Open directory of test.gpg (C-x C-f). 3. Copy (C) the file to a remote location (e.g., /user@localhost:/tmp). The key chooser opens. Copy is cancelled if I cancel the choice. Otherwise, a remote file is created, which is not a copy but an encrypted file with two layers of encryption. 4. Open the remote file (C-x C-f /user@localhost:/tmp/test.gpg). Observe encrypted data. In contrast, if I copy an encrypted file to a local directory, it is copied without extra encryption. Note also that if I copy a plaintext file (test.txt) locally to one with gpg extension (test.gpg), it remains a plaintext file. If I copy that to a remote location, it gets encrypted. This may be a bug or a feature, but is certainly inconsistent behavior. Best wishes Jens ------------=_1432649882-6318-1-- From unknown Sun Jun 22 08:05:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20634: 25.0.50; Conflict between Tramp and EasyPG Resent-From: Jens Lechtenboerger Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 May 2015 14:32:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20634@debbugs.gnu.org Received: via spool by 20634-submit@debbugs.gnu.org id=B20634.14326507087645 (code B ref 20634); Tue, 26 May 2015 14:32:04 +0000 Received: (at 20634) by debbugs.gnu.org; 26 May 2015 14:31:48 +0000 Received: from localhost ([127.0.0.1]:57157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxFtS-0001zE-MT for submit@debbugs.gnu.org; Tue, 26 May 2015 10:31:47 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:50926) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxFtQ-0001yp-HV for 20634@debbugs.gnu.org; Tue, 26 May 2015 10:31:45 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 57169433C9 for <20634@debbugs.gnu.org>; Tue, 26 May 2015 16:31:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id MA7xCnVxOh9Q for <20634@debbugs.gnu.org>; Tue, 26 May 2015 16:31:36 +0200 (CEST) From: Jens Lechtenboerger References: <87fv6n8ghx.fsf@informationelle-selbstbestimmung-im-internet.de> <87lhgevt97.fsf@gmx.de> <87wpzxvspv.fsf@gmx.de> <87h9r0aa9n.fsf@informationelle-selbstbestimmung-im-internet.de> <874mn0ijy6.fsf@gmx.de> OpenPGP: id=0xA142FD84; url=http://www.informationelle-selbstbestimmung-im-internet.de/A142FD84.asc Date: Tue, 26 May 2015 16:31:35 +0200 In-Reply-To: <874mn0ijy6.fsf@gmx.de> (Michael Albinus's message of "Mon, 25 May 2015 20:35:45 +0200") Message-ID: <87fv6j9zqw.fsf@informationelle-selbstbestimmung-im-internet.de> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -2.3 (--) > I've pushed an improved version of the patch; could you please check? > That seems to work for me. Hi Michael, fixed :-) Many thanks Jens P.S. My first reply went to Michael only. Sorry about that.