unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Guangliang Yang <guangliang.y@gmail.com>
Cc: 9988@debbugs.gnu.org
Subject: bug#9988: 23.1; emacs can't write file with original permission
Date: Tue, 08 Nov 2011 02:49:41 -0500	[thread overview]
Message-ID: <7dr51jf3ze.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <4EB8D225.6030002@gmail.com> (Guangliang Yang's message of "Tue,  08 Nov 2011 14:54:29 +0800")

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.





  reply	other threads:[~2011-11-08  7:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-08  6:54 bug#9988: 23.1; emacs can't write file with original permission Guangliang Yang
2011-11-08  7:49 ` Glenn Morris [this message]
2011-11-08  7:53   ` Guangliang Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7dr51jf3ze.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=9988@debbugs.gnu.org \
    --cc=guangliang.y@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).