From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ota, Takaaki" Newsgroups: gmane.emacs.bugs Subject: bug#22795: 25.0.91; Can't write read only file on w32 Date: Mon, 29 Feb 2016 10:05:26 -0800 Message-ID: <20160229.100526.284620885.Takaaki.Ota@am.sony.com> References: <20160229.084035.77911664.Takaaki.Ota@am.sony.com> <83h9gr8mns.fsf@gnu.org> <20160229.095354.534976457.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1456769185 7855 80.91.229.3 (29 Feb 2016 18:06:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 18:06:25 +0000 (UTC) Cc: 22795@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 19:06: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 1aaSCx-0001rN-Kd for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 19:06:11 +0100 Original-Received: from localhost ([::1]:38209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaSCw-0002E1-W0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 13:06:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaSCt-0002Df-CT for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 13:06:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaSCo-0007XO-8q for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 13:06:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaSCo-0007XK-5A for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 13:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaSCn-0002Lu-Vy for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 13:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Ota, Takaaki" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 18:06: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.14567691399010 (code B ref 22795); Mon, 29 Feb 2016 18:06:01 +0000 Original-Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 18:05:39 +0000 Original-Received: from localhost ([127.0.0.1]:53993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaSCR-0002LG-Eo for submit@debbugs.gnu.org; Mon, 29 Feb 2016 13:05:39 -0500 Original-Received: from mail-by2on0084.outbound.protection.outlook.com ([207.46.100.84]:58176 helo=na01-by2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaSCP-0002L2-Ge for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 13:05:38 -0500 Original-Received: from BY2PR08CA037.namprd08.prod.outlook.com (10.141.248.155) by BLUPR0801MB562.namprd08.prod.outlook.com (10.141.252.28) with Microsoft SMTP Server (TLS) id 15.1.415.20; Mon, 29 Feb 2016 18:05:30 +0000 Original-Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::133) by BY2PR08CA037.outlook.office365.com (2a01:111:e400:2c5c::27) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Mon, 29 Feb 2016 18:05:30 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.229) smtp.mailfrom=am.sony.com; gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=bestguesspass action=none header.from=am.sony.com; Received-SPF: Pass (protection.outlook.com: domain of am.sony.com designates 160.33.194.229 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.229; helo=usculsndmail02v.am.sony.com; Original-Received: from usculsndmail02v.am.sony.com (160.33.194.229) by BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Mon, 29 Feb 2016 18:05:29 +0000 Original-Received: from usculsndmail12v.am.sony.com (usculsndmail12v.am.sony.com [146.215.230.103]) by usculsndmail02v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1TI5SlU001860; Mon, 29 Feb 2016 18:05:28 GMT In-Reply-To: <20160229.095354.534976457.Takaaki.Ota@am.sony.com> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:160.33.194.229; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(199003)(24454002)(189002)(5423002)(47776003)(1096002)(50226001)(106466001)(92566002)(2950100001)(5003600100002)(97756001)(586003)(5001960100003)(81156008)(6806005)(11100500001)(230700001)(2906002)(76176999)(50986999)(1220700001)(5008740100001)(86362001)(87936001)(103116003)(110136002)(2351001)(189998001)(23726003)(46406003)(19580405001)(104016004)(19580395003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0801MB562; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD026; 1:aANbHDJw4cFsV/XPhQ0d/XV89QpqS4q/BbXvhdJ+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ClaVylvTPh5iZ6ruO0ax2gLjGW75w366nCV2AluG2Epucm18RAzGnuUFs8bCC4Wg== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BLUPR0801MB562; X-MS-Office365-Filtering-Correlation-Id: 3b87135e-a17f-4dc2-8d5e-08d34132e8d8 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB562; 20:M73or4bd6JK5un0Wm/jlH8RXNxhW4lCWraQdjuQqJ3d6Z60myYiJJIuvqtpbmLg9IAgwQNdnr81Cbi4OayJX6MeueqKYf13PnCNRxAtSiBlHB4ZHgBptLHVBt9esFDaKvbRyBFf5coYz5TCN1bpCvUvEX01Ojn6DtFxWgW/ONveQM5NOeDery/korzwtqg3JKPV3uBEYcNlJ3U4szoVGkW+gbqZS3INAVYQATyE6qdC6+lj+XDTcE72hs6lBvLmdvEb9CVIPgERv8vZkNh9pHGXturQdB9IcGfP2FsCmjMPSUOp5g13rbVC5BdxGGOEzN7A3AFIz8U69sgslVEcDEfnsRJOu9f0xPJEPoirRW478K39km/j6vrVjGEFiazl+RRNZIOiDHuPw4P4v/NV8fWyzXcfNa2s0FQmhb2E2o3mbyzc3LWZrCIGM1gBEpnUH9LOCvOL5ZKWC3QjKSzUl816z5vUVRhey+XF0FAawuI/8dpMpOwWFY0wW3oZGKCc+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(255870821582301); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(13023025)(13024025)(13018025)(13016025)(3002001)(10201501046); SRVR:BLUPR0801MB562; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0801MB562; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB562; 4:bYt1C+O17hGBMMtnpC3e3ZoH2WYgNbtZRIlnxiE93n0Fi7yrpxGh552efnRrSbPgQixFXoZZY14H/fEk/OfFkoxCNyjTdgben2sbd9tNl56Y4AUlM2SKuV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JpTQ7Fk3p7gWhUaibMs0cKlSEXmlCQR2J3/ew6590Gb3oVupLSqVaLx1qjrOEqcIrPi8Dp6ZIRPlq5uqfDB2BZLDUPF6pXCk/MUpZ644oJ61fz962kIOp5irYegpY41V5SoTfbyOD6QibAougxW1d aT2Eal7sTE0+kJEO6hZno/Dr/173SieaVuJVis6td2sUB X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB562; 5:6Bvmw03DJNUUI50FN/ZRqm9ds1wUOdUtGolz+LvNum3YWcJI3kFnk2fZ9z6mDtKzuZ5IHOY4h6XizJ4MMR5LnmoqD1ZbXB2IKaBje+jZ4zL7n5J6i3u6c4my8SWQvSmCw003QShsQLqKMYtiFX1lGg==; 24:1VNX3DHZd4GD5auKuyKNPNzBV2dn7ZWYXbTgGPyVKvCyfjH7fiRAhyqpR6up0SdVBITVoYGQXethrgZW3vCDkcKQ7cE49chyYU7j6KSEvT4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2016 18:05:29.7084 (UTC) X-MS-Exchange-CrossTenant-Id: 86f99b1e-a08b-4313-8c0c-2258d53da610 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=86f99b1e-a08b-4313-8c0c-2258d53da610; Ip=[160.33.194.229]; Helo=[usculsndmail02v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0801MB562 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:114154 Archived-At: Mon, 29 Feb 2016 09:53:54 -0800 (Pacific Standard Time): "Ota, Takaaki" wrote: > Mon, 29 Feb 2016 19:13:43 +0200: Eli Zaretskii wrote: > > > Finally, what about this part of my questions, did you look into this: > > > > > Also, I think by the time this code is run, the original file should > > > have been renamed to the backup-file name, so the file you are saving > > > should not exist on disk by the time we open it. If that is not the > > > case with 25.0.91, then perhaps what fails is not the open call, but > > > the rename call before that. > > > > Does the file that Emacs tries to open here, c:\d\ota\memo, exist when > > _wopen is called, and if so, is it read-only? Please check this with > > both versions of Emacs, and see if there's any differences in what > > happens. > > In both cases the original file exists right before calling _wopen() > but there is a difference. On 25.0.91 the file remains read-only but > on 24.5 the file is writable right before calling _open(). Now we > have some clue here. > 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. I will trace in lisp from save-buffer to write-region on each version to find how this permission difference is made. -Tak