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, 6 Jun 2016 09:24:23 -0700 Message-ID: <20160606.092423.09676870.Takaaki.Ota@am.sony.com> References: <83vb222i26.fsf@gnu.org> <20160601.102253.02067758.Takaaki.Ota@am.sony.com> <83bn3hwcnq.fsf@gnu.org> 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 1465232701 11482 80.91.229.3 (6 Jun 2016 17:05:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2016 17:05:01 +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 Jun 06 19:04:49 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 1b9xxJ-0000H4-2v for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Jun 2016 19:04:49 +0200 Original-Received: from localhost ([::1]:43958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9xxI-0003qV-CR for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Jun 2016 13:04:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9xKt-00034Q-RM for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2016 12:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9xKo-00089P-J8 for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2016 12:25:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9xKo-00089L-Em for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2016 12:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b9xKo-0001xy-A9 for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2016 12:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Ota, Takaaki" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2016 16:25:02 +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: moreinfo Original-Received: via spool by 22795-submit@debbugs.gnu.org id=B22795.14652302747522 (code B ref 22795); Mon, 06 Jun 2016 16:25:02 +0000 Original-Received: (at 22795) by debbugs.gnu.org; 6 Jun 2016 16:24:34 +0000 Original-Received: from localhost ([127.0.0.1]:56948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9xKM-0001xF-6v for submit@debbugs.gnu.org; Mon, 06 Jun 2016 12:24:34 -0400 Original-Received: from mail-bn1bon0064.outbound.protection.outlook.com ([157.56.111.64]:21166 helo=na01-bn1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9xKK-0001x0-2R for 22795@debbugs.gnu.org; Mon, 06 Jun 2016 12:24:32 -0400 Original-Received: from BLUPR08CA0051.namprd08.prod.outlook.com (10.141.200.31) by BN1PR08MB009.namprd08.prod.outlook.com (10.255.202.16) with Microsoft SMTP Server (TLS) id 15.1.497.12; Mon, 6 Jun 2016 16:24:25 +0000 Original-Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::113) by BLUPR08CA0051.outlook.office365.com (2a01:111:e400:88d::31) with Microsoft SMTP Server (TLS) id 15.1.506.2 via Frontend Transport; Mon, 6 Jun 2016 16:24:25 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.230) 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.230 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.230; helo=usculsndmail03v.am.sony.com; Original-Received: from usculsndmail03v.am.sony.com (160.33.194.230) by BN1AFFO11FD025.mail.protection.outlook.com (10.58.52.85) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Mon, 6 Jun 2016 16:24:25 +0000 Original-Received: from usculsndmail11v.am.sony.com (usculsndmail11v.am.sony.com [146.215.230.102]) by usculsndmail03v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u56GOOI6018447; Mon, 6 Jun 2016 16:24:24 GMT In-Reply-To: <83bn3hwcnq.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.94.1 (i686-pc-mingw32 built on 2016-05-17) X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:160.33.194.230; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(24454002)(199003)(5423002)(46406003)(23726003)(92566002)(189998001)(586003)(50466002)(50226002)(104016004)(5008740100001)(8676002)(87936001)(8936002)(6806005)(110136002)(5003600100002)(246002)(19580395003)(230700001)(2950100001)(4326007)(97756001)(11100500001)(47776003)(2906002)(86362001)(50986999)(103116003)(106466001)(76176999)(2351001)(19580405001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR08MB009; H:usculsndmail03v.am.sony.com; FPR:; SPF:Pass; PTR:mail03.sonyusa.com,mail.sonyusa.com; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD025; 1:bOYYqjShzClBKQUPZ127Hj/35kladsU2LtKIxjpgnbbpcjP3Evh/PGIiTcYEDEN04C8YwNqj4xDGXJXWdzYpj0N2QeFfT8htOPUXEx7fox+JemSoL1PSYeFR3b9xoda14RSO1nrK07qagWblu3xOJJDY0KlxS75BryX2u2g8xRNhsksiReBxHYIPc8/nh4TThd+TCigDRJG0p8qLIH1FEc0U7KTDzo9gtReKOr/TslJIfT705aCQT6SHpMSmvaM411Q/3J5KXeiWa3HwYxPXPBNfK/h6iq8mW3sqXhm9A7UfKfe8Xb1Ifn+IWx39+wXXV3Nlciv5uWBDLu9iykQKulSc/fSo31dx/8867dL77P30/7zJna+jje2mcRL93tEMu2Luf0FPKDeA+FKT17Lcz2zNZhwm1La8sgfL4fWdSCVD1iYEXWRbzJsO19woO2pNf4jS8bo53fiFaISIHatz8YYUGeJg23pphB8s/Psa6lFklluaWGnRMxSIJw9PxzYv X-MS-Office365-Filtering-Correlation-Id: ad7352fb-4054-4b18-fe7c-08d38e2706af X-Microsoft-Exchange-Diagnostics: 1; BN1PR08MB009; 2:AB0FI2gwIt1nGehpBj06fWQU1EnK0XtH48c2TpEviHUMmZLqahbMIoGmFFb/7vH5tRROxvx4zfG7v1Ey9raCBXE4lSUOmXj5qgZ9vtbLLTeWp2XdXY1UMhGd/g+DcFzBd1DWXJEi4LBNqODs9XjV7YIFtQkBrEh/y5yx3leQ10noAh9YpyLj4RvpECZ14vPz; 3:FnvDuVXF7/xGrTEhNGdY10U0ae9nYpFqLU5hhJo04DpRB12fUwObb5VzIYOBbDL2gjf3rtatDMlYf7Huv4w54kOtc/MH6BWQRdbw/LD9cua2te1bpopdFO3ZsAdpKlv7Fxk7n/ghOzSP/+3EdfsdohhEecMPrZCTHVI0ViUna5x3EjwhXssGWUn0cQM44osTNq1EPMCvK2S7ULn+CKg8SOxqYbDtWD3R9S7nblKFcRIX1CAoEVvsQ2vEJUS1VCGKKGe1KPQt62jVuBTcIHruqg==; 25:3W79OQJTVQr+9QxhKu1TBudu5jAyIanHSiKswsaNC1odogoagawtvd5uEP7wkwS0u9kboOEAiH0EQEMPRc2xLvAqGJEycW9fF4IZ3sfmVXnqiQxAKx+TRCr6ZtO0F/btSPvZ5500BLLMWbId1rH7NBkpyJz6jfcnJcH56JYqoLF28JyHFS0wG2agcDpva7Z0Zgb4lE3gfy2nfWM1dxpsKhnappK+tmyNaeHsUFz48XCHxwCAy9y3wCa/mu/PYIupmja1O9qVikLycAYDhq9YGcIRcILt7q9LFk5LTz7sic58k7n03xcBU7t6fhyvo1pB/42H9fhfgCr4nNKBWtDmxFD2SAY6p1nFiSecjgdhgLT X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BN1PR08MB009; X-Microsoft-Exchange-Diagnostics: 1; BN1PR08MB009; 20:uMIeniUtgwfgBYj78k5xwKkkXpo/vDNgk8uHZoBmCOnayp4FVCxqIFBKbYIqPoHysc6+mFrNpf6/ts66fhhoDZ35TR1N0odj4a/SuYT39SchruLVhdW7iHl5Y968CDVPuBK39a2D4374ofXyAHtz2UpBttXejVHQPH+yYxIWzOW8QSLhcXH6synbbtSh8SwQ4T/Rh5xoEd8FdJuRQD8xsj9BxfcvoKqeKyPDIA1Dw7+u8Sk6zspTgHtaTsFY/uCtwGcd+JJvfeCbslEuqHKtBdAZAxZHH2oUOg3HpSQF2ufQWvsii/yoy/O7vwtIAW6BwAxcL/qgYrQI6E8dpCRkFOqcGrhauvlUAZ/Esh78bCM5G7LFJJNrBcRYmln5Pula8cs14G1muOtV+jL+NGpwx7mKi6Ly0StjWSb5joQJa1Kv/j9IrxUhp6YFuGRpPgCuEt/IkkGdzRXI5D28Tj1yajmiIlQY3OFy5SpymHHOP6sLOFrjOIIKOZ2D1Jy/spx9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(182409339516656)(22074186197030)(255870821582301); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13018025)(13023025)(8121501046)(13017025)(5005006)(13015025)(10201501046)(3002001)(6055026); SRVR:BN1PR08MB009; BCL:0; PCL:0; RULEID:; SRVR:BN1PR08MB009; X-Microsoft-Exchange-Diagnostics: 1; BN1PR08MB009; 4:4Nw2tYFkXoomd4LkymyJMwdiyJlX1tOp0PWhSE/C85lI6KLwt2rEkWZPVKY271iiSp9Jm88p1PSpNQgmMrOOeJzdVzx6MJHF6VO2zHXFt9SPk+HRs4L+S0l/dZHn04kMJBE1/8+u9nJ/yQSTfTK7UEVFBPO1bIERlgID7e4JWp9rO5IkTJawXdAGoXiNsxI+9FTQqDMcsHvwUxQvrolAoyTctH14YcNKKEVfgjcqV6V2XNVOdpNmXU8HOir8iA1w92KIxanqGt67icM/at0oFaZ5Edeln2LPYpPUCTssyeXetX3zWLnNhiJRGBP8QumQsj2RbN6kEakZ1nFfxGtaIbEBCnweRMTkKawZm8+EOOqe1eXdYXUN40KzyJ4dgxasPKQwItzPYCoY14cZXiCZc+CApSwrNre6vGmGh4KrSNeZKtx3G5APGop+WtiW0r/A/YO07JkSKBBuhNrCL9NmSjFqTvRTThrugBH1CEK7nk9SkscGfAFAqPd20dfx6YiMddu16Fm5iRLaiCrqzJR0roVg5FU14/iwKk7LFti7ZIQfpAxuPnfDvSWxOuLl2V2NwW9EoDpJJYgWen1tdYsJtQ== X-Forefront-PRVS: 096507C068 X-Microsoft-Exchange-Diagnostics: 1; BN1PR08MB009; 23:4V3wIE/fRObJXeDtUWC53HX2BCRALbJwWmKFZaJKXpCX9LqABrtXW+8eTGblcOYlas0hQ4njcmLpKKB/g2wPuORTqYr5GhISUS3pDiiezi73BsbBZwofP4ZmJyAH9CqwVj8LkPsKleycxdweX+Nl2iVLfGdCaVF6zE5/FAD3odWX0KgWqpxWwiI5I5mIBEaQi4j1NerVQlFZqWDcit3/XRKlEHLHBG2HkVNYj5YixB5VMp60tnxwiroBF5Oz1IDtpwu4XBZfpPmZuHuAOlz8FsqhMcKDIKm7NNtNH6cc2ZxZHSUEdzefwIS6XtyLE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iagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2016 16:24:25.4877 (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.230]; Helo=[usculsndmail03v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR08MB009 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" Xref: news.gmane.org gmane.emacs.bugs:119165 Archived-At: After opening a read only file, execute read-only-mode, modify the file and try to save the file under emacs 25.0.94 on Linux and Windows file-ownership-preserved-p returns non nil value on Linux and nil on Windows. But I spoke too early about this. After this, I then compared emacs 25.0.94 and 24.5 on Windows. On both version file-ownership-preserved-p returns nil while save succeeds on 24.5 and 25.0.94 fails with "Opening output file: Permission denined," error. So file-ownership-preserved-p is not the root cause. I still need to continue to chase. -Tak Sat, 4 Jun 2016 12:01:29 +0300: Eli Zaretskii wrote: > > Date: Wed, 1 Jun 2016 10:22:53 -0700 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > I still don't have a conclusion but the root cause seems to be related > > to file-ownership-preserved-p that has some platform specific > > implementation. When I open a read only file on both Linux and > > windows-nt, Linux returns t while windows-nt returns nil. > > Thanks. Just to make sure I understand you correctly: which function > returns nil or t when you open a read-only file? >