From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22795: 25.0.91; Can't write read only file on w32 Date: Mon, 29 Feb 2016 20:48:30 +0200 Message-ID: <83bn6z8i9t.fsf@gnu.org> References: <20160229.084035.77911664.Takaaki.Ota@am.sony.com> <83h9gr8mns.fsf@gnu.org> <20160229.095354.534976457.Takaaki.Ota@am.sony.com> <20160229.100526.284620885.Takaaki.Ota@am.sony.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456772484 31928 80.91.229.3 (29 Feb 2016 19:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 19:01:24 +0000 (UTC) Cc: 22795@debbugs.gnu.org To: "Ota\, Takaaki" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 20:01:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaT4D-0006hq-Cp for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 20:01:13 +0100 Original-Received: from localhost ([::1]:38567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaT49-0002ry-Po for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 14:01:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaSsT-00086g-68 for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 13:49:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaSsP-0001xr-TF for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 13:49:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaSsP-0001xn-PK for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 13:49:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaSsP-0003NN-Jw for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 13:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 18:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22795-submit@debbugs.gnu.org id=B22795.145677173312962 (code B ref 22795); Mon, 29 Feb 2016 18:49:01 +0000 Original-Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 18:48:53 +0000 Original-Received: from localhost ([127.0.0.1]:54017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaSsG-0003N0-VQ for submit@debbugs.gnu.org; Mon, 29 Feb 2016 13:48:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42542) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaSsF-0003Mn-Sj for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 13:48:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaSs7-0001vt-OU for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 13:48:46 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaSs7-0001vp-KP; Mon, 29 Feb 2016 13:48:43 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4997 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aaSs6-0004OJ-RH; Mon, 29 Feb 2016 13:48:43 -0500 In-reply-to: <20160229.100526.284620885.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:114157 Archived-At: > Date: Mon, 29 Feb 2016 10:05:26 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > I set a break pointer at write_region() in fileio.c and then perform > the save-buffer command. When emacs breaks at write_region() on 24.5 > the file's permission is changed to writable while on 25.0.91 the > permission remains read-only. Both results are wrong: the file should not exist when write_region is called, because Emacs renamed it to the backup-file name. The problem is most probably in making the backup, so I suggest looking at sys_rename instead.