all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8792: 23.3; EasyPG: do not create empty buffers if file cannot be read
@ 2011-06-03  0:13 Roland Winkler
  2011-06-03  3:40 ` Daiki Ueno
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Winkler @ 2011-06-03  0:13 UTC (permalink / raw)
  To: 8792

If a gpg-encrypted file cannot be read for whatever reason (see,
e.g., bug#8791) one gets the error message

  File exists, but cannot be read

and just an empty buffer. This empty buffer can be dangerous because
emacs believes it is really visiting the file. Say, if this empty
buffer gets modified and saved automatically, this will just
override the original file. I suggest that EasyPG should be more
cautious here (or: provide a means to be more cautious if desired).


In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.9)
 of 2011-06-02 on lukas

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: en_GB.utf8
  value of $LANG: en_US.ISO-8859-15
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-9-unix
  default enable-multibyte-characters: t






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#8792: 23.3; EasyPG: do not create empty buffers if file cannot be read
  2011-06-03  0:13 bug#8792: 23.3; EasyPG: do not create empty buffers if file cannot be read Roland Winkler
@ 2011-06-03  3:40 ` Daiki Ueno
  2011-06-04  2:12   ` Roland Winkler
  0 siblings, 1 reply; 3+ messages in thread
From: Daiki Ueno @ 2011-06-03  3:40 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 8792

forcemerge 6568 8792
thanks

Roland Winkler <winkler@gnu.org> writes:

> If a gpg-encrypted file cannot be read for whatever reason (see,
> e.g., bug#8791) one gets the error message
>
>   File exists, but cannot be read

The fix has been in the trunk for quite some time.  Though I'm afraid
that the modification is not trivial, now it might be good to backport
it into emacs-23.

Regards,
-- 
Daiki Ueno





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#8792: 23.3; EasyPG: do not create empty buffers if file cannot be read
  2011-06-03  3:40 ` Daiki Ueno
@ 2011-06-04  2:12   ` Roland Winkler
  0 siblings, 0 replies; 3+ messages in thread
From: Roland Winkler @ 2011-06-04  2:12 UTC (permalink / raw)
  To: Daiki Ueno; +Cc: 8792

On Fri Jun 3 2011 Daiki Ueno wrote:
> The fix has been in the trunk for quite some time.  Though I'm afraid
> that the modification is not trivial, now it might be good to backport
> it into emacs-23.

I see, thank you!

It's a bit unfortunate that this fix has not yet been applied to
emacs 23. Actually, some time ago I reported another bug with EasyPG
(bug#7026). I was surprised that this fix did not make it into emacs
23.3 that was shipped half a year later.

Roland





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-04  2:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-03  0:13 bug#8792: 23.3; EasyPG: do not create empty buffers if file cannot be read Roland Winkler
2011-06-03  3:40 ` Daiki Ueno
2011-06-04  2:12   ` Roland Winkler

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.