GNU bug report logs - #9988
23.1; emacs can't write file with original permission

Previous Next

Package: emacs;

Reported by: Guangliang Yang <guangliang.y <at> gmail.com>

Date: Tue, 8 Nov 2011 07:44:01 UTC

Severity: normal

Tags: moreinfo, notabug, unreproducible

Found in version 23.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: Guangliang Yang <guangliang.y <at> gmail.com>
Cc: 9988 <at> debbugs.gnu.org
Subject: Re: bug#9988: 23.1; emacs can't write file with original permission
Date: Tue, 08 Nov 2011 02:49:41 -0500
Guangliang Yang wrote:

> $ ls -l
> total 4
> -rw------- 1 gxa4g7 gxa4g7 179 2011-11-08 14:50 a.py
> $ emacs a.py
> $ ls -l
> total 4
> -rw-r--r-- 1 gxa4g7 gxa4g7 179 2011-11-08 14:50 a.py

I cannot reproduce this. I tried:

bash> umask
0022
bash> touch a.py; chmod 600 a.py; ls -l a.py
-rw------- 1 gm gm 0 Nov  7 23:47 a.py
bash> emacs-23.1 -Q a.py &

Then in Emacs, type some text in a.py and save it with C-x C-s.
The file's permissions are unchanged.

Please give a complete recipe starting from `emacs -Q', and include the
details from M-x report-emacs-bug about your system and Emacs.




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

Previous Next


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