From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9988: 23.1; emacs can't write file with original permission Date: Tue, 08 Nov 2011 02:49:41 -0500 Message-ID: <7dr51jf3ze.fsf@fencepost.gnu.org> References: <4EB8D225.6030002@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1320738619 15311 80.91.229.12 (8 Nov 2011 07:50:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2011 07:50:19 +0000 (UTC) Cc: 9988@debbugs.gnu.org To: Guangliang Yang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 08 08:50:15 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RNgRi-0002pI-RJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2011 08:50:14 +0100 Original-Received: from localhost ([::1]:55731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNgRi-0006lZ-9I for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2011 02:50:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNgRf-0006lE-DA for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 02:50:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNgRZ-0005GG-U6 for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 02:50:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNgRZ-0005G8-QN for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 02:50:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RNgUP-0007ru-IP for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 02:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Nov 2011 07:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9988 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo unreproducible Original-Received: via spool by 9988-submit@debbugs.gnu.org id=B9988.132073876330205 (code B ref 9988); Tue, 08 Nov 2011 07:53:01 +0000 Original-Received: (at 9988) by debbugs.gnu.org; 8 Nov 2011 07:52:43 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNgU6-0007r7-KW for submit@debbugs.gnu.org; Tue, 08 Nov 2011 02:52:42 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNgU4-0007r0-9U for 9988@debbugs.gnu.org; Tue, 08 Nov 2011 02:52:41 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RNgRB-0005MD-TE; Tue, 08 Nov 2011 02:49:42 -0500 X-Spook: virus infowar Ortega rail gun blackjack Audiotel Pine Gap X-Ran: /8rn49M"Dr{&Tic,f_j+qM7#nGT2_*)6YJECwV@iN{\-+`L$kJ#I_*X0%+:~MYV},T7)}u X-Hue: green X-Attribution: GM In-Reply-To: <4EB8D225.6030002@gmail.com> (Guangliang Yang's message of "Tue, 08 Nov 2011 14:54:29 +0800") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 08 Nov 2011 02:53:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53688 Archived-At: 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.