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: Thu, 25 Feb 2016 09:12:43 -0800 Message-ID: <20160225.091243.233683117.Takaaki.Ota@am.sony.com> References: <20160224.135749.408852023.Takaaki.Ota@am.sony.com> <83h9gwg2j8.fsf@gnu.org> <20160225.090838.192544111.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 1456420408 14294 80.91.229.3 (25 Feb 2016 17:13:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 17:13:28 +0000 (UTC) Cc: 22795@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 25 18:13:14 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 1aYzTV-0002xQ-A8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 18:13:13 +0100 Original-Received: from localhost ([::1]:44728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYzTU-0006Ht-MV for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 12:13:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYzTN-0006HE-8M for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 12:13:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYzTK-0001Zt-1e for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 12:13:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYzTJ-0001Zp-UE for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 12:13:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYzTJ-0006Nc-QK for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 12:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Ota, Takaaki" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Feb 2016 17:13: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.145642038024516 (code B ref 22795); Thu, 25 Feb 2016 17:13:01 +0000 Original-Received: (at 22795) by debbugs.gnu.org; 25 Feb 2016 17:13:00 +0000 Original-Received: from localhost ([127.0.0.1]:46324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYzTI-0006NM-1F for submit@debbugs.gnu.org; Thu, 25 Feb 2016 12:13:00 -0500 Original-Received: from mail-by2on0056.outbound.protection.outlook.com ([207.46.100.56]:17536 helo=na01-by2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYzTG-0006N9-Fp for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 12:12:59 -0500 Original-Received: from CY1PR08CA0032.namprd08.prod.outlook.com (10.163.94.170) by BLUPR0801MB561.namprd08.prod.outlook.com (10.141.252.27) with Microsoft SMTP Server (TLS) id 15.1.415.20; Thu, 25 Feb 2016 17:12:51 +0000 Original-Received: from BY2FFO11OLC014.protection.gbl (2a01:111:f400:7c0c::153) by CY1PR08CA0032.outlook.office365.com (2a01:111:e400:5291::42) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Thu, 25 Feb 2016 17:12:51 +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 BY2FFO11OLC014.mail.protection.outlook.com (10.1.15.48) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Thu, 25 Feb 2016 17:12:50 +0000 Original-Received: from usculsndmail13v.am.sony.com (usculsndmail13v.am.sony.com [146.215.230.104]) by usculsndmail02v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1PHCnmn017681; Thu, 25 Feb 2016 17:12:49 GMT In-Reply-To: <20160225.090838.192544111.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-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC014; 1:K99XnBTU4+56U2yzVTYwzKCkLBtu12lreGkcUYmXPsWIqIQPw5I2SXcbuUv/eo5fIOlOSDPhQiHDoHsTTQ4ZpcH5PgN/Gzoqd2s/gvkzjf9XGa11Nbvzn1LTgHRyRxPih4HsPewfYlH1y5y0eRcNPt3tGYRFMGjlkey2jK4M6Vf9IyO+AbJecd2oiLX/n0/CIKCBQcqFanC98j0Mb86z6Rtl9+VkeWfznWRhCh87B3vbe8yhRFYmbtdnnX+UPcOQ40L1eDxK5JNwkMbtoKtgomjL97/RnPeN/R3Zny4iAB9AaBnPEII7hVx7sLgLuzMe6enIfHpnPLqhFrrNMBvQF5hXoqbVIGkSFcfEaGBNfqS7jHLuLvqc+VwkboKyrbkxbLob8tDnwyEnXIvu37/UEQ== X-Forefront-Antispam-Report: CIP:160.33.194.229; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(199003)(189002)(5423002)(86362001)(5001960100002)(2906002)(110136002)(76176999)(50986999)(189998001)(87936001)(5008740100001)(4326007)(104016004)(97756001)(6806005)(47776003)(46406003)(92566002)(586003)(23726003)(106466001)(1220700001)(1096002)(11100500001)(230700001)(19580405001)(2950100001)(50466002)(19580395003)(103116003)(50226001)(2351001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0801MB561; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB561; 2:cT0YC8G8jSmAdCX9aABdr2yz5ei++tH/0cJdAID6IvV1axJ5pgzMEa12Y2jwLrOVbB1TQadMIJNpzVSPBoQjWi0+Ik4/KhjH3N08cRVTfp9JF/5EXxSV8uyqOSKfD5ZyMIZ2Gtih/4lezfB7rLhJCg==; 3:5xGRXuz/gDep5Ee0zBwv2aeHIklaiTjtoEIfXTr9GWCf9AGgYuQD3EhIbl4axO0V3g+xl/irRssiwhTwFaDaq31tEd+k976QLtXl4XJS+WIQHCYbX44c38+xQsNZn045HDmG71xOnyWiuunYaZymtNp13VlLhORXrfRF0/XIVBfgjLGAAz6p8KiQSr+B8vuNJr3YbPxjg4D+P76S2nbkgi2jsHa+hQ4GK0Fa7ptIsFeZxnSYQtFjYrjdbK/mRukD8o8VIbWOB1aYHQxXdAlcRw==; 25:AD7riyBEUHpwx9ivzQ23U2hvbvUYlXW2LSgiHHy5TTnkdvbCpUATWUzQQbU2Om/40yS2Ft3M/YlHuxVEuSiNZ2IX2pb0JM/zzsa3UZWx9wMC5A4h0IsBAlSzGL1OahmYqtdu7myYlt7u+zk90qKMu4/tMQSynE8h7bGtosZyUlzAEhV6XDulA7Pv52FvI3TEQUle4NCjBoxzx/5HyfrzyDfdLpJ0mzfDWapH0F1gLoutCX6/xuMcgLQO3Cs/oSXxxoH90GQ+ldOCy3+khhEdvJ7vds/m8fYdhIkQcipHomBSEK3tp9sYL0RNyjdaGBDwohLm3YRlAqMwKD+PqTkQ2g== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BLUPR0801MB561; X-MS-Office365-Filtering-Correlation-Id: b3445cb0-8b4b-400a-87f8-08d33e06e458 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB561; 20:A3JM2tMQouzU2N6oI6gJlyu59hrx1OwNh7x115NKvP4UzPWZC4kf9xQV2jR7a6AyqAbJB53rwN/xXYbcX5iTvdMkScgONzsrHpjQX8Tog/fKWX9ZHmDZ7GHlwIF/b4irN27wdo+ZzTA8j8YFL6sgaQ2ig7q2PAC8oDElhTYQ6LEc5WM3coGL9KYQPC6IEVEMu2MPusYMxcAw2l3hAAEczbPO2nkMJcSIJSPKd5tdGTUv2W+DeCBVWsD5dhRy+c5vxfvySnr3MJzVQCukYNPCY5kYr5YrS58nNT/oRqBNeNlJ0tloTMtHwC/GrATdvXqDwyujhCM5Q7N/nuI7TdSM3aXtlWXmANdqdYnEFg4KsByBQSEm/jRy+Y1YuMtw/5zrQWzvBef5zoZG9msQ/Ycm4Oij1/2soRZLimlSNLoo2kuYD03ARKxx6K1+4oR4UyqT3FOkV3fbGZFsRtQCdoK9klMix7ukJYmLlTET6JHwbW1OxFhUL8DKb9KSb2PXozsu X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13018025)(13023025)(13021025)(5005006)(13013025)(13016025)(8121501046)(10201501046)(3002001); SRVR:BLUPR0801MB561; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0801MB561; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB561; 4:o9lsjvcVm8ELXs5Jf7OGFNQ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BLblECoEXYMYfI5kJ3r93SBeSz/zwHurImjP/3jg1ngynQskO3/HGzAdK/GAdfhFqaGsTKu+LAFgTB5tuSIjGcInw/q6BUI+k4doSKFiuUntceJ9ye85e9kCkfinIX/KpASCNu9O46zwCsm52jhTnc3xl22xmYzGFLwBOTzhwFemkyMrIsRFcvZNorCRQ77EWBEOe1W9jH4vkIZwcVALwvh7Mv0zFLUzBbNccwYLs2sVx/Xp wp3b6+uHEkgNIp6Kn4N3xCH0kEDXMLXhVbZhhV9U2NDOT X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB561; 5:Vkg76qX3PlMgOP91mhPRo/o6maKt66IJKF3njkPxp5CO5kpTJyceCWmrmSatYEXck/Cdh8wQtb0TQgj5roIRinU3pFNrOdhu4a1zd6reJAnmZKj937wakOicJqNCz2W8+eUDOkbJZ+OnFpMI26w7/w==; 24:lH8k3RDQkSH6j3d5SphP8C5g7Mx/X0qaLrJ1L8cTXwx9p5uSTGcUaLdVpGULGqctsZnn1jLNUuesRJLUWk81+yfdw+KeR/SxvBdxoZ4juVc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2016 17:12:50.8141 (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: BLUPR0801MB561 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:113813 Archived-At: Thu, 25 Feb 2016 09:08:38 -0800 (Pacific Standard Time): "Ota, Takaaki" wrote: > Thu, 25 Feb 2016 18:47:39 +0200: Eli Zaretskii wrote: > > > > Date: Wed, 24 Feb 2016 13:57:49 -0800 > > > CC: <22795@debbugs.gnu.org> > > > From: "Ota, Takaaki" > > > > > > Wed, 24 Feb 2016 21:09:57 +0200: Eli Zaretskii wrote: > > > > > > > > Date: Wed, 24 Feb 2016 08:44:02 -0800 > > > > > From: "Ota, Takaaki" > > > > > > > > > > When a file is read only on w32 platform I used to be able to write a > > > > > file by toggling the buffer's read-only-mode state and answering yes > > > > > to this question "File memo is write-protected; try to save anyway? > > > > > (yes or no)" but now the writing fails by an error message "Opening > > > > > output file: Permission denied, c:/d/ota/memo" > > > > > > > > I cannot reproduce this, neither with today's emacs-25 nor with the > > > > last pretest of 25.1. If I answer yes to that question, the file is > > > > saved without any errors. > > > > > > > > How did you make the file read-only? (I used a Windows port of > > > > 'chmod' and the 'attrib' command.) > > > > > > I used Windows Explorer's GUI to open the file property window and > > > placed a check on Read-only attribute. I am using mingw to build the > > > emacs. I just tried with 24.5 and it works but not on 25.0.90/91. > > > They are all build by the same mingw. > > > > This doesn't happen for me even if I use the Explorer. > > > > There's some other factor at work here. Does this happen with any > > file, anywhere on your filesystems? E.g., can you try on a drive > > other than C: ? > > > > Also, do you, as the user, own the directory where this file lives, or > > is its owner another user? > > > > And what filesystem is that? NTFS or FAT32? > > > > Finally, does this happen in "emacs -Q", or do you need some > > customizations for the problem to happen? > > > > Thanks. > > > > Yes, I own and have full permission of the directory. I noticed one > thing when I tried other than C: drive. An external USB drive with > NTFS file system exhibits the same problem as C: drive. A flash drive > with FAT32 doesn't show the same problem. Have you tried with NTFS? > > -Tak I tried "emacs -Q" (actually "./runemacs -Q") and the result is the same. On FAT32 the writing succeeds. On NTFS the writing fails by Permission denied error. -Tak