GNU bug report logs - #8792
23.3; EasyPG: do not create empty buffers if file cannot be read

Previous Next

Package: emacs;

Reported by: Roland Winkler <winkler <at> gnu.org>

Date: Fri, 3 Jun 2011 00:14:02 UTC

Severity: normal

Merged with 6568

Found in versions 23.2, 23.3

Fixed in version 24.1

Done: Daiki Ueno <ueno <at> unixuser.org>

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 8792 in the body.
You can then email your comments to 8792 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8792; Package emacs. (Fri, 03 Jun 2011 00:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Roland Winkler <winkler <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 03 Jun 2011 00:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roland Winkler <winkler <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.3; EasyPG: do not create empty buffers if file cannot be read
Date: Thu, 02 Jun 2011 19:13:36 -0500
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





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8792; Package emacs. (Fri, 03 Jun 2011 03:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 8792 <at> debbugs.gnu.org (full text, mbox):

From: Daiki Ueno <ueno <at> unixuser.org>
To: Roland Winkler <winkler <at> gnu.org>
Cc: 8792 <at> debbugs.gnu.org
Subject: Re: bug#8792: 23.3;
	EasyPG: do not create empty buffers if file cannot be read
Date: Fri, 03 Jun 2011 12:40:45 +0900
forcemerge 6568 8792
thanks

Roland Winkler <winkler <at> 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




Forcibly Merged 6568 8792. Request was from Daiki Ueno <ueno <at> unixuser.org> to control <at> debbugs.gnu.org. (Fri, 03 Jun 2011 04:23:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8792; Package emacs. (Sat, 04 Jun 2011 02:14:02 GMT) Full text and rfc822 format available.

Message #13 received at 8792 <at> debbugs.gnu.org (full text, mbox):

From: "Roland Winkler" <winkler <at> gnu.org>
To: Daiki Ueno <ueno <at> unixuser.org>
Cc: 8792 <at> debbugs.gnu.org
Subject: Re: bug#8792: 23.3;
	EasyPG: do not create empty buffers if file cannot be read
Date: Fri, 3 Jun 2011 21:12:45 -0500
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




bug Marked as fixed in versions 24.1. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 04 Jun 2011 19:15: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. (Sun, 03 Jul 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 359 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.