* bug#37454: EPA (The EasyPG Assistant) problems saving .tar.gpg files
@ 2019-09-18 23:31 Andrea Cardaci
2019-12-09 12:47 ` Andrea Cardaci
0 siblings, 1 reply; 4+ messages in thread
From: Andrea Cardaci @ 2019-09-18 23:31 UTC (permalink / raw)
To: 37454
As the subject says. Here is how to reproduce this;
1. start Emacs with `emacs -Q`;
2. find a new file, e.g., `C-x C-f /tmp/test.tar.gpg`;
3. the buffer is in `tar-mode`, create an empty file with `I`;
4. save the Tar buffer `C-x C-s`;
5. the `*Keys*` buffer pops up, mark one key and press the "OK" button.
Now a message says "Wrote /tmp/test.tar.gpg" but the `*Keys*` buffer
is still there (that doesn't happen for regular .gpg files) and a
recursive edit is in progress (there are square brackets around the
major modes).
This is already weird per se, but most importantly the saved file is
just a text file containing the textual content of the Tar buffer:
$ gpg -d test.tar.gpg
-rw-r--r-- 0/0 0 test
Since the `*Keys*` buffer is still there, trying to mark the key and
pressing the "OK" button again causes the file to be saved again and
exits from the recursive editing, the file has the same content yet
different permissions:
-rw-r--r-- 1 cyrus cyrus 613 Sep 19 01:19 test.tar.gpg
instead of the previous (and correct):
-rw------- 1 cyrus cyrus 613 Sep 19 01:14 test.tar.gpg
My Emacs version is the following:
GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4)
of 2019-02-03, modified by Debian
I'm afraid I cannot try a newer version right now. Please let me know
if you need additional information.
Best,
Andrea
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37454: EPA (The EasyPG Assistant) problems saving .tar.gpg files
2019-09-18 23:31 bug#37454: EPA (The EasyPG Assistant) problems saving .tar.gpg files Andrea Cardaci
@ 2019-12-09 12:47 ` Andrea Cardaci
2020-08-03 7:36 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Andrea Cardaci @ 2019-12-09 12:47 UTC (permalink / raw)
To: 37454
On Thu, 19 Sep 2019 at 01:31, Andrea Cardaci <cyrus.and@gmail.com> wrote:
> Now a message says "Wrote /tmp/test.tar.gpg" but the `*Keys*` buffer
> is still there (that doesn't happen for regular .gpg files) and a
> recursive edit is in progress (there are square brackets around the
> major modes).
At least this has been fixed in Emacs 27:
> GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-12-04
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37454: EPA (The EasyPG Assistant) problems saving .tar.gpg files
2019-12-09 12:47 ` Andrea Cardaci
@ 2020-08-03 7:36 ` Lars Ingebrigtsen
2020-08-03 7:39 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-03 7:36 UTC (permalink / raw)
To: Andrea Cardaci; +Cc: 37454
Andrea Cardaci <cyrus.and@gmail.com> writes:
> On Thu, 19 Sep 2019 at 01:31, Andrea Cardaci <cyrus.and@gmail.com> wrote:
>> Now a message says "Wrote /tmp/test.tar.gpg" but the `*Keys*` buffer
>> is still there (that doesn't happen for regular .gpg files) and a
>> recursive edit is in progress (there are square brackets around the
>> major modes).
>
> At least this has been fixed in Emacs 27:
I tried the recipe in Emacs 28.1, and I'm not able to reproduce the bugs
as described -- I get an encrypted file that's saved.
file /tmp/test4.tar.gpg
/tmp/test4.tar.gpg: GPG symmetrically encrypted data (AES256 cipher)
However, when loading the back again, after displaying the contents, I
get:
Parsing tar file...
File mode specification error: (error Malformed Tar header)
So there's still some bugs in this area, apparently...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37454: EPA (The EasyPG Assistant) problems saving .tar.gpg files
2020-08-03 7:36 ` Lars Ingebrigtsen
@ 2020-08-03 7:39 ` Lars Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-03 7:39 UTC (permalink / raw)
To: Andrea Cardaci; +Cc: 37454
Lars Ingebrigtsen <larsi@gnus.org> writes:
> However, when loading the back again, after displaying the contents, I
> get:
>
> Parsing tar file...
> File mode specification error: (error Malformed Tar header)
>
> So there's still some bugs in this area, apparently...
Sorry; I misinterpreted what Emacs was showing me -- the bug is exactly
as you described: The contents of the encrypted file isn't the tar data,
but what Emacs displayed in the buffer.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-03 7:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-18 23:31 bug#37454: EPA (The EasyPG Assistant) problems saving .tar.gpg files Andrea Cardaci
2019-12-09 12:47 ` Andrea Cardaci
2020-08-03 7:36 ` Lars Ingebrigtsen
2020-08-03 7:39 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.