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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9988 in the body.
You can then email your comments to 9988 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 bug-gnu-emacs <at> gnu.org:
bug#9988; Package emacs. (Tue, 08 Nov 2011 07:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guangliang Yang <guangliang.y <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 08 Nov 2011 07:44:02 GMT) Full text and rfc822 format available.

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

From: Guangliang Yang <guangliang.y <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; emacs can't write file with original permission
Date: Tue, 08 Nov 2011 14:54:29 +0800
$ 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

emacs changed the file's permission
it's sucks





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9988; Package emacs. (Tue, 08 Nov 2011 07:53:01 GMT) Full text and rfc822 format available.

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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9988; Package emacs. (Tue, 08 Nov 2011 07:57:02 GMT) Full text and rfc822 format available.

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

From: Guangliang Yang <guangliang.y <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
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 15:53:55 +0800
On 11/08/2011 03:49 PM, Glenn Morris wrote:
> 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.
sorry, it's my fault
i have fixed the reason. sorry to disturb you




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 08 Nov 2011 08:08:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 9988 <at> debbugs.gnu.org and Guangliang Yang <guangliang.y <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 08 Nov 2011 08:08:02 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Guangliang Yang <guangliang.y <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 9988-done <at> debbugs.gnu.org
Subject: Re: bug#9988: 23.1; emacs can't write file with original permission
Date: Tue, 8 Nov 2011 13:35:36 +0100
On Tue, Nov 8, 2011 at 08:53, Guangliang Yang <guangliang.y <at> gmail.com> wrote:

> i have fixed the reason.

Closing, thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Dec 2011 12:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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