From unknown Wed Jun 18 00:28:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22795 <22795@debbugs.gnu.org> To: bug#22795 <22795@debbugs.gnu.org> Subject: Status: 25.0.91; Can't write read only file on w32 Reply-To: bug#22795 <22795@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:28:06 +0000 retitle 22795 25.0.91; Can't write read only file on w32 reassign 22795 emacs submitter 22795 "Ota, Takaaki" severity 22795 normal tag 22795 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 24 13:17:46 2016 Received: (at submit) by debbugs.gnu.org; 24 Feb 2016 18:17:46 +0000 Received: from localhost ([127.0.0.1]:44133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYe0Q-0002jY-1u for submit@debbugs.gnu.org; Wed, 24 Feb 2016 13:17:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59889) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYe0O-0002jL-GP for submit@debbugs.gnu.org; Wed, 24 Feb 2016 13:17:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYe0I-0007FT-1s for submit@debbugs.gnu.org; Wed, 24 Feb 2016 13:17:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50, RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYe0H-0007F1-UX for submit@debbugs.gnu.org; Wed, 24 Feb 2016 13:17:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYe0G-00082u-DH for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 13:17:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYe0D-0007E2-6F for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 13:17:36 -0500 Received: from mail-bl2on0067.outbound.protection.outlook.com ([65.55.169.67]:27392 helo=na01-bl2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYe0D-0007DU-0k for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 13:17:33 -0500 Received: from BY2PR08CA0011.namprd08.prod.outlook.com (10.163.62.149) by BL2PR08MB529.namprd08.prod.outlook.com (10.141.94.142) with Microsoft SMTP Server (TLS) id 15.1.409.15; Wed, 24 Feb 2016 16:44:08 +0000 Received: from BL2FFO11FD010.protection.gbl (2a01:111:f400:7c09::189) by BY2PR08CA0011.outlook.office365.com (2a01:111:e400:58a4::21) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Wed, 24 Feb 2016 16:44:07 +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; Received: from usculsndmail03v.am.sony.com (160.33.194.230) by BL2FFO11FD010.mail.protection.outlook.com (10.173.161.16) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Wed, 24 Feb 2016 16:44:07 +0000 Received: from usculsndmail13v.am.sony.com (usculsndmail13v.am.sony.com [146.215.230.104]) by usculsndmail03v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1OGi5Vh019996 for ; Wed, 24 Feb 2016 16:44:05 GMT Date: Wed, 24 Feb 2016 08:44:02 -0800 Message-ID: <20160224.084402.229180137.Takaaki.Ota@am.sony.com> To: Subject: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD010; 1:WtO7DJx7ouuXMh5urEgjqjhriUl/INkLxqCm4BTk+pctxrU5TcThF4um/UoEtzR2A2MiE8OCXTeDAiv9M1zL8cJvbOk7yflWTHkB4lFEY7mTEWuUzAk9S9SzbqfwTEakw563szSNHPe1O4vkmpViUdLYyqdg0022oC7WpeHTfNTh+8ivLuRl6vO7qJoyPOPI662R/OGCJC/uvkk77XjDqKbdvDJbP4gfZg0aljHQeP0FpIV3nTCIsO5guFJYqlVDU+JrtMHKrpA8q18MM+Q4tMdr48inyr33C/lyAFVBqEJrvrg/ovDR79jBhfjCzzqV1aZa7kyQ5Mx3MyySIDWJ8tCb94qAIYdUhjeLLM0QDlLbHf7DR1NveJ9f7XDsKNCIhyFAWr1IYg5CO2D782Iac94k16j/i0yjedBM3pB9VtM= X-Forefront-Antispam-Report: CIP:160.33.194.230; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(377424004)(189002)(5423002)(87936001)(107886002)(6806005)(11100500001)(50986999)(110136002)(189998001)(5001960100002)(1096002)(230700001)(47776003)(86362001)(551544002)(5003600100002)(1220700001)(586003)(5008740100001)(2906002)(50466002)(23726003)(50226001)(92566002)(229853001)(2351001)(103116003)(106466001)(46406003)(97756001)(5890100001)(450100001)(104016004); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR08MB529; H:usculsndmail03v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB529; 2:ejNpiGElqes2xT2LaMbL7Z6cND/dhR7lVNHxKneuWlkCjEhKl1/RE/rFZzMov8vTK6OGvnjAndl//6QagwWRDFou8LNedB5LjM+U3UHE1a7se+U2l3fqJPO2jUaXwip/PNIzSItxY3B1w030eQYIoA==; 3:XRQk3cw0cidE6KeEV7qS9IS+IAB+L9qiC3uqur3goTOeAlOBJAetvA9bD8hYlBQPNIFuCph/geTSpEhSHxilPfWgRPRhH4HkvlUtkEj1eVwQxcTC/NBczItxKAbBtoVzrDM9N7880G9XbMUZJljCnRB96LQ0nAI0j5pCMMHvNjW+HJRBQSaKZ4NFOG2LqnFh6y7S13c7i6ecmtovyFoVK4SqeGsnFdirg1OO2t5zo28FyyBGcXtOpzPiQAJHO2m9nwuBi/ny4vrkbEHFLiAEUg==; 25:o4+3tElb8v/h8WJE68b2bigOHty7ACxfXrAAZJMAi0ab3b4L5HHboJVIg0Hbjo/lOCx2DCvkBZPEsD3nss4weHmGpx+ab8NePjOE4YfInMIG77lbLLGCkkiHL4zonobZjLe9w0vXYVwrbJ2sOi2OtqQuM37Nw1PtCtZPvQLyB5kAdrQw7M3L542aXTZDuNf5NO3raOFPX0E2tHfQMywcQ7XMrkeQitqhjQG5tnHyvdkvzsdmM0xxOL3xopmLDa57Mm3zZXEahptVyCun6C7+QZxRUwOsH37Izm6eKQc7AVO48rryGrRc65LTTo24DX/3G4vMmO3+xJ31y5unpf78hA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BL2PR08MB529; X-MS-Office365-Filtering-Correlation-Id: 06aed01b-07de-4338-d45d-08d33d39b67c X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB529; 20:lQcR7V9MV5egqOUQIFyPBw+wgbFhk+zvAcbr1yvQYomxWNqmQxKPiUy4faItEmePV8pvxog/FabprthxB9e9AXEeMVWY5GpQyIGlya35mLc+FCREh2S/2VnPzCnzi5UO+d51ITRf0DwjW5wRwxTUe0yCUuI8Wk8O00XwsWDrGT0/Sv2MRHWJf9pHGjoMYJ6XFbKsxH/RBYxht69L8FkgWrzsJGP53kO+/UEz2e04fOekKvwXgohJvP4n7cKobaRsiWHBQuM5SWUhnyJh5Za7rnzR5pTUMruDPotjwwI31Zl7DVramdL1EAA1tXZg9OmIWb3wz2lEO96J7OSAPC8wzTKKo5NPUF1yTJQrGyHKo4olDkWaceziE7XsabhNwTHqtW3+CYp+Wm3tbitYxziMlc6+IHgDxc3SbkUXc/8zEG/4SYJNhrLh7zIeB7wWqs95aqS3ruX6kFAzrtOdZKVjKjXdAQoKPD0okJTUTuyBZvl2S2bkLvanAJ7Mq7secpPT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13015025)(13024025)(13023025)(13017025)(8121501046)(5005006)(3002001)(10201501046); SRVR:BL2PR08MB529; BCL:0; PCL:0; RULEID:; SRVR:BL2PR08MB529; X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB529; 4:WzzRImhTXQk8nTTIC6xuYijI2s5/JeIx6ydb8WmPBM2uwBgYwiOVjCIvYi3BmMs+62FUE4u0J8GwuSU8CJiF2gv51L9IepbIkNwNsH9RMCkrx9sR4fQAhWuGAzQ39dZAOFmibgMRXxUYVsYJoTn1vHkmmoMQW5HpvsBZfOGPA/5K+qRiSUoUskK3i5CNeHPwbkQdW7CpPzXeSEafJDC32Ba7x2x7rNpEm9Y8leD6ccifSNCmiua7BIBEPavaaIXbOfMXlF9okwshAL35HdEn0ash5Yz6TWw5hVwCwkhG7KhNMJCOwwWYQLfwjhfw1tAp18woiyNgYOx6Pk4/bLV8lC8EK7X+61lRltZwvoQlOY5bYxBkx2SGWWXdG9W9XeSmGiDsqtBQ8CwR+rX9EjYgVKAwXjBigbRAY90Ee/lb0lXx+MhYLotm7Uv2M5wa74gTkohOgqbV4KC1+gSVrzQddQ== X-Forefront-PRVS: 08626BE3A5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR08MB529; 23:kDy9kuKhb/X/o1E3bOoWgGC4PiKWPj6R/CN6Vll87P?= =?us-ascii?Q?VDUQCz6/hr7WK+3VeMmjy0H8M0z+X3E7PAsrDDzKvoppXD39oiZwYSl5ScyE?= =?us-ascii?Q?7ImfxTI+aMCyEC66fmq/ehH33qVzBgp/8HItux87+P7DAoMuqaG7CJmOjbls?= =?us-ascii?Q?HBeyCgsz5+Ev9LCucwSTbX2/egWQapDPSKIA3/HJBqaR7P+1J5iYfr8rKxn+?= =?us-ascii?Q?OJJTNd2thDBHwWyI69EKUoqSRmuYLnDKxd09JEBMJdwZ518h3b1RiMvUSdnS?= =?us-ascii?Q?INAOPXxM99+zawhDeiG3TjbkNC71LvyRUGOgMBn/IGUf2+O8thPlsFxon+XW?= =?us-ascii?Q?rlySomzBkM2Snbf6gXx/LhD0vePzejZH9sIrG2K5RowZmjqXipCGffnbmW/y?= =?us-ascii?Q?jk+iNyhmKp1qSZJR/QPq7m2swgf+pPL7iePSZqVj0lFXEnJ3j7cWzdoJQSY2?= =?us-ascii?Q?oKw8MaSBDFmwZkCPqQuXQiIqFxzTn+lWdALKqTLOnXNXb0KpMuxYn/FPuppM?= =?us-ascii?Q?6tEIKwLWdl3hRhG+etmyzaRSIBjfGPtbbAQ5HFo0/Qn3YvZUyelGhHrMYBh7?= =?us-ascii?Q?hzZO/nTof2D9vF0C6VPmYF0mvgpk3cduFhNGxPfLFLxcMcN9d80FB8PDnnl0?= =?us-ascii?Q?xRW8nbzixduiu7aN8G/PEmYN56ai1be9MKE7v4ZJH/CJOAAO6uPR2bpumE7q?= =?us-ascii?Q?Q9X9xbLgdAMY7Ee00AjgMi/0Koj49RuXASIurgODbOEqHtiXPhYSzjaRhmeN?= =?us-ascii?Q?oYvLzaACTNSQKgcTvo+Vwknu3ItqxbUvn7x5mp/qbO9ExfOj4P/9evT4+If6?= =?us-ascii?Q?m1/l//ymvbS97U3uWa3GkbSctr4i+OQvDEkUeq89ceE5c/RqVci0xyQzCfVC?= =?us-ascii?Q?RnqjPMbqcfYT5VO4++iLUMAYqfl5sePCRJrP/YC/P2ZvcWb+taZXSHmioE54?= =?us-ascii?Q?WFf75Kb45lyqJO+WiF8ThO4SzPSePrzVEbWQsSWErJwYgzsYgvcNws6HG1BI?= =?us-ascii?Q?Sm9I9lLii7E+KmstZRqjWu?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB529; 5:g+P7ulcXAJg3fn72/gm3KjKRIrzXwsDrxuEDP7RfcYI0oy2b5aalJFBhEUzyav4Kc9Z29px0qM4Q0qetTnqJSXXGZ2hryQJ7re0dgD22/o6mLlYWqiItaZHm/s/FtPFk88TdiITVW/Gl++yLrTEeKw==; 24:7nD+U4ZDZxORsnS/IyuyTd05uIGg/bEfE9nGnn9prx/wyAJgyAEEkjdlpKBGImnzeW4MIm5ugJT37RLM873h4UXxZOAZ0h4kYqMCZLWv0W0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2016 16:44:07.1096 (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: BL2PR08MB529 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) 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" It still works on Linux platform. Is this a new feature/policy on w32 platform or a bug? It is certainly inconvenient. -Tak In GNU Emacs 25.0.91.2 (i686-pc-mingw32) of 2016-02-17 built on TAK-SVZ131190X Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --prefix=/c/emacs/emacs-25.0.91 --enable-locallisppath=/c/emacs/site-lisp' Configured features: SOUND NOTIFY ACL TOOLKIT_SCROLL_BARS Important settings: value of $LANG: ENU locale-coding-system: euc-jp-unix Major mode: Summary Minor modes in effect: auto-image-file-mode: t recentf-mode: t display-time-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t size-indication-mode: t column-number-mode: t Recent messages: Checking 70 files in c:/emacs/emacs-25.0.91/share/emacs/25.0.91/lisp/erc... Checking 34 files in c:/emacs/emacs-25.0.91/share/emacs/25.0.91/lisp/emulation... Checking 168 files in c:/emacs/emacs-25.0.91/share/emacs/25.0.91/lisp/emacs-lisp... Checking 24 files in c:/emacs/emacs-25.0.91/share/emacs/25.0.91/lisp/cedet... Checking 57 files in c:/emacs/emacs-25.0.91/share/emacs/25.0.91/lisp/calendar... Checking 87 files in c:/emacs/emacs-25.0.91/share/emacs/25.0.91/lisp/calc... Checking 122 files in c:/emacs/emacs-25.0.91/share/emacs/25.0.91/lisp/obsolete... Checking for load-path shadows...done scroll-one-line-down: Beginning of buffer [16 times] Auto-saving...done scroll-one-line-down: Beginning of buffer [12 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired-x dired format-spec rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils dabbrev rect flyspell ispell sdicf-client stem sdicf sdic qp browse-url character-fold misearch multi-isearch bookmark pp network-stream nsm starttls tls gnutls mew-varsx ffap url-parse auth-source cl-seq eieio eieio-core cl-macs gv gnus-util mm-util help-fns mail-prsvr url-vars wwtime file-templates ruler-mode time-stamp eudcb-ldap ldap password-cache eudc eudc-options-file cus-edit cus-start cus-load eudc-vars edebug jka-compr compile image-file gud pcvs vc-cvs pcvs-parse pcvs-info pcvs-defs easy-mmode pcvs-util ewoc recentf tree-widget wid-edit byte-opt bytecomp byte-compile cl-extra help-mode cl-loaddefs pcase cl-lib cconv mew-auth mew-config mew-imap2 mew-imap mew-nntp2 mew-nntp mew-pop mew-smtp mew-ssl mew-ssh mew-net mew-highlight mew-sort mew-fib mew-ext ange-ftp comint ansi-color ring mew-refile mew-demo mew-attach mew-draft mew-message mew-thread mew-virtual mew-summary4 mew-summary3 mew-summary2 mew-summary mew-search mew-pick mew-passwd mew-scan mew-syntax mew-bq mew-smime mew-pgp mew-header mew-exec mew-mark mew-mime mew-win32 mew-edit mew-decode mew-encode mew-cache mew-minibuf mew-complete mew-addrbook mew-local mew-vars3 mew-vars2 mew-vars mew-env mew-lang-jp mew-mule3 mew-mule mew-gemacs mew-key mew-func mew-blvs mew-const mew kkc ja-dic-utl japan-util advice thingatpt time cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs finder-inf w3-autoloads package easymenu epg-config time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 421738 40180) (symbols 32 35267 0) (miscs 32 389 1024) (strings 16 84070 27755) (string-bytes 1 2070737) (vectors 8 31268) (vector-slots 4 1554396 32522) (floats 8 796 528) (intervals 28 7055 1406) (buffers 516 38)) From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 24 14:10:14 2016 Received: (at 22795) by debbugs.gnu.org; 24 Feb 2016 19:10:14 +0000 Received: from localhost ([127.0.0.1]:44190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYepC-00049G-C1 for submit@debbugs.gnu.org; Wed, 24 Feb 2016 14:10:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48500) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYepA-00048z-1D for 22795@debbugs.gnu.org; Wed, 24 Feb 2016 14:10:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYeoz-00057X-SO for 22795@debbugs.gnu.org; Wed, 24 Feb 2016 14:10:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYeoz-00057T-Os; Wed, 24 Feb 2016 14:10:01 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3864 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aYeoy-00070n-Ow; Wed, 24 Feb 2016 14:10:01 -0500 Date: Wed, 24 Feb 2016 21:09:57 +0200 Message-Id: <83bn75hqm2.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160224.084402.229180137.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <20160224.084402.229180137.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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.) From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 24 16:58:06 2016 Received: (at 22795) by debbugs.gnu.org; 24 Feb 2016 21:58:06 +0000 Received: from localhost ([127.0.0.1]:44301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYhRe-0003Na-H2 for submit@debbugs.gnu.org; Wed, 24 Feb 2016 16:58:06 -0500 Received: from mail-bl2on0092.outbound.protection.outlook.com ([65.55.169.92]:45824 helo=na01-bl2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYhRc-0003N4-5u for 22795@debbugs.gnu.org; Wed, 24 Feb 2016 16:58:04 -0500 Received: from BL2PR08CA0026.namprd08.prod.outlook.com (10.255.170.144) by BY2PR08MB538.namprd08.prod.outlook.com (10.141.144.14) with Microsoft SMTP Server (TLS) id 15.1.409.15; Wed, 24 Feb 2016 21:57:57 +0000 Received: from BN1AFFO11FD008.protection.gbl (2a01:111:f400:7c10::159) by BL2PR08CA0026.outlook.office365.com (2a01:111:e400:c4b::16) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Wed, 24 Feb 2016 21:57:57 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.228) 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.228 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.228; helo=usculsndmail01v.am.sony.com; Received: from usculsndmail01v.am.sony.com (160.33.194.228) by BN1AFFO11FD008.mail.protection.outlook.com (10.58.52.68) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Wed, 24 Feb 2016 21:57:56 +0000 Received: from usculsndmail12v.am.sony.com (usculsndmail12v.am.sony.com [146.215.230.103]) by usculsndmail01v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1OLvsjQ028539; Wed, 24 Feb 2016 21:57:54 GMT Date: Wed, 24 Feb 2016 13:57:49 -0800 Message-ID: <20160224.135749.408852023.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83bn75hqm2.fsf@gnu.org> References: <20160224.084402.229180137.Takaaki.Ota@am.sony.com> <83bn75hqm2.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD008; 1:1qLanKeO9w2ziKQI5xPNTsFLXh6n6Co3ISOj9ORuw83zQX1boM87rvwk86cH/s0+V6Wx97L3wsBcCfVHyJTjEDLIR9R6OhVLBOeRVDJt0UgFW4ynaVHb7seoy5CPwOAbZAQF9d26YsT3J+hymYkoAbm+gawf7sbnzcS+aO8gDE6GVqucZm3R9PFhCEPQ/a7VBi+wYCRcESZFRFYz6EkU0COo2jk9iDIJ+DViuvhgBK86usf8PziVh52hDqXxycyKy0jdSzWaNCFajUQU5FwoVAzgayTJLh0sKczdKVtOegj85KSTlW+qZngcG90aQzNkrKczZPRaTbdVW5EJVnUiJS+zfXMelG/v411sb+Sh9m6ERdbWrfH/ixDBdLci4h4u9WIl3VfEBSOjLz2Kvw9ae/M9uvh698Ce/1z+DDof/o4= X-Forefront-Antispam-Report: CIP:160.33.194.228; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(189002)(5423002)(199003)(23726003)(2351001)(92566002)(50466002)(50226001)(19580395003)(19580405001)(97756001)(46406003)(106466001)(104016004)(103116003)(2950100001)(5001960100002)(11100500001)(6806005)(1096002)(230700001)(110136002)(189998001)(50986999)(76176999)(87936001)(5003600100002)(1220700001)(86362001)(47776003)(2906002)(5008740100001)(586003)(4326007); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR08MB538; H:usculsndmail01v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB538; 2:hIKGw6Szcjn1DbG8PJFKsZiDF9QMEm8A9N/UYG4q83XBGi3WBx5BxBw1U+OwuqxBLrEIbvl4kIjr2eOIcC6ku9ecPyFS575ciBFGcE+UjfzCPsa3484ntelIY+sARVynMK5nKdX6oHuBugF87u1smQ==; 3:MkPajRHXPlv9b/AtU2RwfL3UL9qUOjpCkeO0gYwzujUO6bB6hIzsLaXfYrrk2Q04v8xMGNOy9Z1dsg/4f7sDR+YiUFBOAc7R2a9OY49FBjrVSIq2YYj0QRoG+zOyFX4ZP1O2Xn1U3MmVzSAbGTJlhuj8UexUM9LhNVmXHsbdHd0umPd/+FwBrqkCuv/eFF3f8kn/lwcihkng1WDFZk+FcSxqrsyY735UjIgr31Djt5baQAOqcG4j+EyXZXQF2h5zZzbiGFBGcNwTyBRM4FevGA==; 25:pPJ4ZzPbjclE7jclpeq3Exh9WnxXP7vbLNcsMaAmPujh33PDuQ61oHi8HFpT8JIIbFHtnjPbBM65GpYUOA9iCtK07iT5xPUQWMfUL0oGSh4EwXoOihCVFBq3WE5UY/IACwx3Dqm3bTnCJAVm/puHZoqU+3696k5Q3u9J4AgT4N4nU7PVPbnM2FGwzK4Qp2fTgUR5MfTomr+0SqKkt4CRIekFRu0vW5UIVmHsaX2Zc8I5XRruJb1+v63NBoViW17QPz9y3kjI3yDM/wtHwFIkslccybZ4QwkJfs92sXLDrFZ7MTEOPMUqCMwkCmqKpRHUECm6nFYYGEZH/k0fcC5x3w== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BY2PR08MB538; X-MS-Office365-Filtering-Correlation-Id: e918a696-7037-4f24-4ece-08d33d658dc6 X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB538; 20:/mSwcF1bPCHYl929IU1LEpMJOW+BYBTpk587vhx4/LzZHLiQiEIX8H12SEOz84BhwLIclQNX/HaMDfVhz7409ZBWreOmBfT0lAyfCDT44BtObzxjRy0DOPeHLC4ge5NfYdrhen1Ux5mFzFuh02+Lcxrc41DaKT1RmttFMDFhkbPyLvuLc9T2unRvOlI8XPd+YzZZsHLgf7S4mL+UpTuavajJHP1079mxiWNttvc+zIdRGz9nsUB4eybVlrOjjS+9pp/NG8umgDJALnIO2iOHaqlKTK6uIPLqPNgoz3WVrTMFpC9cm8AnLqzDmnPXp6sPNmeUWR7u3rsf0zF4dqLBJuymsznnvlja01Un45o1dgafKXISQwZ5y+wqkb02AQ3umDRB33irK/1oqkXs4ooof1CExVhhIFuG24gVHLF9bIACViG0nT8Ck1TWgaMgaZ8J7COy3uvb8Cxzfg9S20jQ95f1SSa/RTKLBK6i8DLJa1PKgBu4TOsCyBY72+yyWXdz 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)(13018025)(8121501046)(13024025)(13017025)(13023025)(13015025)(3002001)(10201501046); SRVR:BY2PR08MB538; BCL:0; PCL:0; RULEID:; SRVR:BY2PR08MB538; X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB538; 4:dMQU/qz/vZ1vAQVnn8Yu2lrWEM6rTFgYfLuZmwZTU1CFtyvSHJh+RZ8Pl0NG8KUD2T2G+2loFcfV937YOd1OXwV9jo6r27vRJUUgEMYgwtkSmU7XBVoGPTgZixSf3TICPlcPAlh/F3qDd9AePDKohbfX+/TwTbTwcKroNnWDegct9x54d82L+gQrrX18zOVl2GhQJiG/5JOmT5zZ8SAdXlVmPkJdCK5PPSMciTHlANzqkTwdhrZf5Mq1DG8b1eL1IVdQhun8YDUNX7YcpNFmPpWCPgBhSEZjqZYJMu+HJlE0MniVe7oZaf4fjoXIh5AbtCq54rSrQF8zVOxg5IFtk3vElvpOr7AAr6sQtrNVEJ52FaiEDeFSRPOnWZGoQwGlHPFBFIYKjp3j0h3W+PctOzFTE3U7UWf8dTwIdkCv41uWm26TscmcMWgkpT+5i9PiBjt8gCPGG/9/I30V9npvVK947uVfhx6lRdomSfrpEBjn7+5ZQ4Kgtna1heRZRiAZ X-For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?= =?us-ascii?Q?VZUVzl+2DbbkgImx5t+kLQt1Zn25VvtkkqVGVxq1EAwLftoGrjNzPNBxaLVj?= =?us-ascii?Q?AIDpAvOriLeVVVBytKZfMvcxQVrHYqAwXqbgFmwcDNkA7qKCIMYg5xXx77Zm?= =?us-ascii?Q?aBtkNZcrBKvOcw4VqxefaviWHncdlY7I7CH8jlkhoFKH97M0x7yamd3kbcgd?= =?us-ascii?Q?+P6UiOxyqtt6w8IUQI5DOi?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB538; 5:7XJUa9poTQDtW3FtyMNTCsqhRQGPwQR99ARFPjzmH6fixsUj8h8DBUz5pjAXGm8GfMDQyPzpi2p1mnKn0gBlUtchmrGliSjstW1/6fDvaMGLhkD1EiA6kA8rAaxE2CcBBxzHajTJdq2IrpvCr04CkQ==; 24:gONCXLewlvlUgyGNpKGFNzXwjPTQknWrhTcpkKd4+dch6tJenk57CD/KCEdhLrdtKaxzWSeVNeirMBHHsafeSvryjAdMmcUnI4juCkk/kXY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2016 21:57:56.0834 (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.228]; Helo=[usculsndmail01v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR08MB538 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. -Tak From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 24 17:02:47 2016 Received: (at control) by debbugs.gnu.org; 24 Feb 2016 22:02:47 +0000 Received: from localhost ([127.0.0.1]:44306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYhWB-0003Vw-5U for submit@debbugs.gnu.org; Wed, 24 Feb 2016 17:02:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47184) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYhWA-0003Vj-Fs for control@debbugs.gnu.org; Wed, 24 Feb 2016 17:02:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYhW1-0002kl-Sc for control@debbugs.gnu.org; Wed, 24 Feb 2016 17:02:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYhW1-0002kh-QN for control@debbugs.gnu.org; Wed, 24 Feb 2016 17:02:37 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aYhW1-0003ES-EG for control@debbugs.gnu.org; Wed, 24 Feb 2016 17:02:37 -0500 Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 24 Feb 2016 17:02:37 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) block 19759 by 22795 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 25 11:47:51 2016 Received: (at 22795) by debbugs.gnu.org; 25 Feb 2016 16:47:51 +0000 Received: from localhost ([127.0.0.1]:46316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYz4x-0005mZ-Ln for submit@debbugs.gnu.org; Thu, 25 Feb 2016 11:47:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48218) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYz4w-0005mL-Hl for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 11:47:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYz4m-000369-Mh for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 11:47:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYz4m-000365-JP; Thu, 25 Feb 2016 11:47:40 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4959 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aYz4l-0004dg-KM; Thu, 25 Feb 2016 11:47:40 -0500 Date: Thu, 25 Feb 2016 18:47:39 +0200 Message-Id: <83h9gwg2j8.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160224.135749.408852023.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <20160224.084402.229180137.Takaaki.Ota@am.sony.com> <83bn75hqm2.fsf@gnu.org> <20160224.135749.408852023.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 25 12:08:57 2016 Received: (at 22795) by debbugs.gnu.org; 25 Feb 2016 17:08:57 +0000 Received: from localhost ([127.0.0.1]:46320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYzPN-0006HZ-Ff for submit@debbugs.gnu.org; Thu, 25 Feb 2016 12:08:57 -0500 Received: from mail-by2on0073.outbound.protection.outlook.com ([207.46.100.73]:20256 helo=na01-by2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYzPL-0006HJ-PC for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 12:08:56 -0500 Received: from BY2PR08CA0009.namprd08.prod.outlook.com (10.163.62.147) by SN2PR0801MB575.namprd08.prod.outlook.com (10.160.15.152) with Microsoft SMTP Server (TLS) id 15.1.409.15; Thu, 25 Feb 2016 17:08:46 +0000 Received: from BL2FFO11FD009.protection.gbl (2a01:111:f400:7c09::119) by BY2PR08CA0009.outlook.office365.com (2a01:111:e400:58a4::19) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Thu, 25 Feb 2016 17:08:45 +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; Received: from usculsndmail02v.am.sony.com (160.33.194.229) by BL2FFO11FD009.mail.protection.outlook.com (10.173.161.15) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Thu, 25 Feb 2016 17:08:45 +0000 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 u1PH8ikS012891; Thu, 25 Feb 2016 17:08:44 GMT Date: Thu, 25 Feb 2016 09:08:38 -0800 Message-ID: <20160225.090838.192544111.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83h9gwg2j8.fsf@gnu.org> References: <83bn75hqm2.fsf@gnu.org> <20160224.135749.408852023.Takaaki.Ota@am.sony.com> <83h9gwg2j8.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD009; 1:qx8vEPRFSwFhxkYKw55HVUvvbwPz17gWe1ntWltaRYn2xpFspaXOak7KreyuoVj21nwIhk1fQPHRAIO9xb8g/7ZFMbvFRWfC1PWy+uYYmi188tKjRBf9kFkE7TZkTeeT95iVN8wmjKGH/SC/TOn8lgPHMGTt62P7t7ygeiq+nAoykJB+1+vz4mel0D/cyOKjLn48dkwsSsljO4oMQ/MfufMbtNpV910WmIRUGe3GqMKffRIy5/KiShgR0ipUwUG4hCpDfds41SjQv0oE88c/Svl3INaYgivhv4Sa/cYTamx2SQnT594PivM9TGiVh5Jcu9QcJ1JkkF8qEeVljQmuXFjSURswpCMO+hZD42lVsLc4juz9d/AjS7KQT9RBo/7IqqCrD34U2jSmSkZrEGgP8A== X-Forefront-Antispam-Report: CIP:160.33.194.229; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(5423002)(24454002)(199003)(47776003)(19580405001)(104016004)(19580395003)(586003)(6806005)(103116003)(4326007)(2950100001)(46406003)(230700001)(2906002)(5008740100001)(1220700001)(1096002)(50466002)(11100500001)(5001960100002)(189998001)(76176999)(87936001)(92566002)(2351001)(106466001)(110136002)(50986999)(50226001)(97756001)(23726003)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0801MB575; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB575; 2:YEw9IE5bJYdsQOdUPaMKsadfGlQB9f/yr2Sneqd1pH09/uQ1+B3pcmrWkXduJHA1zbWj50n52jpBZXXqYyWGmChjgULl7zZq3iLJePwlmw6oMqmgPwO+oapoOrCAdRO9QGLKovzDR/uiEh9dVdxCRg==; 3:QKJLbANZCNo3PJgXkZirOB72ZG89vBxlioWjENln9oqkUe0WWPNfKmt94t0vXCUOMYb5BUWmuTZ2S7GVyqMMIkkN/Iapw6ltffAXJQA1Yh7Udp1dJxyvKqE5ttzoSMIwaQ16WLNMKama2JilcPFd1DzkK2KlL30vMTTKjkRh0TdECrw4JtQaKXQAN317+z65RTAjbeCYcKJ+FxZheVNurA05TCH3QYKC7zwwP1SisOUqXTk7foFWCCS4Gu/y1A5ECYqxvpOk+tBK2X5Lyo1afw==; 25:+tOXapVxQhfQPGqvvfJaQUuca7Wvh779g6b0u/Ob/UF5BMM4JSX9jTT6oO+3lNSgw6YByjqE7JFvoe+jfTAYzWUUjTAQQKjWTeMZ/CcZ/ULRWXup6vSfMIXFoOp0ERbx0OV3IcwBXvFrLnHWf0QcVJ30IV/nziO74I3lr7mM5bP7WG+5EzAfLuLHzxrXXBurUaquRJ+ePPMLUSGVvJJIrps17R+o5yLo1i7lHVvPZdLn90RGzWtEABwXPHxGjZQfFTAUl28w70rLMhx9I8MU64QpgUAs0fXnpJl0H4l3e9bu1K8bY9TKsQ6fcWg1hod5t9qlJaMg5omoEvhEqvPuuA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:SN2PR0801MB575; X-MS-Office365-Filtering-Correlation-Id: dfc519ac-9edd-4011-ff68-08d33e065200 X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB575; 20:UCXfrHvwoxY+MAoCD9QeScX6pVgGOc+RXRcvqKI3LKqCM3NaWglxjKFin0yfNCll9iYzDGYVJaDR5jp6rHCVucpdZaq7tJdHfRGZEAtncyPcp21Uz3wPleBpQOSYA9UJRx6fB6YjnvQZq8BrMvguzoKiVE9kn4c+yv4rIk+ZSR4Kh3Lv5DEgZc9pQFQMMgTH8wx/a0c4CSo5iW9/U4wji7IwfdatOm4stzzwpVuFewOIHESBndzFQdSeXDM9duuWzxvRZll7zS9BL9N6QcB9Zrb9qKpbP7f0PseySWPcm4oZG3aZlTQPqOLZNWipc2/duQNOR3ggU7vA0fy+hTLfwkXDbMK1KE+VGrcXpaOWGTKQtUUwvLCAXyOtjY9+ZfI9FtYS3hemAR9Zisr7tv01qN/WYiJmNfElTyB33sa5B0smSQ68oPnsffr/0rYieGqjzBkG8h4B5hCDwdn9eiCSa4gN3six+TEpTfCPL7QNhRwZ/pYO9byiR1+GYb+LVCgX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(8121501046)(13024025)(5005006)(13016025)(13013025)(13021025)(13018025)(3002001)(10201501046); SRVR:SN2PR0801MB575; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0801MB575; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB575; 4:3JszaADd2+2hH/PuUh+qyfcTSgRYj0y2u3FQB4XW9rWAF+sjCmkNWvTxI3rUOvcOrDvm4E2xm93K+H3cu+eaftS2QKBW9h8ForJdNRGUIad3JSd4oiNzWq6QTYfCXeEOr6NhvXRuAMX4Q7DRQZVVX+Jk02geIa1ica6PzGlXHdpITV/lRP0v3PDHk2IPAGYNy3B8lf1TokUEb+xkwda/V365IwW0rB2rculAEK0FabL1piTds3MmotZMW/VemRFIMU9K1uyhPQaAquwQfetr1mP+LajUD58rjo4vhQTgUHtsaaBmz9fYjgqzgPHgvtDhQ/nDDSL6iYitR60j256iXuJyAKSXzVm+Zi+cJWPW3QGnZAuFYoCL9XEqOAlUwKfcYVfRwPEO38l1DnUpIZKkEnDFA+kgxtqNaDHcGVLbXZDd0kAzDqsWFQVPm5K1SMGdtLrnrkjSZEMJ8vXbyKxUOJX0poT5wRCxwAylweR6qyY= X-Forefront-PRVS: 08635C03D4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0801MB575; 23:ctoItKfTAhRz1atrRktMN5TQMr57lHz4S8MaAngX?= =?us-ascii?Q?ohvsdzx1VuEH5hlILzkcsrNURhgzwu+i0gL3YeNkNVEgFlDXrI3cwLx2i8Lf?= =?us-ascii?Q?y25tuxSbjW/RsehCI8tGRFAnf0f62XG6BX1YqKDICPUt7R0jwoui0i1jSyEr?= =?us-ascii?Q?XLMf+LCybAfhvariotzrbV2W2dga8bYZKKmxzPruHMFY0iCneXIUJyN5qkOF?= =?us-ascii?Q?P4l6fs0osdl8jgFRbeVpZmkmPeyrXuUNKPFr7gcxuqHk7NCUza6m5Up0yLs7?= =?us-ascii?Q?iIsLwT/R+XnEw9L5hzySGwMndv3lwe9V75S6uw3drdPe6BwKB4I3qh5gqnph?= =?us-ascii?Q?15PnIdbw1jZMMXFOGN3I5mn9Y8Cbz6lL4TmyBCeb+EsKkQet8W/dsQaOZnQD?= =?us-ascii?Q?k31iO27wgkg5jFImwJiHnGu5cR2oPissim27k23UxmXXRxqg4kH5UJ5+JOju?= =?us-ascii?Q?eauD4rr7Rjr96yAwKudPclLcgYGAb8tQ5aaL+IBZMeXg+PiWX+V1C6p7N6PC?= =?us-ascii?Q?wnHvsohj7r/sd5bTQ5mp6abYci3rTXtprWDEsUPPgroSe18+rK28/5Dl8hJL?= =?us-ascii?Q?c78LCrQ3ZTiwrhRAFAIRishpoLRwkIbWITMTyST0qIqdonDOC1Zap95vEqxs?= =?us-ascii?Q?RoTbDMnNXWYldjR3QYDwLuOuDBMTojKwQiSMdzzg7er9hkEErKJleiDtJxkA?= =?us-ascii?Q?Ws8EBIBv+ITEnmjmJ/3Lq7DG6RdarRzYOAOwDJQ3PxKNaDJbeTke9n0Sn/d/?= =?us-ascii?Q?HoHQfQSm7RTYVO/J5W5NYWLA/p8kW+OvUgzPs4qQ2ROXxOLKXcg+aaptzK+r?= =?us-ascii?Q?O33NymzNrWuM8aRJ7gEedMAiNrc5JlKWNJz8TT79GgPCG/I3PdgmVdbe8r4j?= =?us-ascii?Q?Eir/De6xT6tpGy6moP8uFfOMwYOL0jooAZBecwz7CkeKqP6viFvwfLxA4E0D?= =?us-ascii?Q?IjdhPoIa+JakfH1W2fsEPziekHNlrWTBEPzWFEyBgA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB575; 5:ioAbKoh15ynCUFgzxKmx3AsyjCqp/O9y6FK1qMpxhgxgKXIxI0QghjM9w5gmWZVjRTSAStAqsFGzpz72jxg8c3+a+UOco6UbxF/K7vXDPEzf9xojAveev9Dw+mfyYic7k40BT1JYyuQPUU7xw/M6FA==; 24:nEuAWhEvvyRQOg+cpln0JWDv/8wDothGkjc2L35EK8ardafcN9ts5+XYWn5MHQrun5acxCb3u2/rQyTAS9Iig4J49X3erYye3XozbTF7yDU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2016 17:08:45.4490 (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: SN2PR0801MB575 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 25 12:13:00 2016 Received: (at 22795) by debbugs.gnu.org; 25 Feb 2016 17:13:00 +0000 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 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 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 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; 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 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 Date: Thu, 25 Feb 2016 09:12:43 -0800 Message-ID: <20160225.091243.233683117.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <20160225.090838.192544111.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> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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:o9lsjvcVm8ELXs5Jf7OGFNQhXPC5DsyfXRfF6+YZGKJwLsPFgRD4ZAa44SZKVZ+iEtjz3I3BZxv9R5gUiwphsjoSiWyQgYYL5qH1RRmceKt+s/Oyv7sdmGfLJ28MCDDcqb6nTYJd3OgR4pJVVhJkUeohA8uDf8WASUMefmh8BaIviT49brbVw3veuWJ57oW1CCyIo1zEWUsg3tSrkISNTkZrdNuHN/J/pFF39OwzkX1K2RbWo8S2tYT3hN/i0Xir1Etp2PALWcrsyjOUEh/EOjtndysDnZq7//n1ataUZaMFNx7mTClT4J/vrkzpythwGQiEu3PSfQR1Vb5+Z3JbStcoebn0DZKfHwzLH41SdSShTVta+BqwU+Wl/VERWGZr0MahbfgvQzi1FsB/NsmvbYUTaMB8xFPLmW2bljGKkmIvq0Fy/93AJ7TL4EQiuaqiEUtwxxNDIUPcVJFLP2R+DACdWUTsYbx64emh0XRhovo= X-Forefront-PRVS: 08635C03D4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0801MB561; 23:FozbynpDV9rlElzGhSeimkERMUrVPaD4c3y7DELp?= =?us-ascii?Q?SdJfuWw6tWMpcylXKIQYQ4UkyIKhMhvHIyIT8Uzbs8By/D46OE3QJ3ZOfqHs?= =?us-ascii?Q?wypDdTPLAhB5oKIRZ6U0cIQ5zdBkU7eRm6sIHYTDRz7l/wpe2E6ItKwt958k?= =?us-ascii?Q?/Q32vSorUo72Pg51swYup2nt98dTHnSLIjxPWIe+/63wpdTkVCQkkwZNoMMl?= =?us-ascii?Q?IKCJIhbcPFfFiQo0oiK7cbZ+68WTD7tTb/ZjLuH7hAKmb5IFkSPvUFaZui7d?= =?us-ascii?Q?CHbRBanVS6lfbHblgO2DPNUtkaIz1ogf+uZ1LLWawLDNE44FT3o+Tk8T3RSU?= =?us-ascii?Q?yvh8XHrvK9ZfNbnWP2KId1SOVMp9LShUyxoTcDuNdUsZRvKAYyg8usy1lJ5e?= =?us-ascii?Q?aj1rH90raqMsKz3veGUberyahINSL/ZODYX57lt8vPutydltmm+QmsprS5TS?= =?us-ascii?Q?58MXwukNBz8bi0DJaUDbnhEIIlSn4NpPZpcV/4mJ4RchfJyhLEoLek96DzYQ?= =?us-ascii?Q?HbkKhHETZqyOjlFwMSSzmWMJbXuR+FbzZSA3BLblECoEXYMYfI5kJ3r93SBe?= =?us-ascii?Q?Sz/zwHurImjP/3jg1ngynQskO3/HGzAdK/GAdfhFqaGsTKu+LAFgTB5tuSIj?= =?us-ascii?Q?GcInw/q6BUI+k4doSKFiuUntceJ9ye85e9kCkfinIX/KpASCNu9O46zwCsm5?= =?us-ascii?Q?2jhTnc3xl22xmYzGFLwBOTzhwFemkyMrIsRFcvZNorCRQ77EWBEOe1W9jH4v?= =?us-ascii?Q?kIZwcVALwvh7Mv0zFLUzBbNccwYLs2sVx/Xpwp3b6+uHEkgNIp6Kn4N3xCH0?= =?us-ascii?Q?kEDXMLXhVbZhhV9U2NDOTiCaAHo3NjYjuOcV8HYHcCwd06sV3hzfYINBoFnD?= =?us-ascii?Q?wAjA/U7lLMt5tsOQPvYv8GY49L/NqLBOjbRW03/8endazoNkST/iWdL6mUuZ?= =?us-ascii?Q?9hJ5fUQ/oZ6K1KO5SIcIe31sFwAllVspb5m/h3mqbg=3D=3D?= 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 25 13:09:50 2016 Received: (at 22795) by debbugs.gnu.org; 25 Feb 2016 18:09:50 +0000 Received: from localhost ([127.0.0.1]:46343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ0MH-0007o4-Vg for submit@debbugs.gnu.org; Thu, 25 Feb 2016 13:09:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45847) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ0MF-0007nn-Fm for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 13:09:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZ0M3-0001PL-4j for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 13:09:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ0M3-0001PG-1I; Thu, 25 Feb 2016 13:09:35 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1162 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aZ0M1-0005L7-RV; Thu, 25 Feb 2016 13:09:34 -0500 Date: Thu, 25 Feb 2016 20:09:34 +0200 Message-Id: <8360xcfyqp.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160225.090838.192544111.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83bn75hqm2.fsf@gnu.org> <20160224.135749.408852023.Takaaki.Ota@am.sony.com> <83h9gwg2j8.fsf@gnu.org> <20160225.090838.192544111.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > Date: Thu, 25 Feb 2016 09:08:38 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > 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? I tried only with NTFS. > 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. Very strange. I guess the only way forward is for you to step with Edebug through save-buffer and its subroutines in files.el, and tell what fails there and why. Can you do that? (Since this works on FAT32, I suspect some issue with NT security, although 24.5 also used ACLs...) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 25 13:15:56 2016 Received: (at 22795) by debbugs.gnu.org; 25 Feb 2016 18:15:56 +0000 Received: from localhost ([127.0.0.1]:46357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ0SC-0000GR-7C for submit@debbugs.gnu.org; Thu, 25 Feb 2016 13:15:56 -0500 Received: from mail-by2on0094.outbound.protection.outlook.com ([207.46.100.94]:22313 helo=na01-by2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ0SA-0000Al-RY for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 13:15:55 -0500 Received: from CY1PR08CA0026.namprd08.prod.outlook.com (10.163.94.164) by SN2PR0801MB573.namprd08.prod.outlook.com (10.160.15.150) with Microsoft SMTP Server (TLS) id 15.1.409.15; Thu, 25 Feb 2016 18:15:48 +0000 Received: from BL2FFO11FD010.protection.gbl (2a01:111:f400:7c09::185) by CY1PR08CA0026.outlook.office365.com (2a01:111:e400:5291::36) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Thu, 25 Feb 2016 18:15:47 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.231) 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.231 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.231; helo=usculsndmail04v.am.sony.com; Received: from usculsndmail04v.am.sony.com (160.33.194.231) by BL2FFO11FD010.mail.protection.outlook.com (10.173.161.16) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Thu, 25 Feb 2016 18:15:47 +0000 Received: from usculsndmail13v.am.sony.com (usculsndmail13v.am.sony.com [146.215.230.104]) by usculsndmail04v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1PIFkgf005062; Thu, 25 Feb 2016 18:15:46 GMT Date: Thu, 25 Feb 2016 10:15:40 -0800 Message-ID: <20160225.101540.321846686.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <8360xcfyqp.fsf@gnu.org> References: <83h9gwg2j8.fsf@gnu.org> <20160225.090838.192544111.Takaaki.Ota@am.sony.com> <8360xcfyqp.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:160.33.194.231; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(199003)(189002)(24454002)(5423002)(104016004)(6806005)(46406003)(586003)(2906002)(1096002)(23726003)(47776003)(5008740100001)(92566002)(2351001)(1220700001)(230700001)(110136002)(4326007)(50466002)(106466001)(5001960100002)(87936001)(86362001)(50986999)(76176999)(19580395003)(19580405001)(11100500001)(50226001)(103116003)(97756001)(2950100001)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0801MB573; H:usculsndmail04v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD010; 1:TKtDXqZxQ/dz5lJ3FU8mAhG3m7GjQ4GAf0bfoxw+qrOPrpvNVERqwFDeo+fgGD21GDkkBLZ7HapsjbloVbMXP2oCg21wD5qO65R/opNuCOUaSAlDDv1ZqG9pFVq5gl1r42IK+7USD/0tdYHxAIW9Z/Y8dmalITJ/25VL9n92ZDkopeuUqdGkr+P+aDfyeGLW2OSTGaxvDtM3THVKRCLrUEYEJ5bfAi9IITN6pPdnJusXC6xg8wfcF/8wN8s8gNF+Zi3vrvmQy2xpEyZMTQ3ad337glFi6nuEA+CeoqQDVgneYe5eUcYUAfaySkw2xZ2XZSJuwzslloTewgC5+DBEgcpedY/WFEHbYdZHuNQiQriBu+sFylgXvJkrcwClImHSOy54M4Ao3HOvfEWWbooi+N/4fRkgR6M7R1BtfhrXjAE= X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB573; 2:rApHdrPpx6tyq2K56931SPY9Bg8SdgsweuuYr5Wk8SW/ur4m2mfJbKMky6y0Q8hLcZKGvmVU253j00xLEZ4CILhy0UIie2AC+6DwRRTIDL/HE0Qu46qKnaC535BDm0FuiWILtwYUW1Qc8HGAKy/SfQ==; 3:DdMOpha6Jrx4xtLdSgGhQTd+H12GGMd+RtJGpMSzag6FPyBoTdgXwWcjkdgYODa2aEwgyZQ2v/oQvD1rexnj3tNoa3YWDAxIpnSZ5TTh6CJadJpUwEQguz43fWtbo/e4Oo07muycEdx/6CaZvfP5Uc4/VAVDgpgEhZP8ViefqKD9vfwYRggBIUM/r8Lvc3Wz4gIKMTI2r8w/XOxI7yW3rw==; 25:jYn3HYt2128bIwCedZVwvRrCUI2vYwqug6akPEcarsoHZMAZsoZywp0U2111SBbukZBp0zVPtDaepAEEtjZelaKvR7+05d6rLEfNkQpZB51pew/9fSBDz8SNgqocbYB4qdgbIIz2k0IoxHuAMNK9lC5LdX7j0yryKo2MeDQaa6FqHvC+6W/pcU1CxydYbQS4UkbEaPHWiqVXrZubwsHZyrPTmWcK4V63+xD7MygEkmW/707aCeYWy9XimMh+dt9Po0/fFuoldZP5o9pEK+ykKMQ4+vpfaAdfsy8uAMskMEGl9WCAzCo/HNJwmXgLeeChihRdjk5wv7Qj8NI5gJd88g== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:SN2PR0801MB573; X-MS-Office365-Filtering-Correlation-Id: 3c06d63f-af60-4b49-5875-08d33e0faf7e X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB573; 20:xDIVgRLapZ82dxcvZZX4OQyMB3W92JecbmtjsJUl6shGyXJLRFTsbyK5H0WHdMACx63BxEHUZohflpEMVsLttM8XtoNatQN1bokV0vQMjEmc2kftex5mY+XXbgtddbFOpqb7SK4ivMOHsJaUO5PJm/g5NeagAk2i4b5lqr3Y32yfdHBx8hZAGKnWMeaNHtL1nsTFw+aOxEDFNWQ5gsohgrB1YOVavodS4OlcEty5aV8Cknqcwz7+wq80u3wEeVgOoLIn2Mtfjp7CfK/ehaPPxmrRFfrKWIf1spPTqO1doIqRQd30XIuj4mo8m3RT4QtrrvVe3al6wfm18F8LkVQ7284naAwWQ7x/GYFz6820oS1eU+TEixaJDuU4ga7Ntnn4Bgf81jhYjnlQ17276YZKtvtxlRrXvx/L9Alj267d87YSzKyKh575L/XAAvkA+XPYPCV2kuqlFCwxCLdpNwTGYt1H0iWNsAGRibole8Rnh6zdOQ5qydRuduuHaQmo4WAC X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13018025)(5005006)(13023025)(13015025)(13017025)(13024025)(3002001)(10201501046); SRVR:SN2PR0801MB573; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0801MB573; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB573; 4:RHK8EJJC5Lk3AY/uZ5cY5MptyIoZ3r5rzJ8FduGtPcbxMTC34M60r4VhT4Q1Gfe4R7IzmD7XUpmG9xiL8jwSP6nDHby8zusyXjtMeC2dZppmulnk6+q0C38zMjekdFb3m2nZd5cebvS4G4kqD+gSC1vblBv6T48IPS+Xqcgiw7wVSJuGqO4b5/qH5qafR9nwuXPO1JDK/ESyDTzc1wgNbx9lop61Y2BhbZT9QvwBMdk5Y/Sye71lx8XbNicMmSMFN9KGxQq1ksO9dRsoI0F6UORm4iYXVX9i/IL1+kr5IGuiDarFNJdAXaXK5wumeR0QOhZU9N++OIjpYQXtAnzetYL8eGWXeu3siTXLUYTcK3+bZLGd+Fkl6UtwFlVUY1HIUgkwhTiWtLkW4ieohB5V/hjzRd10F4tgkX+ehAn7j408UebSrLWq2zj2oAS2UZJHEblOjrh2MfGX+TzBnD85Xg== X-Forefront-PRVS: 08635C03D4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0801MB573; 23:HxmISQcDTV8lF0tlvsRILkFgQ+gPFBcKBDv2Y3p8?= =?us-ascii?Q?o1HGZsX0X4BQSkkJ68AWgvqcMyRv5huiXvYA5cLr9JXwdlgrmyRnPhM7TmBw?= =?us-ascii?Q?/ICB9nr+zprFBV94PalbM/zKDlaZSoGUtFlhLZanqrz1WDBixR2AA98tNHDQ?= =?us-ascii?Q?so5lDTBW8FBSEYnpCUCuP+gISQMxur3BkSTNwG5XvdgbdbYC4ARgKKwXHENd?= =?us-ascii?Q?y36+mUARsNIu4O3743h+uoD+YWqRun44zNE2qDAL273BmceCGSfTOHAF16BL?= =?us-ascii?Q?Kw20OPUQ6RhBo+ypU+x5/+Gs6I05Sj2bwaOhkV1P968Q6jwID4VeF/1ucx98?= =?us-ascii?Q?WHb44INmR8DRfSN7IVhKwbKLvl+8t7Kj7MjZ89NHukc+/Of9f0hpsf5XnljB?= =?us-ascii?Q?XSgnLsu8GvoqaJZrbwY2q15tdBFd3XSsXcZz1Vn/p3heuZDgC1mQ8Q75rsqD?= =?us-ascii?Q?Yf94dBh6e6GUKLh/7Kj3yTcdbkAc33Lky/cWRKyzT6+Ieqq0oj1x1XXeCKIa?= =?us-ascii?Q?ndWps3SLj6pQm5pdGWXOn8UK1lk+RKBm8oi5rZGS5facXfV30nV4YhPi7rjU?= =?us-ascii?Q?ayP5iOODuVfG/RJvJHjxKxM35PqXPY+ZBUh5upQ4MgsGQ0uZWPntptuBF0a1?= =?us-ascii?Q?J1XEFSh/XLfXxDKfofd2ZHRm5tRb8d4yJlkRx7wDYfCr1HRA53xsGwsztNx2?= =?us-ascii?Q?S9q8hThIslLifmWTKWxw7JruH8Ih0IDKTle5dAt26uKVUJZsHRuB2P561Wfa?= =?us-ascii?Q?6xv5olnZ+gbQAxp+q/3THbHxBoaJJEtWWBDzS/InzGbP0I5Xub+FP15ZUWmL?= =?us-ascii?Q?0dfHtMiesOJJi2qntfTvt/HxC9ul3QU9Flky7QWNJaffhIdNeaAeG9wNb5TD?= =?us-ascii?Q?pXXwZIm2WwC4Ehx2+/MdhNElCQ8SYUyxXx0fuRlphfd8p0KVcCXNfVXSpkey?= =?us-ascii?Q?0amdn5SUFug88AeO2GoGsEAzMwbGk/l8HmFFhB4Nzw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB573; 5:GdZiIm8fy7Jk9uT1N2WsvQJa8Mwos62ZRkiaowcuvIrlgRg8IIfYH3ZJ6qD18Y87vJ077XXKIsDaY2pU/wez3OWVeR+h6Y6RPU4QRVivZPNx2eqn62uU9ip6/DP43cHd4NVKQc6VASsluyz6R9IwKw==; 24:V/H8JecsXI5zDG7l9feARFbYgOBbh74yGt3bbcikD4sGfxuDhCGWSuL/cVI7m/ODX33NGpO0jpew7X9gx+Wi3UrvaK0LVO0ZXs+WyKIPjJs= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2016 18:15:47.7536 (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.231]; Helo=[usculsndmail04v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0801MB573 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Thu, 25 Feb 2016 20:09:34 +0200: Eli Zaretskii wrote: > > Date: Thu, 25 Feb 2016 09:08:38 -0800 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > 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? > > I tried only with NTFS. > > > 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. > > Very strange. I guess the only way forward is for you to step with > Edebug through save-buffer and its subroutines in files.el, and tell > what fails there and why. Can you do that? (Since this works on > FAT32, I suspect some issue with NT security, although 24.5 also used > ACLs...) > > Thanks. > I will try. -Tak From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 14:26:24 2016 Received: (at 22795) by debbugs.gnu.org; 26 Feb 2016 19:26:24 +0000 Received: from localhost ([127.0.0.1]:47900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZO1v-0005TD-Vr for submit@debbugs.gnu.org; Fri, 26 Feb 2016 14:26:24 -0500 Received: from mail-bn1on0077.outbound.protection.outlook.com ([157.56.110.77]:36592 helo=na01-bn1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZO1u-0005T1-Qd for 22795@debbugs.gnu.org; Fri, 26 Feb 2016 14:26:23 -0500 Received: from BL2PR08CA0050.namprd08.prod.outlook.com (10.255.170.168) by BL2PR08MB532.namprd08.prod.outlook.com (10.141.94.145) with Microsoft SMTP Server (TLS) id 15.1.409.15; Fri, 26 Feb 2016 19:26:16 +0000 Received: from BN1BFFO11FD045.protection.gbl (2a01:111:f400:7c10::1:109) by BL2PR08CA0050.outlook.office365.com (2a01:111:e400:c4b::40) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Fri, 26 Feb 2016 19:26:16 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.228) 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.228 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.228; helo=usculsndmail01v.am.sony.com; Received: from usculsndmail01v.am.sony.com (160.33.194.228) by BN1BFFO11FD045.mail.protection.outlook.com (10.58.145.0) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Fri, 26 Feb 2016 19:26:15 +0000 Received: from usculsndmail12v.am.sony.com (usculsndmail12v.am.sony.com [146.215.230.103]) by usculsndmail01v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1QJQExm027248; Fri, 26 Feb 2016 19:26:15 GMT Date: Fri, 26 Feb 2016 11:26:05 -0800 Message-ID: <20160226.112605.492625590.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <8360xcfyqp.fsf@gnu.org> References: <83h9gwg2j8.fsf@gnu.org> <20160225.090838.192544111.Takaaki.Ota@am.sony.com> <8360xcfyqp.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD045; 1:wBAHJlblR5hV2GA2NjK6pVcudaNmRB4WWKJG13o1wo+HUKyEsULYzY8pZMhL/U7tLyE26COWQfoqP1t2bzHV8g1rXKY3UfUaQ+0vZCwe83xEmuQKUk6rUM+kVL6I9s7336T3N/vbgLyG1FfsB7gKowOmBSOkixcc+HIzzfYSaaquTS0q5ZcaT0b5azEEPBCiGIj2N/kfHan9jYAfDSAepJ1YTftxGEZtC45N75r/dWZcLY0S856HTCRTtekgqIskziaZo7tDutpkldf0jBneagv65M1hrxK6byTCri5rdCrMQ/y2GPFNnKbZUZAyUkD0y2LD1mI40eTjqwSOD8X0rHDI1P5jQfamh24YJa1p6wcfLpjOw4K9AssXI9vHTyou0QsPz5UPFHcPgcdVprfAMCogZVT0HDDDlgXZYpUFG7w= X-Forefront-Antispam-Report: CIP:160.33.194.228; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(5423002)(199003)(76114002)(189002)(5001960100002)(50226001)(1220700001)(23726003)(1096002)(586003)(92566002)(97756001)(5003600100002)(86362001)(189998001)(110136002)(76176999)(2351001)(87936001)(50986999)(230700001)(106466001)(104016004)(6806005)(11100500001)(2950100001)(47776003)(103116003)(5008740100001)(19580395003)(19580405001)(2906002)(50466002)(4326007)(46406003); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR08MB532; H:usculsndmail01v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB532; 2:AQEjXVitaBF82cWD4s41g7n955DVzxuySiHluhH8OM46rxJr/5tgGKqiwnL1XrITHqgHEg4hYfVi3240VeuKqQd6iVgdKtIfIIz/Adb2qXxt2RwE1IOe5yzTHxP7rfIu54RdTYEGXJoPJPm2pws62g==; 3:Bd7Lyy4QMzfukuGctRSF6YSBrtY+mSwmajoKm13x9F1vLh5cHwApOpw+WUPV8QKlnw397FWuFwON2jwrObOyosGKzcuZm2/Ajiw2SwmXGQoCtooIy4TzXIpmrmT3zh62aE18lCFAI2YqWf8FwqI5HGSa3tjITHZBm7LruJaV+iOwHN03UVvSuesBDUc90r3ZgrR2OPxxXgnGTPRabdUoNY6MVQ/HrV+9PfyBXMxUfWxKpIxAmFkoPuyri60gaAAMURayN50cQ1BKFaU/nSK+Og==; 25:DckGNuemjsMn667jdT3nfj3HGO8TvU1pcdjc5YPYOAgFfUOvONYBV/gLuvoUDPqOY3x+XwaIoTsDH8pBdVSfdNrIJ3ecj5046XNtBvWb+i8+OQrGkPHIdTnAFconPrprJtIoOxKkXFdEmVnMJD6VmiyQnNypDG6kThKRJu4F0e4qOiNIyu2o/L4iuXN92/FtOQU3Q/xka6f/oU04f38Cb/2B8MgTI8HhIMNBcMMMBVlUnG7lMLedHBJ5+ySHMKjO5PuwA2ogNMxxZOSNqhpXvtSH8j1Ak7gPVfhR8yN7DpOpEUmbnH2RkYDp9o8UIRV8e7OSdslQB0K1GfYvNspwajHqT47flc8Z7lsthzbt1FFY8dQSxu15SWvQ9NUvORNzJhblkCqCVNn4Wm+kVmH66A== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BL2PR08MB532; X-MS-Office365-Filtering-Correlation-Id: 1b94e762-1b24-4ced-420b-08d33ee2b1fb X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB532; 20:k/1vSZv17zyILm0pjl2DPz3a0Gvb3i4u1sGDWqjWbTQw2ZaSA2w9YrAPhGgwXrynrOCXfZ4JVIiyiQTb8bdK1kpoUJeoEAHg85jVe+jVLEx15LpFtt1sR22XIESyiI1DOwEe1dSXmQ7yuMQQ3gTSRcaiKOIDcOhLAmAHIk4w+h6BQrBAW3/f6YYMEkUZfFyO35V3+qbMNj17aVKmliKPqQ8mMmydrhSogx8cmfnqhNEJPsUrCbCzo0kGmzgqmTpf8icsXanlpYcGCRzj52geAK8CXTquDIXYC0K7s3fHWv6olDPwwgayO3ikwsitFLfLbVYhm040ydFW4rDOytv4fL2ZCMIyBjiTQNTfIkoQr0xpRP96XxIST4up8hs8v+O5b5TENwytND3L4Ov4+UUsmmCcHQ8PqEhIoXLOzklyzCt8eULF/0S0QOW6r9i1rLGEEd0urG5Gf9VFIE1isHw/eV2QRpUIg6h1p7+ILKN5ns2KEjTPMTuyslwV3V3kytt5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13018025)(13017025)(13015025)(5005006)(8121501046)(3002001)(10201501046); SRVR:BL2PR08MB532; BCL:0; PCL:0; RULEID:; SRVR:BL2PR08MB532; X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB532; 4:FX9SPAq5nf72rNN78z4B3jz8Ve7U/6Ki1TOirwKJEWqjWCDNxov2M4XiCUHFmWLRiB813y60Wm0061cVraOlDTEF1/KTKdtvD2e0XIe/Ikagfcbt3I5l5pSulqkeEStm9lgr3XggYOzrPBV+F2/TSOrFJhsc9Hs5mpC3HBRytczNV7ofzaLkyB7gukUzkMmptDwDtzweuvLYYrktIr2gH2QD8+uVskT7BH56JjEigKn44WbiTzNRoj1xk5vtejuZsYci3JbmJ+9+gSvWLn+gcqNBs4Mji4zn3E9s6EXbMHliGtzT96zrFCDEb1ixIqbfY52uFatvaLo3cPsIVkYvbBpQDwEx2tIAYoH7AXuPxNCOypO4CpCdxG/4phKLyyxsO34at+Nq1CTWCYouiJIim4ouHWBW7jkGKdg8xMtmOcK/HJySA6dFrz7JTsXVlWF5Zq4T/m8RqVexQYu9SHnPGw== X-Forefront-PRVS: 0864A36BBF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR08MB532; 23:ZMr7QLGJCaxcWISjhRvW5NzlxxHFck4nL0wCX55NIG?= =?us-ascii?Q?/IqMaNgyh9ef3SkceHDSMFtxlKfuY77HSpLDVshcsOS08P1NC0XYJCQCNjVv?= =?us-ascii?Q?IcK4YjVdRW1PF3cA1faM3Co+vcJX1ZlX6H+NpJUo09P355qqinkp8oiPgLPj?= =?us-ascii?Q?ejUH6g2PNZo3hMPwJK/peF+OahyVJwoKE7zlFfv6PlI23dAHy93sZcNxLi2c?= =?us-ascii?Q?FR+HLaDCo7FeIHaZt4F5FwEASjPK0AIMNCs/q3RCzJ+fdO9I68+jStZX/RaH?= =?us-ascii?Q?f+eDun6j4hkDL95iZSl1DikhYUgZNiijT+XfBaUiexJibcGTO8Lcg0Wr7YRU?= =?us-ascii?Q?06//bBI6OgpQrB7ey9479C3SQRud4leR1D6Wl5wmRPPvGkt8ryRad4RRc1pB?= =?us-ascii?Q?Wfmcfi8CpNwvf4MhMp4gl4dZaohWBOAReV+kvNhxbL3ZBu6NcOKuCAVC8Nse?= =?us-ascii?Q?okDnPQVsr/XY/wcC5mwKS/UDvuEO7FuViGMt392Mu9y6tfoedHF13bonQWLW?= =?us-ascii?Q?eDxCB7IO3pRfMDdY9sWSuUxFuy3YjeopmkXwPMDhvA0NyJODKik8fzPoTthJ?= =?us-ascii?Q?IiSS6yvtvPFZHzVxlezIGpOWjbsnrZ59GwACeiPIi287nayCum8PrG0bFFi8?= =?us-ascii?Q?XnWWzDI5MCc8xipL7TG2tEJ/AEeQ91R3rvDantmMgOAyIYdN52WehGOlVE1t?= =?us-ascii?Q?9W/D+ZItjBDiQF0Ygh1LalvvT6LnirnbS2hmogiRilf9TIcUDIGQsIsG4rHY?= =?us-ascii?Q?YsFfrk0X0DbBfyxHl9h1lJ7bxqli7Nlo7xhhqRXnvjuJ8j5TRmqPbFNefPX6?= =?us-ascii?Q?hFqb1axaPeaZ+sy7bx+nEHtj/dyWFh1yVaQDy40maqCDtqLQUfw8AoIVb0xZ?= =?us-ascii?Q?Fo73U3/J7PziNQn0+KAVxsfiUMDaACY+caH3uR6ii56X0PrH7iLWqHstqD8B?= =?us-ascii?Q?crE4fVa5YAmI3K3C2LUWGodECjfjRyEFviwDY8//HtLQR71I8iP/2deKiv50?= =?us-ascii?Q?HROxobP4BoZHDe6K/tl1F8JaAOronMjIEhyasz7DlveQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB532; 5:LJM89+pPkizcTEtAesPFYakvkrVxMmj5s4Pbz/Me/558ueSA0ep3z9uPj0Iv3Cgemw/Ch1Njh0+u1u2vtsbmlhUz3sFvzf4FKdHe3Y6s5TG+jW38rWwaLfzE81EcjuGCWCpZNAFoGJOepnyOGeGdvQ==; 24:CWujcO8k+s1UgngB2FVYtUuSCv4+d8PwBII+LcLipTMNBDuSnN7JfKW96zllqZYRlxvR8eD9JqOrDss0d2oDoCEE/tFl1V8MgMvwX2ACjDo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2016 19:26:15.7376 (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.228]; Helo=[usculsndmail01v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR08MB532 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I think this is something to do with my mingw. I cannot remember when I updated mingw last time. Here is the comparison between trace in emacs-24.5 and emacs-25.0.91. The difference is in the open system call. Both pass the same set of parameters to open but emacs-24.5 gets 3 and emacs-25.0.91 gets -1. Both emacs were built using mingw but I cannot guarantee they are the same version of mingw. Can you think of any other reason than they were built with different mingw to explain the difference of the open() behavior? -Tak ================================ emacs-25.0.91 [New Thread 10664.0x2714] 4707 bool file_locked = 0; (gdb) 4801 if (open_and_close_file && !auto_saving) (gdb) 4803 lock_file (lockname); (gdb) 4804 file_locked = 1; (gdb) 4807 encoded_filename = ENCODE_FILE (filename); (gdb) 4808 fn = SSDATA (encoded_filename); (gdb) 4810 open_flags |= EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (append) ? 0 : O_TRUNC; (gdb) 4811 if (NUMBERP (append)) (gdb) 4810 open_flags |= EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (append) ? 0 : O_TRUNC; (gdb) 4821 if (open_and_close_file) (gdb) 4823 desc = emacs_open (fn, open_flags, mode); (gdb) s emacs_open (file=file@entry=0x829692c "c:/d/ota/memo", oflags=oflags@entry=33537, mode=mode@entry=384) at sysdep.c:2260 2260 { (gdb) n 2263 oflags |= O_BINARY; (gdb) 2264 oflags |= O_CLOEXEC; (gdb) 2265 while ((fd = open (file, oflags, mode)) < 0 && errno == EINTR) (gdb) p file $10 = 0x829692c "c:/d/ota/memo" (gdb) p oflags $11 = 33665 (gdb) p mode $12 = 384 (gdb) n 2270 } (gdb) p fd $13 = -1 ================================ emacs-24.5 [New Thread 3264.0xa38] 4708 bool file_locked = 0; (gdb) 4809 if (open_and_close_file && !auto_saving) (gdb) 4811 lock_file (lockname); (gdb) 4812 file_locked = 1; (gdb) 4816 encoded_filename = ENCODE_FILE (filename); (gdb) 4817 fn = SSDATA (encoded_filename); (gdb) 4819 open_flags |= EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (append) ? 0 : O_TRUNC; (gdb) 4820 if (NUMBERP (append)) (gdb) 4823 open_flags |= O_APPEND; (gdb) 4830 if (open_and_close_file) (gdb) 4832 desc = emacs_open (fn, open_flags, mode); (gdb) s emacs_open (file=file@entry=0x5d8aec8 "c:/d/ota/memo", oflags=oflags@entry=33537, mode=mode@entry=384) at sysdep.c:2143 2143 { (gdb) n 2145 oflags |= O_CLOEXEC; (gdb) 2146 while ((fd = open (file, oflags, mode)) < 0 && errno == EINTR) (gdb) p file $1 = 0x5d8aec8 "c:/d/ota/memo" (gdb) p oflags $2 = 33665 (gdb) p mode $3 = 384 (gdb) n [New Thread 3264.0x4f0] [New Thread 3264.0x12a0] 2151 } (gdb) p fd $4 = 3 Thu, 25 Feb 2016 20:09:34 +0200: Eli Zaretskii wrote: > > Date: Thu, 25 Feb 2016 09:08:38 -0800 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > 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? > > I tried only with NTFS. > > > 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. > > Very strange. I guess the only way forward is for you to step with > Edebug through save-buffer and its subroutines in files.el, and tell > what fails there and why. Can you do that? (Since this works on > FAT32, I suspect some issue with NT security, although 24.5 also used > ACLs...) > > Thanks. > From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 16:54:07 2016 Received: (at 22795) by debbugs.gnu.org; 26 Feb 2016 21:54:07 +0000 Received: from localhost ([127.0.0.1]:47935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZQKs-0000Rc-RT for submit@debbugs.gnu.org; Fri, 26 Feb 2016 16:54:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39234) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZQKq-0000R6-LL for 22795@debbugs.gnu.org; Fri, 26 Feb 2016 16:54:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZQKg-0000B8-So for 22795@debbugs.gnu.org; Fri, 26 Feb 2016 16:53:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZQKg-0000Au-Pn; Fri, 26 Feb 2016 16:53:54 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3560 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aZQKg-0000d6-3E; Fri, 26 Feb 2016 16:53:54 -0500 Date: Fri, 26 Feb 2016 23:53:33 +0200 Message-Id: <83si0fcf4y.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160226.112605.492625590.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83h9gwg2j8.fsf@gnu.org> <20160225.090838.192544111.Takaaki.Ota@am.sony.com> <8360xcfyqp.fsf@gnu.org> <20160226.112605.492625590.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 26 Feb 2016 11:26:05 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > I think this is something to do with my mingw. I cannot remember when > I updated mingw last time. Here is the comparison between trace in > emacs-24.5 and emacs-25.0.91. The difference is in the open system > call. Both pass the same set of parameters to open but emacs-24.5 > gets 3 and emacs-25.0.91 gets -1. Both emacs were built using mingw > but I cannot guarantee they are the same version of mingw. I very much doubt this has something to do with MinGW, because MinGW uses the Windows runtime library, so running the two executables on the same box will use the same library. > Can you think of any other reason than they were built with > different mingw to explain the difference of the open() behavior? Step into the 'open' call -- it's shadowed by 'sys_open' defined on w32.c. What flags are passed to _wopen in each case? Your trace from GDB seems to indicate that in the case of 25.0.91 we pass O_BINARY, while in 24.5 we don't. If this is really the case, maybe that's the reason, although I don't currently see why it would lead to a failure (and it certainly doesn't fail for me). Is there any other difference in flags and modes with which we call _wopen in each case? 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. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 11:40:57 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 16:40:57 +0000 Received: from localhost ([127.0.0.1]:53881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaQsS-0006zl-I9 for submit@debbugs.gnu.org; Mon, 29 Feb 2016 11:40:57 -0500 Received: from mail-bn1on0072.outbound.protection.outlook.com ([157.56.110.72]:16640 helo=na01-bn1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaQsQ-0006zY-7v for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 11:40:54 -0500 Received: from BY2PR08CA0011.namprd08.prod.outlook.com (10.163.62.149) by DM2PR0801MB572.namprd08.prod.outlook.com (10.242.127.12) with Microsoft SMTP Server (TLS) id 15.1.415.20; Mon, 29 Feb 2016 16:40:48 +0000 Received: from BN1BFFO11FD038.protection.gbl (2a01:111:f400:7c10::1:180) by BY2PR08CA0011.outlook.office365.com (2a01:111:e400:58a4::21) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Mon, 29 Feb 2016 16:40:47 +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; Received: from usculsndmail02v.am.sony.com (160.33.194.229) by BN1BFFO11FD038.mail.protection.outlook.com (10.58.144.101) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Mon, 29 Feb 2016 16:40:47 +0000 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 u1TGekE1007882; Mon, 29 Feb 2016 16:40:46 GMT Date: Mon, 29 Feb 2016 08:40:35 -0800 Message-ID: <20160229.084035.77911664.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83si0fcf4y.fsf@gnu.org> References: <8360xcfyqp.fsf@gnu.org> <20160226.112605.492625590.Takaaki.Ota@am.sony.com> <83si0fcf4y.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:160.33.194.229; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(189002)(24454002)(199003)(5423002)(23756003)(2906002)(92566002)(106466001)(50226001)(2351001)(2950100001)(86362001)(586003)(19580405001)(19580395003)(110136002)(47776003)(5003600100002)(1220700001)(5008740100001)(5001960100002)(103116003)(104016004)(1096002)(6806005)(189998001)(11100500001)(87936001)(76176999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0801MB572; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD038; 1:KexUA3A9UV45LPvALEdm1VO3m4qH3w5OQkKgsaCUakySOG1aFcjoZyxA4uYjzqDcuidv56wWLXagnidjFckZFA4yb40J2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Bp9SAzJM1jhBiqIDoQJ8ew== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:DM2PR0801MB572; X-MS-Office365-Filtering-Correlation-Id: 693a46ae-d92b-48e3-7ae6-08d341271364 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0801MB572; 20:1xr8pErocbZCegUsH34wYH5x9KM9icLOovTAXBDhARVuW1HD29VTEW8Qj8Oq/vPnE1/SJSgghMod9ReN+4nhZ96hn73NAgIP3+0k2YLSPkimXvzQxnkZ6OFrlYy9jL97y5iaEQHkQGNDdxOtSzjSoWxtG5AVO3q1T46LAzeltdBeJY93Lk/66nSMoBF9R/SzB4KZf9/yYFsB3xR1cMuNRvKD6suk6pAyh7bqWT3mb3/6Dv+EjaNRAEMOr3AWSUzOTLDXgpdg4BjkdnJcAAMk1zfuXpaEeFDZGcP9c8cEajPqXG2O2CHbQRzyURk1qeW16KOrFA9C0NPKp53hT9fObrAAyU2bbsqYa/e1p7aLhguFTCRtZYtFa6Vj+QvfF12CVR1t5Q6DzHNleArGFUPxBGdoVyUy7DcR5qDR+xWr9UrpTozqSyw7cNt94cr4wnSP+GuYduPyhgYDEYKNBy022m9FReO56uvk4+wpqe68LnQRPJYRCDlbfwlIbQ4GDzIc 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)(13023025)(13016025)(13024025)(13018025)(8121501046)(3002001)(10201501046); SRVR:DM2PR0801MB572; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0801MB572; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0801MB572; 4:N33pZma7I4+6hT1F86HtakOdxJxzynLBrGm1aHOGRxq1Rz6Ie5D3oMZ5RWaTk1zrNPr6pQlWiFu9nSju5zhs+bOFmlFacrvsTU16ZFT6n+YsG0X1hJc3b3dX3CwYQLqSm2pc69Rb5xeLqnOhx4608mTyD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Q2VgsrUvds78mg4OBm2yi/vIWIgmCMnynhs40z9TEPHZYpqPjlhWqEjYwV264I3G20xdBrR27DQbTy8jJYLR4d5UlSwVqzs0T5M95DYMHaWu/P0ZjzwaVCdtlGbZkf20vFbkpnBLKCWY/PG8PD+bN3p4tr1guOgeOrmhksN1eHgcleEDp7rXJXXVdACwuZus6g50FmyrS2EZIzzQZKNA6SuEjJ X-Microsoft-Exchange-Diagnostics: 1; DM2PR0801MB572; 5:DnrRWMOG6MvBu/Q6V0RPiabdp9/lnX2pWc8ET+uDwb5gBboi6MNk6YsqvTrQ1Sxwag6q33fpxvMhvEP2/UtCZo4ouMhgyrq2n1uG6PKB/QlwdN1+hZ9+zqwpLjQu3VUbnTne0nZuZag3os8EZS03Dg==; 24:pViG4M5fIKqGUHZO921X9eQrbmdZTGzHXNh4NQc9fc+ujIr5L3KILx4fGaIFYsUA+UAIddrgIBlEre4A/FjE4p/HV+KlGhASHza6LcOyeC0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2016 16:40:47.2538 (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: DM2PR0801MB572 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Fri, 26 Feb 2016 23:53:33 +0200: Eli Zaretskii wrote: > > Date: Fri, 26 Feb 2016 11:26:05 -0800 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > = > > I think this is something to do with my mingw. I cannot remember w= hen > > I updated mingw last time. Here is the comparison between trace in= > > emacs-24.5 and emacs-25.0.91. The difference is in the open system= > > call. Both pass the same set of parameters to open but emacs-24.5 > > gets 3 and emacs-25.0.91 gets -1. Both emacs were built using ming= w > > but I cannot guarantee they are the same version of mingw. > = > I very much doubt this has something to do with MinGW, because MinGW > uses the Windows runtime library, so running the two executables on > the same box will use the same library. > = > > Can you think of any other reason than they were built with > > different mingw to explain the difference of the open() behavior? > = > Step into the 'open' call -- it's shadowed by 'sys_open' defined on > w32.c. What flags are passed to _wopen in each case? Your trace fro= m > GDB seems to indicate that in the case of 25.0.91 we pass O_BINARY, > while in 24.5 we don't. If this is really the case, maybe that's the= > reason, although I don't currently see why it would lead to a failure= > (and it certainly doesn't fail for me). Is there any other differenc= e > in flags and modes with which we call _wopen in each case? > = > 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. > = > Thanks. > = I am now very much puzzled. Here is the trace up to _wopen(). I printed parameters to _wopen() and they are identical yet one succeeds and the other fails. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D emacs-24.5 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D 4819 open_flags |=3D EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (appen= d) ? 0 : O_TRUNC; (gdb) = 4820 if (NUMBERP (append)) (gdb) = 4823 open_flags |=3D O_APPEND; (gdb) = 4830 if (open_and_close_file) (gdb) = 4832 desc =3D emacs_open (fn, open_flags, mode); (gdb) s emacs_open (file=3Dfile@entry=3D0x5bf6ec8 "c:/d/ota/memo", = oflags=3Doflags@entry=3D33537, mode=3Dmode@entry=3D384) at sysdep.c= :2143 2143 { (gdb) n 2145 oflags |=3D O_CLOEXEC; (gdb) = 2146 while ((fd =3D open (file, oflags, mode)) < 0 && errno =3D=3D= EINTR) (gdb) s sys_open (path=3Dpath@entry=3D0x5bf6ec8 "c:/d/ota/memo", oflag=3Doflag@= entry=3D33665, = mode=3Dmode@entry=3D384) at w32.c:4172 4172 { (gdb) n 4173 const char* mpath =3D map_w32_filename (path, NULL); (gdb) = 4180 filename_to_utf16 (mpath, mpath_w); (gdb) = 4176 if (w32_unicode_filenames) (gdb) = 4180 filename_to_utf16 (mpath, mpath_w); (gdb) = 4176 if (w32_unicode_filenames) (gdb) = 4180 filename_to_utf16 (mpath, mpath_w); (gdb) = 4184 if ((oflag & (_O_CREAT | _O_EXCL)) !=3D (_O_CREAT | _O_EX= CL)) (gdb) = 4185 res =3D _wopen (mpath_w, (oflag & ~_O_CREAT) | _O_NOINH= ERIT, mode); (gdb) p mpath_w $1 =3D L"c:\\d\\ota\\memo\000\340\074\311\003\000\000\300\235\017\001\0= 01\000\xe558\210\364\141\073\005\xf822\255\003\116\137\x5c9\xf822\255\0= 03\325\245\334\003\xe554\210\b\000\xe550\210\xe648\210\375\226\022\001\= 030\000\xf822\255\003\xf822\255\003\000\000\n\000\102\225\312\003\142\3= 72\256\003\102\225\312\003\xf822\255\003\xf822\255\003\xf822\255\003\00= 0\000\272\374\075\167@\000\065\302\057\001\320\224\022\001\000\000\000\= 000\000\000\000\000\xe5a4\210\000\000\340\245\077\001\350\245\077\001\0= 00\000\000\000\334\136\325\120\352\013\000=E4\000\003\001\000\xed4b\320= \126\154\153\030\001\000\000\000\000\xe60c\210\324\134\027\001\003\000\= xe60c\210\000\000\xe600\210\000\255\x1fb5\000\255\x1fb5\xe6e8\210\330\1= 62\023\001\003\000\xe60c\210\000\000\000\255\x1fb5\030\000\030\000\002\= 000\000\100\000\342\374\312\003\340\374\312\003\344\267\042\001\300\235= \017\001\121\305\057\001\321\267\042\001\220\141\073\005\xf822\255\003\= 000\255\x1fb5\000\255\x1fb5\xed4b\320\126\220\267\042\001\005\000\005\0= 00\350\265\034\001\071\212\017\001\023\000\102\225\312\003$\000\xf822\2= 55\003\000\000\000\000\xf822\255\003\xe70c\210\xed4b\000\001\225\267\04= 2\001"... (gdb) p oflag $2 =3D 33665 (gdb) p mode $3 =3D 384 (gdb) s 4186 if (res < 0) (gdb) p res $4 =3D 3 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D emacs-25.0.91 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D 4810 open_flags |=3D EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (appen= d) ? 0 : O_TRUNC; (gdb) = 4811 if (NUMBERP (append)) (gdb) = 4810 open_flags |=3D EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (appen= d) ? 0 : O_TRUNC; (gdb) = 4821 if (open_and_close_file) (gdb) = 4823 desc =3D emacs_open (fn, open_flags, mode); (gdb) s emacs_open (file=3Dfile@entry=3D0x883a4ac "c:/d/ota/memo", = oflags=3Doflags@entry=3D33537, mode=3Dmode@entry=3D384) at sysdep.c= :2260 2260 { (gdb) n 2263 oflags |=3D O_BINARY; (gdb) = 2264 oflags |=3D O_CLOEXEC; (gdb) = 2265 while ((fd =3D open (file, oflags, mode)) < 0 && errno =3D=3D= EINTR) (gdb) s sys_open (path=3Dpath@entry=3D0x883a4ac "c:/d/ota/memo", oflag=3Doflag@= entry=3D33665, = mode=3Dmode@entry=3D384) at w32.c:4290 4290 { (gdb) n 4291 const char* mpath =3D map_w32_filename (path, NULL); (gdb) = 4298 filename_to_utf16 (mpath, mpath_w); (gdb) = 4294 if (w32_unicode_filenames) (gdb) = 4298 filename_to_utf16 (mpath, mpath_w); (gdb) = 4294 if (w32_unicode_filenames) (gdb) = 4298 filename_to_utf16 (mpath, mpath_w); (gdb) = 4302 if ((oflag & (_O_CREAT | _O_EXCL)) !=3D (_O_CREAT | _O_EX= CL)) (gdb) = 4303 res =3D _wopen (mpath_w, (oflag & ~_O_CREAT) | _O_NOINH= ERIT, mode); (gdb) p mpath_w $2 =3D L"c:\\d\\ota\\memo\000\006\000\002\145\021\133\321\x889\000\000\= 324\302\x82d\300\170\000\310\317\123\377\310\317\123\377\310\317\123\37= 7^\000\063\317\x889\000\000\000\000\310\317\123\377\040\201\000\310\317= \123\377\002\000=E4\000\000\000\xe3dc\210p\000\062\117\061\001\073\255\= 022\001\000\160\375\176\154\041\000\074\030\000=FF\000\n\000\000\000\xe= 488\210\xa69a\027\001=E4\000\xe454\210\100\102\017\000\000'\000\110\121= =B7\xe51c\210\045\143\103\167\000\000\000\000\000\000\000\000\xe444\210= \000\000\x29e0\001\002\x29e8\001\002\000\000\000\000\xddf1\327\120\352\= 013\000\xe380\210\005\000\002\000\120\213\030\002\005\000\xd868\042\001= \000\000\000\000\023\000\023\000\xd86c\042\001\xe4a0\210\021\122\061\00= 1\xd85c\042\001\062\117\061\001\xee70\210\000\000\xe4a0\210\xedef\320\1= 26\xd840\042\001\022\000\012\024\000\xe58c\210\164\261\017\001\xd85c\04= 2\001\xd86d\042\001R\000\012\024\000\005\000\xe58c\210\005\000\xe58c\21= 0\000\000\xd845\042\001\xf658\x805\xf4dc\x805\022\000\000\000\002\145\0= 21\xd840\042\001\022\000\160\214\135\377"... (gdb) p oflag $3 =3D 33665 (gdb) p mode $4 =3D 384 (gdb) s [New Thread 8556.0x2230] [New Thread 8556.0x12c4] 4304 if (res < 0) (gdb) p res $5 =3D -1 From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 12:14:10 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 17:14:10 +0000 Received: from localhost ([127.0.0.1]:53917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaROc-0007pV-5U for submit@debbugs.gnu.org; Mon, 29 Feb 2016 12:14:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45169) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaROa-0007pJ-Ks for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 12:14:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaROR-0001pv-94 for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 12:14:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaROO-0001ou-Om; Mon, 29 Feb 2016 12:13:59 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4821 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aaROO-00028r-4R; Mon, 29 Feb 2016 12:13:56 -0500 Date: Mon, 29 Feb 2016 19:13:43 +0200 Message-Id: <83h9gr8mns.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160229.084035.77911664.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <8360xcfyqp.fsf@gnu.org> <20160226.112605.492625590.Takaaki.Ota@am.sony.com> <83si0fcf4y.fsf@gnu.org> <20160229.084035.77911664.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 29 Feb 2016 08:40:35 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > I am now very much puzzled. Here is the trace up to _wopen(). I > printed parameters to _wopen() and they are identical yet one succeeds > and the other fails. Hmm... strange, indeed. Do you have a dependency walker program? (If not, you can download it from http://www.dependencywalker.com/.) Can you tell whether the two executables differ in the versions of msvcrt.dll they are linked against? Or any other dynamic libraries, for that matter? Also, what is the value of errno after the _wopen call that fails? 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. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 12:39:20 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 17:39:20 +0000 Received: from localhost ([127.0.0.1]:53942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaRmy-0001en-7D for submit@debbugs.gnu.org; Mon, 29 Feb 2016 12:39:20 -0500 Received: from mail-bn1bon0056.outbound.protection.outlook.com ([157.56.111.56]:49793 helo=na01-bn1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaRmw-0001ea-Mg for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 12:39:19 -0500 Received: from CY1PR0801CA0029.namprd08.prod.outlook.com (10.163.136.167) by DM2PR08MB541.namprd08.prod.outlook.com (10.141.87.141) with Microsoft SMTP Server (TLS) id 15.1.409.15; Mon, 29 Feb 2016 17:39:11 +0000 Received: from BY2FFO11FD021.protection.gbl (2a01:111:f400:7c0c::140) by CY1PR0801CA0029.outlook.office365.com (2a01:111:e400:5312::39) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Mon, 29 Feb 2016 17:39:10 +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; Received: from usculsndmail02v.am.sony.com (160.33.194.229) by BY2FFO11FD021.mail.protection.outlook.com (10.1.15.210) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Mon, 29 Feb 2016 17:39:10 +0000 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 u1THd8x2005497; Mon, 29 Feb 2016 17:39:09 GMT Date: Mon, 29 Feb 2016 09:39:07 -0800 Message-ID: <20160229.093907.330073141.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83h9gr8mns.fsf@gnu.org> References: <83si0fcf4y.fsf@gnu.org> <20160229.084035.77911664.Takaaki.Ota@am.sony.com> <83h9gr8mns.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:160.33.194.229; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(189002)(5423002)(24454002)(199003)(50226001)(23726003)(2351001)(92566002)(15975445007)(19580395003)(19580405001)(46406003)(106466001)(2950100001)(81156008)(1220700001)(97756001)(5003600100002)(104016004)(1096002)(586003)(5008740100001)(76176999)(50986999)(110136002)(6806005)(189998001)(87936001)(230700001)(11100500001)(47776003)(103116003)(2906002)(86362001)(5001960100003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR08MB541; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD021; 1:kZmW2A9lRgD5XXW1oLQsNa17epP0p7oPoAyeApXI84Pjdwlvag2bFzFOcFo6ykpX+pH2ItgueS0GoxmTbl56KbuLpFDiMu2YXRZagJUAWMBZihGecfyZL7eQ79MYccSgoXh2KFCeIIpX4ScNk6MfixPHSYmsoAqGiDaKaXI/pQasqUL4aG9QA6UdVvT+a0O0fwGf3LsaSfDHa79njWYdCC3I7mdcRMkxpztqiIXzDlhQ44dYYUgmlARUANuwafnFgaJozqOaKb1HaSFA/L4RIa/E+79Mh5EcaURj50zFLI+Lx95tJaD+fp42ftEI2Z6vQEkLV3VjqlQW8RDPeLgsadksuHEH8sETkr2liMRu7YNJuNCGidqEYaJ47/o3iRmvwJq4aZRtYAsK/AkSiDLtM8T9V3wFS2K2dwzGcdsxCS0= X-Microsoft-Exchange-Diagnostics: 1; DM2PR08MB541; 2:Yt1kM8zK9b9i3/meHxhZNEb4y5on20+I4xDBjz6dqM8d0Nl4mibhcPnFjcDOZ8S5/GpFEEbER1HZAsqz9c5Nqxwmk/WhycwUukQ307kF4k6lxEeNtShgkPTL0tPVQcVMQAWongUoalZ9cQzA/jgDjQ==; 3:hrRRw6tPtiVDsitybaKXVGsStwgM89Q2YYLoJQp6oNZ6ypO8pQacRHtg0NJPSeg0+qxGTtkAEpQdalvi9mPXUhctuZ3m8/dgSXh5kz9BnrKu38j9QvKXrp2eMIUjZVnfGgBcEVWVbCab1rdvbsy+r5hb7u7xCYv1sFAS3XFFFGkySwDz7WXQ6Oqsru4p6lr5uwASikk0YthuPhTSRr3z5w==; 25:cqz4Z/OM3mFyJr2dvIX5QkWKb6BkUn+2c0TYQJwRmEwhaQE801vJfKvNr3vyo8qX4O4gkuw8HPo1Gn2WXMuX/FjBYjpXUmjZDClEPJD7iKWo63xNXqG1Z9QQgFXw6guiTRwxQG6AfFChSQ6HvAX0+6CK6fPKjl0F4ShBEpqHGnShZhOHBB1UhLNIwdmZ6pVhubz8cZARPzqgxJYDwSfTZF6jwTgoD4qnPTHyPGGQKM8njayQAahf8cOe52UoEbt4k0PXwFIue8S67J52vm4tQCmQ+Vg13SJ4DUjDErVfr72fb5GmPanqg6XMtgXegOwM4wv5QO9Oef/KoLGWB4vsjA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:DM2PR08MB541; X-MS-Office365-Filtering-Correlation-Id: dab248ef-4c9f-41f9-5c68-08d3412f3b63 X-Microsoft-Exchange-Diagnostics: 1; DM2PR08MB541; 20:9A6Um+BGp+7gvb7qwtUr0vSScsyvBilKSVXSpxpGzbx7k6vAoC0gxhM1vXDCUK8IonhXHhh2cPwH9NdYAO0sSKGxHTSQvAnkmzGQxus1jZBtDkyVSwmXR2FivRgKZu//mLt69MDkINWzCtTPRMHaexgC10u0K15dWwv4kBO0XcYcLAVwmOEoX55H6VqzWU6ncmGzrli5c1sjgmpoq4zc6E8XA8tSFiHX6/l8FrDpaV5NqfbwaAvFsAuAEapPwEW5irOVDp8UYV/KcYcG1PmYT563OnylB3iaXDx2Yd0U+Ij+MpgmvS00ld53fI8NukD7pCxj0hxorxSBBhD+0i0C2+GGcoFvWtNyclmfq/lcBMrZcbrfuq8FFP+Jt8ziD2Nou4sr//Rgmd4sBM4K7ASM+kFXJ7si87q9A/ljuKr6lUyR3dInE72gniU/XKGbysiHxj8iwHvo2dwYJiiNFtDW3SO8iB7IBIaanOsdGNE25ja5YLBM4kZb+hFtJzk0VX6P X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(255870821582301); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(5005006)(13018025)(8121501046)(13016025)(10201501046)(3002001); SRVR:DM2PR08MB541; BCL:0; PCL:0; RULEID:; SRVR:DM2PR08MB541; X-Microsoft-Exchange-Diagnostics: 1; DM2PR08MB541; 4:3pfx7gpuJNFnFrsij4M133ESb91SxWYuBLHVa95VAOJDCKK8wab8Vva0F94bcnlLCxRp2iqPva9zverG/JoJLIz/9Yiwr07VN5BP7M7Y7UHCFDxdNk6g5aSgTKnr2FKWnMOGteX3mTrtUtJQ0bnVWhA5LUtjrw1HGh6WZD9tSW1aK2bFX5eGuU9XGGd+Mbd/szjRAI7ssWuv1nVfdJCMuuy7rBAXoeRM7zvNJn/MgdLRjLDczHQHcDMZOjWEvAGG7lkUNPPXbdqzfZGIzW71SQmd+PldgWVKGt0dpB5drAyswhrRCw79XeYU/9b+7szW4g+omnZlSBBJn/4ENhsJBbsm8GH1GVx3kPLntcdzQD3F9CLIDO+4EXQgk7qIdkbrejukjdeUHFx6VF1QXNYZ/I6sdwvaib72BoZL2Wv4sDqVhxvwpMZuULn3RL8p8HHtRAlDVxfVAqgRelZ7N2jX8VpnU6iDLfAuhgJFK6lZBgM= X-Forefront-PRVS: 0867F4F1AA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR08MB541; 23:EBgpEdoT4ZOmt+HqxTuwre5kZuxuvbiEi6Uv0O/pGX?= =?us-ascii?Q?WWp6h0fxL3lO6mMEcwBGE40RkiU63S6NfQgAdRoMbh6m8xedd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3wDdopyUaT/XaJQA55V+B/YOG3Y8BczjctG?= =?us-ascii?Q?c=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR08MB541; 5:xbc+LXd5z306t4vaDIAGmW1kA1U1XM3C+zf5+udU827D1i8cdKcJPXm9Yfq6MZXlWA7k171Romjt2ABlm5AQMXjLVWW/tW6yRuhgKnRMZEc2AwTwFx7Nwvo2hQj4b/etS5QNBxvV/GcPDh8fUub6zQ==; 24:1kFJG0NwBCVrXlFQTdiJwZlOilRHHszfjcHfEWsx+aaFSCHzTT3e/kTk6ypPln0ekm2npNXeMRdUdbE5lLlTCiD3FbHF2AbqNX0oQDnqp5U= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2016 17:39:10.2043 (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: DM2PR08MB541 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Mon, 29 Feb 2016 19:13:43 +0200: Eli Zaretskii wrote: > > Date: Mon, 29 Feb 2016 08:40:35 -0800 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > I am now very much puzzled. Here is the trace up to _wopen(). I > > printed parameters to _wopen() and they are identical yet one succeeds > > and the other fails. > > Hmm... strange, indeed. > > Do you have a dependency walker program? (If not, you can download it > from http://www.dependencywalker.com/.) Can you tell whether the two > executables differ in the versions of msvcrt.dll they are linked > against? Or any other dynamic libraries, for that matter? Both depends on C:\windows\system32\MSVCRT.DLL -Tak From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 12:54:06 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 17:54:06 +0000 Received: from localhost ([127.0.0.1]:53967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaS1G-00021q-Dt for submit@debbugs.gnu.org; Mon, 29 Feb 2016 12:54:06 -0500 Received: from mail-bl2on0056.outbound.protection.outlook.com ([65.55.169.56]:15424 helo=na01-bl2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaS1E-00021M-RU for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 12:54:05 -0500 Received: from CY1PR0801CA0008.namprd08.prod.outlook.com (10.163.136.146) by BL2PR08MB532.namprd08.prod.outlook.com (10.141.94.145) with Microsoft SMTP Server (TLS) id 15.1.415.20; Mon, 29 Feb 2016 17:53:58 +0000 Received: from BN1AFFO11FD050.protection.gbl (2a01:111:f400:7c10::198) by CY1PR0801CA0008.outlook.office365.com (2a01:111:e400:5312::18) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Mon, 29 Feb 2016 17:53:58 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.228) 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.228 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.228; helo=usculsndmail01v.am.sony.com; Received: from usculsndmail01v.am.sony.com (160.33.194.228) by BN1AFFO11FD050.mail.protection.outlook.com (10.58.53.65) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Mon, 29 Feb 2016 17:53:57 +0000 Received: from usculsndmail14v.am.sony.com (usculsndmail14v.am.sony.com [146.215.230.105]) by usculsndmail01v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1THruMf026582; Mon, 29 Feb 2016 17:53:56 GMT Date: Mon, 29 Feb 2016 09:53:54 -0800 Message-ID: <20160229.095354.534976457.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83h9gr8mns.fsf@gnu.org> References: <83si0fcf4y.fsf@gnu.org> <20160229.084035.77911664.Takaaki.Ota@am.sony.com> <83h9gr8mns.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:160.33.194.228; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(199003)(24454002)(189002)(5423002)(15975445007)(87936001)(1096002)(586003)(1220700001)(11100500001)(2906002)(23726003)(5008740100001)(189998001)(2351001)(230700001)(86362001)(103116003)(106466001)(6806005)(5003600100002)(104016004)(19580395003)(19580405001)(50226001)(47776003)(110136002)(46406003)(92566002)(2950100001)(97756001)(50986999)(76176999)(5001960100003)(81156008); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR08MB532; H:usculsndmail01v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD050; 1:PWuHEU/bIw6rT7w640AwtYXNWNGP4pW7KA79rToLGgLAPxcofgb7P9TryAQEggX3Sd2GlWZJJJtuQvp/cvy3ynCRS3JV9Lx7RgIBZiuwAvlHrkfObk0zfts5dVUjM+TvkXtjJl8/LqkSe36/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GUpF//3xARbnjm86gVeHz7TQegf7FNU+mjC4zGVu/3n2A== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BL2PR08MB532; X-MS-Office365-Filtering-Correlation-Id: ee9a3106-39db-4ddf-c6b7-08d341314c67 X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB532; 20:RpK2fRHDILHz1WhSu6F8iYptSclRVfDkNgMMspXzwkDJ8z3ZHRewtf7hzMjo+1sLoOSAFt6X2vt5eIjZ5z19aIcTO+KvUDCD9fz9I7DXBnZJWRlO00Y7n03gr1PxVQssEnomPX7VJMDjwX/KrVv76bgyUeAi9n03nAIt/8CNz+PrTCJHY+DZ5PSiwM3yiyOKYFXOeRr4nnRsg7vzArpid1t2kmEl4NQs7KJcmjraXXOLL/RHUWJw7TmsiXm4USE/JoPZ/wUnLipaQ4m1jdGanZntIyJCg0bNvbWkgd+bVnKGIUbNlVC51byq2gT6GdDeBItOiRxwkTHGJA6l/E3uIauM6+rZ5RBKKQNZMdUm1dB8QmbC+ePIRs0KqH56L9nA2pPE9Iaog8btF+PyeDj2fchMZd4GDtTWg9LLhOldNWoBZhoR8EprGGWEog3KsedcRnIo7sCgK1lL6ZXncG5rOcdzVh6DGTR6oMhPz6cMqwkYev7F5MQ5uY7fBXSjwXIL 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)(13015025)(13018025)(13024025)(13017025)(3002001)(10201501046); SRVR:BL2PR08MB532; BCL:0; PCL:0; RULEID:; SRVR:BL2PR08MB532; X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB532; 4:ztRsvvISfhqw3d72ON33dkgYxyW8niCiR743rrwonVaY0Stok81L9mtfrK8UY8O9683rvgBevzLG3TRDUb8Qv0ONBS6DlDKeGPHvSwn2ejBQWG9ema3Cm5XpP/JaNYTiGgiRAl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MeX?= =?us-ascii?Q?Pn7cGxjotZvGlFyt2rAs14GAYh4HsTZqcwrj7ixVT63CuRvDD76WFDkVmGvl?= =?us-ascii?Q?pNOsPY2nnPX1nPDOrx8zAL0xrUr/gsv1M0fuObPoI6CKo7hN8qY1WvuY4sIp?= =?us-ascii?Q?in0kPS85qR63cTD1DvO0P82Hxg6pBxk7u3EMV7ISPSxLYX2hNZStTKzeojtj?= =?us-ascii?Q?1cbvxfS84mFPdlfEvWyvrfYKDJYsh8X54CigkuorYeIXKi+UQ/SaaSJTtGpc?= =?us-ascii?Q?8dkY8LASN2Nv2vF0K3ygT4wBfMgBOapycd0I3LUXYfDtqaOx3BbdlGCAp+wx?= =?us-ascii?Q?NAtgPI4WU1zlyvzTQG5X5577oWxSVTt9X5p6HQrtzHxHYBIzexlJ6r57PWUo?= =?us-ascii?Q?roG+DfQptSLDjP/N1r4SdzSqsYJtf715haDhJWj45oIbT8g2tE1w21tSzCYj?= =?us-ascii?Q?NrEUvQx/YVwMMyMS41kjHVqC0ZgrtJNpf7p1V40b186IICe5iuPZPL5aMTKD?= =?us-ascii?Q?s=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR08MB532; 5:g0qUjGdifELCsVuMLAZMVgvzkFcz2cUe9nZBjybcD/KVBlM5ppUL4D6BXcWwSBBYa3Yl3imHBR1B2o9f0qZMV6/cYsTPc+hPCkrtImpKtbV+6YxSj1x6k37iRGpRoOD+VrN4Kao/ipjCqWLR7djXAA==; 24:Z8RIBrcWDueKQeFKbByg1N2ifeXLS07iLPWRus1UdWg1OWjXvGLdhFhnYTbjUWTEy0LJPKdqz7z2GL81wcB13yU6/ckdd5QXE59aiF0pLdI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2016 17:53:57.9040 (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.228]; Helo=[usculsndmail01v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR08MB532 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Mon, 29 Feb 2016 19:13:43 +0200: Eli Zaretskii wrote: > > Date: Mon, 29 Feb 2016 08:40:35 -0800 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > I am now very much puzzled. Here is the trace up to _wopen(). I > > printed parameters to _wopen() and they are identical yet one succeeds > > and the other fails. > > Hmm... strange, indeed. > > Do you have a dependency walker program? (If not, you can download it > from http://www.dependencywalker.com/.) Can you tell whether the two > executables differ in the versions of msvcrt.dll they are linked > against? Or any other dynamic libraries, for that matter? > > Also, what is the value of errno after the _wopen call that fails? 4303 res = _wopen (mpath_w, (oflag & ~_O_CREAT) | _O_NOINHERIT, mode); (gdb) s 4304 if (res < 0) (gdb) p res $6 = -1 (gdb) p errno $7 = 13 So it must be this. #define EACCES 13 /* Permission denied */ > > 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. -Tak From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 13:05:39 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 18:05:39 +0000 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 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 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 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; 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 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 Date: Mon, 29 Feb 2016 10:05:26 -0800 Message-ID: <20160229.100526.284620885.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <20160229.095354.534976457.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> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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+TyXLyUrkqyvPnNt1qBw+lI519gzu3mX44sgVPA0XXBpI0+eVwJrgzsfWYn45g+xyQrKslFACqOPfMGm8eMcUuzS/cNKRNIhKGoW2DvJ6x3GE3+PFb6a8dC4aWEOv5luUr81SdhWYLK90TMR/pjERFxjQ37D9iquPkZbKc3MhJI2cVt5tl5TVTNna7TqOU2IO+loF5SZ4VrgwIuhl1gv13yzDFsPSOkZoKZg1Qp3fUrJyRsAfIToEv8JeFlBSbaMbAM+awBY527jBit5V8fuwaJY0lFla0tdezcU6cH7JijtA36dGhj3zM3ACwdzz970KSbkoaN70pV4OvJGsFyFfJJ8ZZWkn54+HWlqXlff9Q4j1d1n0DqPxOUS8blEnjZlbIo4= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB562; 2:Nsk2shxC1n5uPEeSkKxY0QyE0jJjnu0eUCnJklCcrCs+dwsRIRXSgQvJXZjyKzz1AOpx06V+XtZoHcHkZNkisXPYifRCCvYajOouQMXZbY+k09cCkDEOlpHu2NWZev2BSJhJeA1cVOyqe0GAHVHY5g==; 3:Yr+RgDPeSm4s3Yxut9lzhp6q0VKMQ/wJ/ifOxEaYuMMOmeRQD6DVez6iXSTBbm7EUVm057IjLwbvdtM4km2z6xxU5lXkOdhZB+FGr9AT0G+uqPqTKVpgP0yjTiBW54OgU8Kjaew404O/HBoikWrNdr4IAgUysYLK6ttX7A2FvkhsLHSM3KEqEbiQ2EhodXjN+HHBEZRx/68mgPkMBxMUhQ==; 25:pR0DkAvuOYIi8C/78N7/H5SIxuJHErVcxyJDswmMgBFtYw8NNtrCcNy03l0Tz8SsRUuGLeBgRrfI4ctXum0FnArWWKlA77EDp4DmWABeDyUm67u6WVZnA2pq5F+qfmfWPl3kSiR2sgHUJHQB9jwP4NZfy9XA1urypeUcQMUFvCno+JWfgkiB/mgUq5Fr+KvJQEaR0omYqdYvhAerIJnFjKPqdeLrUqV7dYZPHRvshGmwaNzge1cwPi6q78s20HAhWrfuxeJ14DeP8LaVQ63A9SClaVylvTPh5iZ6ruO0ax2gLjGW75w366nCV2AluG2Epucm18RAzGnuUFs8bCC4Wg== 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/OfFkoxCNyjTdgben2sbd9tNl56Y4AUlM2SKuVsdYJIi8p2WSaTLLfh5BvlX3WADlS8mTtHARe7hcHjX0jsnxIj1nGrHLwiXvThFLvM+o53D8PTI8pNGhwk+in4/2VkI5SMtCXKD513+U4AWLFFa1y5l9LRqB2CTcVHH20eWRdqlYJIfDOnzdBX2ogsUdSI1X39ufVu0Fh5mL4lSahiem2/imMBi+ZlGmnar56WvnPHp60KkOCMU0RPCYk30vDcwo517IA1C7Z7H1EgMkRmiO3clnAeFFSclrNVTNYcpQiNbhRN5z9K7yGAlSsI+eKf33QmZmNM4TfAaG0Wy/8sdg8nNxIx0PsvC/PiieAaA/dlX/jwRmjnYTMhBgrTfmi/Z8lOYqoBUSIVDkg5HRVCduGpZ2j4= X-Forefront-PRVS: 0867F4F1AA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0801MB562; 23:epDf8xRfEXg//rThPlSSdt8aCELnHWZ9sihe7dX7?= =?us-ascii?Q?5FA5vm8Km8FnHUP5vIyXeH+3qnI/S5Q6qDwvJDhHUluLrquYIBKtAZTWRBKo?= =?us-ascii?Q?HBg06t0cO0wMAeOWAAwQxpq6APdguEoFmVgc8rQOPHudgr3U6A/rdo4b6MiD?= =?us-ascii?Q?PMgzqedb9OoxTySDbM01Xd/RUcW2YwRR8+DJkt2LcQGwxWOBseTQUMcoYnYR?= =?us-ascii?Q?pZBLFf2xbuF0VkL5pI6NJypF6a7iydU1PtYen83jGJV3n6fWGEqY34xX2fyC?= =?us-ascii?Q?AC1hCykaN8qecVCEduS2U1jWkcRmVeAbzOi2ibmera/HtSXSRN+wuQbpKqkd?= =?us-ascii?Q?behwdcDlS0uIwfLC4+VTzXJF5pHSP7YRNWTYoLMJ4dR/Ie0WpVGVJ/6SFeOn?= =?us-ascii?Q?YntoYNh2Qq432mSi3BL/zwDM+WGq08iTXJi58zeD/eIn/QBLsBccHSRkepYp?= =?us-ascii?Q?oGdlNg1VUSQjSJDYh46457FwSH3b05z9U/AdVW9cR6vVEYiUnmtE0sVIDS27?= =?us-ascii?Q?3gZJGAfgEi4Onwrove/xwWe5qXwpecLHy+9erKSGBvnuEeWGSgmWl5Gq25zT?= =?us-ascii?Q?+LuHvZlqF6XhZ0vrbt5wFRWKGBQ7lVJfrQUUEyalUaxtS+XBd/cJe70ie0s/?= =?us-ascii?Q?xhTeKANJpTQ7Fk3p7gWhUaibMs0cKlSEXmlCQR2J3/ew6590Gb3oVupLSqVa?= =?us-ascii?Q?Lx1qjrOEqcIrPi8Dp6ZIRPlq5uqfDB2BZLDUPF6pXCk/MUpZ644oJ61fz962?= =?us-ascii?Q?kIOp5irYegpY41V5SoTfbyOD6QibAougxW1daT2Eal7sTE0+kJEO6hZno/Dr?= =?us-ascii?Q?/173SieaVuJVis6td2sUB0UJeRr1lEKe4EDuIil1NY9aIzIh+jOO9EeAbBTo?= =?us-ascii?Q?i3pexsqFjRCpm2HJ2Zys6OTPdXUWsYS2LcuqrbWH5k2DQlKoI8y1oWUOph3w?= =?us-ascii?Q?IRnGqizBIqXDSB3mQY75ZOJ8s3fN2PtT8Xhnpj01aA=3D=3D?= 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 13:32:06 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 18:32:06 +0000 Received: from localhost ([127.0.0.1]:54006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaSc1-0002yz-WE for submit@debbugs.gnu.org; Mon, 29 Feb 2016 13:32:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38134) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaSc0-0002yT-Ch for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 13:32:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaSbp-0005e9-7F for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 13:31:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaSbp-0005e5-3S; Mon, 29 Feb 2016 13:31:53 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4988 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aaSbo-00070L-ET; Mon, 29 Feb 2016 13:31:52 -0500 Date: Mon, 29 Feb 2016 20:31:39 +0200 Message-Id: <83egbv8j1w.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160229.095354.534976457.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83si0fcf4y.fsf@gnu.org> <20160229.084035.77911664.Takaaki.Ota@am.sony.com> <83h9gr8mns.fsf@gnu.org> <20160229.095354.534976457.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 29 Feb 2016 09:53:54 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > > 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. The file shouldn't exist at this point, because Emacs renamed it to a backup file. This is what I see here: the first call to _wopen, without _O_CREAT, fails, and we then call _wopen again with _O_CREAT, which creates the file. If during the first call to sys_open the file already exists, then the problem is not in sys_open, the problem is when the file is backed-up, which should involve sys_rename. If you put a breakpoint inside sys_rename, you should see it called after you type "C-x C-s" to save the file and answer the question Emacs displays about the file being write-protected. Please step through sys_rename_replace and see what happens there, perhaps the code there fails to detect that the file is read-only and remove the RO bit before renaming. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 13:48:53 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 18:48:53 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Mon, 29 Feb 2016 20:48:30 +0200 Message-Id: <83bn6z8i9t.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160229.100526.284620885.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 14:28:33 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 19:28:33 +0000 Received: from localhost ([127.0.0.1]:54043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaTUf-0004JZ-29 for submit@debbugs.gnu.org; Mon, 29 Feb 2016 14:28:33 -0500 Received: from mail-bl2on0059.outbound.protection.outlook.com ([65.55.169.59]:6272 helo=na01-bl2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaTUd-0004JL-KV for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 14:28:32 -0500 Received: from BLUPR08CA0039.namprd08.prod.outlook.com (10.141.200.19) by SN2PR0801MB576.namprd08.prod.outlook.com (10.160.15.153) with Microsoft SMTP Server (TLS) id 15.1.409.15; Mon, 29 Feb 2016 19:28:25 +0000 Received: from BY2FFO11FD002.protection.gbl (2a01:111:f400:7c0c::156) by BLUPR08CA0039.outlook.office365.com (2a01:111:e400:88d::19) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Mon, 29 Feb 2016 19:28:24 +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; Received: from usculsndmail02v.am.sony.com (160.33.194.229) by BY2FFO11FD002.mail.protection.outlook.com (10.1.14.124) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Mon, 29 Feb 2016 19:28:22 +0000 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 u1TJSJJW026153; Mon, 29 Feb 2016 19:28:20 GMT Date: Mon, 29 Feb 2016 11:28:15 -0800 Message-ID: <20160229.112815.255467998.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83bn6z8i9t.fsf@gnu.org> References: <20160229.095354.534976457.Takaaki.Ota@am.sony.com> <20160229.100526.284620885.Takaaki.Ota@am.sony.com> <83bn6z8i9t.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:160.33.194.229; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(5423002)(189002)(24454002)(199003)(104016004)(19580405001)(76176999)(586003)(50986999)(19580395003)(6806005)(5003600100002)(103116003)(47776003)(4326007)(2950100001)(189998001)(5001960100003)(81156008)(2906002)(1220700001)(1096002)(5008740100001)(50226001)(2351001)(92566002)(87936001)(106466001)(110136002)(50466002)(86362001)(23676002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0801MB576; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD002; 1:fucHHuVewvCYGX1iw78lhdxzQoC87GWrcuQnvU8z8A7IEogjULPc6w5Iue/k0IS8kQNljlJ4hhFWqFYk+3uG2mp/vcCiQ4+Xs5a+IYOX9T9mHZiXaKqAY+tJQBi78bD7twyNS+bT/W0bxiDWtUXxAB3Tyiayb367n2tqNvt1zG/baxS0cf/g/kpMnnqd0FDCB8u4V6kSdGE6l8cZw6xbQcCC4vL0BV9OqgdjQdtPH+OPrTiAzY5V8OqQjHTqno1EtdghsFQG1Nno/6ppGEcl9S/Gf9BZ/BFnpcglu17nVil38sjmy3aPoCLSNmk/gXt5DDyVjOcsocj5JeaQrpgNcnRb/MKUAF7e37g9IXFsLgDsurEkYde7IiphZ/dBjw4RpMuo7E1F51vL1DQbsE1wn6QMGv8cG8eMvy6o3wp5WTk= X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB576; 2:4n+nP/aF4YUYHVivGnKALLbRIc1KmgL4LKkX+YgSRtSNF41gXFBgfF6bfvqWUt/SNrQfquzWf4mY79e0iSV3pUucNmX2lThurD/s4shJCsbBxeL9SGWVt2GqewWkLNV/y6F8LiaL3lxGKqKJ8/Myaw==; 3:Jf3DOnruo6yxVbkGhCfISTe72noNSPcGF0ZmQd8yWGAwXiEkf/fIQWPa1V+vKt30PkIb+KWn0TfQOrC2PyTou06tvF/HknMACmiloqfiE968aQvBVW+cikgrnV5/mkFl2FKt5bpwc4Bq2Kk9Zm/xYAQKEIu1l/u7hgAbQaZKfR1sUAkZ+oXndfu/0ya1BRGT+oFe9ZVixPFc8ZaEkwlC2A==; 25:X6ZqtAdEhhp8hNGZTXhwRs+IA4Z1RNUESQUjSK3dq0LNoktpPPNFsCo5f/x/Ei8vQjtwQNdhL9M93sN/T9LVilO98Zw1nhxJ1bU0s7OT7Yin1tv0ECzxORVoONWBx3I4bBmOR+cqQzYIURMPflKLMxjC+vkXKeGfpohkI7rP8keERuqWblP6Deks4/BHFcPz/DmTro9yk6vK32cOP0nOmUgJHeiSadw86EqL3s7dMzmXcw1/+HPz0Yc2thG1cU3Xb57aPIQKnzwXp64WM9hc+1+PjYFzjR+G0gLjOxfb7A+qqJ2eY2JQ9XQ4aTaf11FFrIXAj2WnqzQB2yvMKSo3O8wJj4tf4WZbGbgPv53TlKM= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:SN2PR0801MB576; X-MS-Office365-Filtering-Correlation-Id: 4b2c26d6-bef3-4321-6042-08d3413e7cfe X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB576; 20:qdsHjcMvuD7hIJ/Lx+qiuLkAAXqZCKxVtqqqrIIMvJZteoVBqN7X1Z+MjoGNfR+aVO+tXtkXsvglrJuNEYiDZAj25VwTBUZT8S0avFsSBrxdhgHlQTUIvxZDFymfDezIsQjIPjAbaXSAxQQoUYKTvVFxgkn+F0vpN973dD63UhvRvwvnIQ6M9F9igrQ6nIMJrPHHNJyA/KkVvOV+z3OhNp/C0yu1I3RJr4Zcgjmqwm6wFJWjKKzw5jasTjXD29x2DomGjNE3c9Cwtp79Bt8j/tEYe66SYsAn8WU9n9xjtwj4S0cEtW7dmV8Kb7tPXg60cUvTEjcDxvz9nDtm+KhBbwGyhNo3BthzagozqhACotRYxXnfWvJnC0ZZJNogsLP77IeXQMXrmig5jmS2wB725HUr2thjJbmPBDN3Bj5a1M59cMdwlPIOrrqk+2gQaWsbB9Ug+NNKxKn1MKi1Fi6Gm2moyK26Amj7N4yVnDcMp+j/QIRi6pyNe1naakA+5U8Q X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(255870821582301); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13016025)(13018025)(13024025)(8121501046)(13023025)(5005006)(10201501046)(3002001); SRVR:SN2PR0801MB576; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0801MB576; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0801MB576; 4:yK+S3122wTIGdS55Kkfmd98QcLJG2YGvrSbfm4qAX/DD2Ls8uNDry/JfNTOgqBbNMSlaPlagP5LdFk3nU2t9u2Jw2U6OCblYJxcqHGdCX/fMoDG8pY+Bpt1eUJkQNlq+dVBpu5cOymrD/akYg8euSI06IzW8fy1fe8fBon7uM887iTZqXAWmapEIRFhhlsCCeQWSrZ8bl3z5ZkiDbsKanTnTLnPUVlqp63yNLpD4hbjuN0RF8GVCYFUhmzMtpnCP2LUqpx3jTSijonpWsJgw94LnG2FdTepLrY9BeaXhpEbQuwxXd1qLLz9bctkopLYed/Szx5WzUyKNicMckVGQqkc7Zjy9XIvv8gBK0Z0piUUTzW6mbqy8t7aJ3+TMpp24MzB+BdBhw0+C941BaVt4baqZIFwDvQqhRXjbbvYMyTXLx/28I8PiV1/zbg8l+dVN5tn45iUB4PH5unZx91db+FNdS6TC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bgJjctxPdWN4DEfVwpO+7Ug/AP5MwdnGIj1Y333V04rOvfmtBluf7DDllIC0N/uy7YeSAqUBVCihjY63eSSn9Djl4y+S9Id7xwQZfRgiK8x39+Vyaa9B6HCW4rGZsLTOvhxFg==; 24:V4ru2ccoBdGy04pCHyKstUWnwhm92kf4jxC0mr5vvkOdJ+jO5HaE/vqW9t0OghBnK9OkdHb6a0W8RPvnOFegpi4kxdCYOMIlCR+vRvOb7EQ= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2016 19:28:22.6451 (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: SN2PR0801MB576 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) TW9uLCAyOSBGZWIgMjAxNiAyMDo0ODozMCArMDIwMDogRWxpIFphcmV0c2tpaSA8ZWxpekBnbnUu b3JnPiB3cm90ZToNCg0KPiA+IERhdGU6IE1vbiwgMjkgRmViIDIwMTYgMTA6MDU6MjYgLTA4MDAN Cj4gPiBDQzogPDIyNzk1QGRlYmJ1Z3MuZ251Lm9yZz4NCj4gPiBGcm9tOiAiT3RhLCBUYWthYWtp IiA8VGFrYWFraS5PdGFAYW0uc29ueS5jb20+DQo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0XDEzMFwwMDFcMTE0XDE1MlwzMzJcMDA1XDAwMFwwMDBcMjEwXDE0NVwx MzBcMDAxXDEwNlwzMDdcMDE1XDAwMVwxNDBcMDA2XDEwMFwwMDFcMDAwXDAwMFwwMDBcMDAwXDMx NFwzMTFceDg4MCAgICAgICAgXDAwMFwwMDBcMDAwXDAwMFwwMDBcMDAwXDAwMCAgICBcMDAwXDEy MFwwMDHCqFwwMDDCqFwwMDBcMTQ0XDEzMFwwMDFcMTE0XDE1MlwzMzJcMDA1XDAwMFwwMDBcMjEw XDE0NVwxMzBcMDAxXDEyMlwxMDJcMDE1XDAwMVwxNDBcMDA2XDEwMFwwMDFcMzE0XDMxMVx4ODgw ICAgICAgIFwwMDBcMDAwXDAwMCAgICBcMDAwXDAwMFwwMDBcMDAwXDAwMFwwMDBcMDAwXDAwMFww MDAiLi4uDQooZ2RiKSBuDQpbTmV3IFRocmVhZCAxMDY2MC4weDI5ZjRdDQpbTmV3IFRocmVhZCAx MDY2MC4weDI5MDRdDQo0NDY3ICAgICAgICAgIGlmIChyZXN1bHQgPCAwICYmIGZvcmNlKQ0KKGdk YikgcCByZXN1bHQNCiQxNiA9IDANCihnZGIpIG4NCjQ1MjcgICAgICAgICAgICAgICAgICAgIHJl dHVybiByZXN1bHQ7DQooZ2RiKSANCjQ1MzkgICAgfQ0KKGdkYikgDQpzeXNfcmVuYW1lIChvbGQ9 MHg4ODBjOWI4ICJjOi9kL290YS9tZW1vIiwgbmV3PTB4ODgwYzliOCAiYzovZC9vdGEvbWVtbyIp DQogICAgYXQgdzMyLmM6NDU0NQ0KNDU0NSAgICB9DQo= From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 15:07:04 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 20:07:04 +0000 Received: from localhost ([127.0.0.1]:54085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaU5w-0005GI-Dd for submit@debbugs.gnu.org; Mon, 29 Feb 2016 15:07:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:32882) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaU5v-0005Fm-9F for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 15:07:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaU5l-0005d9-DY for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 15:06:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaU5l-0005d5-A5; Mon, 29 Feb 2016 15:06:53 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1103 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aaU5k-0005VK-Af; Mon, 29 Feb 2016 15:06:52 -0500 Date: Mon, 29 Feb 2016 22:06:39 +0200 Message-Id: <83a8mj8enk.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160229.112815.255467998.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <20160229.095354.534976457.Takaaki.Ota@am.sony.com> <20160229.100526.284620885.Takaaki.Ota@am.sony.com> <83bn6z8i9t.fsf@gnu.org> <20160229.112815.255467998.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 29 Feb 2016 11:28:15 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > emacs-24.5 never called sys_rename(). ??? It does here. The call is in backup-buffer: it calls rename-file. Are you trying this in "emacs -Q"? If not, perhaps you have some customizations, like backup-by-copying or backup-by-copying-when-mismatch etc.? > emacs-25.0.91 calls sys_rename() but strangely old name and the new > name are the same. See below. > > -Tak > > Breakpoint 1, sys_rename (old=0x880c9b8 "c:/d/ota/memo", > new=0x880c9b8 "c:/d/ota/memo") at w32.c:4543 > 4543 { > (gdb) n > 4544 return sys_rename_replace (old, new, TRUE); > (gdb) s > sys_rename_replace (oldname=oldname@entry=0x880c9b8 "c:/d/ota/memo", > newname=newname@entry=0x880c9b8 "c:/d/ota/memo", force=force@entry=1) > at w32.c:4404 Again, is this in "emacs -Q"? The backup file name is generated by the function find-backup-file-name, you will find it in files.el. It is called by backup-buffer. Please see what file names it produces in this case. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 29 16:34:52 2016 Received: (at 22795) by debbugs.gnu.org; 29 Feb 2016 21:34:52 +0000 Received: from localhost ([127.0.0.1]:54199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaVSu-0000ve-9n for submit@debbugs.gnu.org; Mon, 29 Feb 2016 16:34:52 -0500 Received: from mail-bn1on0092.outbound.protection.outlook.com ([157.56.110.92]:44880 helo=na01-bn1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaVSt-0000vR-4k for 22795@debbugs.gnu.org; Mon, 29 Feb 2016 16:34:51 -0500 Received: from BL2PR08CA0062.namprd08.prod.outlook.com (10.255.170.180) by BLUPR0801MB564.namprd08.prod.outlook.com (10.141.253.12) with Microsoft SMTP Server (TLS) id 15.1.415.20; Mon, 29 Feb 2016 21:34:45 +0000 Received: from BN1BFFO11FD050.protection.gbl (2a01:111:f400:7c10::1:183) by BL2PR08CA0062.outlook.office365.com (2a01:111:e400:c4b::52) with Microsoft SMTP Server (TLS) id 15.1.415.20 via Frontend Transport; Mon, 29 Feb 2016 21:34:44 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.231) 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.231 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.231; helo=usculsndmail04v.am.sony.com; Received: from usculsndmail04v.am.sony.com (160.33.194.231) by BN1BFFO11FD050.mail.protection.outlook.com (10.58.145.5) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Mon, 29 Feb 2016 21:34:44 +0000 Received: from usculsndmail12v.am.sony.com (usculsndmail12v.am.sony.com [146.215.230.103]) by usculsndmail04v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1TLYh2Z017470; Mon, 29 Feb 2016 21:34:43 GMT Date: Mon, 29 Feb 2016 13:34:36 -0800 Message-ID: <20160229.133436.92017905.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83a8mj8enk.fsf@gnu.org> References: <83bn6z8i9t.fsf@gnu.org> <20160229.112815.255467998.Takaaki.Ota@am.sony.com> <83a8mj8enk.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.91.2 (i686-pc-mingw32 built on 2016-02-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CPI:160.33.194.231; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(199003)(5423002)(189002)(24454002)(2950100001)(2906002)(50986999)(92566002)(50466002)(5008740100001)(76176999)(86362001)(6806005)(103116003)(81156008)(1096002)(11100500001)(2351001)(1220700001)(46406003)(23726003)(106466001)(50226001)(104016004)(4326007)(97756001)(87936001)(586003)(189998001)(230700001)(47776003)(5003600100002)(19580395003)(19580405001)(110136002)(5001960100003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0801MB564; H:usculsndmail04v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD050; 1:bdzBDpPOi4zPC6j2XV5CrQmuKx3/kFF6t3ImrTrV++TLQI+CjEqFV2ID8Dw8kQ+jV7foUh698/8Emmxs3NgUsUsbTq9Md4HaitOXSaYYIeVa/+8OJxG9Qe2nKpnrBYFlII2eX2DBOHPjg9aSCWIUMNXR72Hpl5oAzsFjLiZcFIZLIe3UekOHXKdkXRehXioPVO0XD/W8BNhbd+06S1I1Boe4Y0FHASJpw3Ty4kew08BeXCqkrbJruXwfk4xlJt08T+ak3TXMYqC1LuYg717pH/Ki1/G4X+owuT1BDbp9tEpfKv/nJ+DOAqNntAyzoMqb7YIUqwhjhxnndNjNT90ptjJIRUHXNXZncC8BtqdoMEUJMTrh8h0xXd2gKfomnvQt3UrjMP1ZdR8fMeb6kmE+3rb9EU6Rr5AqM5mRdDDDs34= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB564; 2:0R223jj9dhNlOG4stSbwDZFiWzUhlbw2qbNrkJrb4xeR0UsmsR09r6DDf2pn+HHIkwo5KpXqcBs1LZ0QEYyYJXTSKtFtFkHKeSTPRwSCGajF9vGfjJJKKoiOyEcGGt+P0gMTj4HVQ99uddVSOqxa1w==; 3:Ya4QO02QN+eFgHW6w8KsWuDMPIFsKb+M6xWUsEVJHDGz04AhmZRAvZIeHGhgxGWwR3oPkp/F4FY0vS2AujJMdzrtH2nAksBteQ2lytjdB4N34Cen2yvLUef1M4eOv+04bglL4dchdWrXNU38kK3pYea9ICRt0uGd9gQL+RQTO332Bl7bh6dyHHNjr5scMfr3LLXblvAyh90AYYBJ5HPQ8w==; 25:09gO3ZYjCxgh6vp+R86F2DKWjAvhvGM4U/ow9bznncCPCZRn5SPGef9IOu5EyK/u9GZfnv2egWYDWvMjYw4wRweJFT7Tzkd2Ou7fpLfAEUVab/Y8EYD0LFU8vF+wwaFDDVVpQYct1/KHFIWl6e/oLaxTDT+0Ue3mL9fGvMV1qz0HM/m1LkzCPxI1keFO4muSHpoHBP8ZuFPoiP5sICIgMS1ljAVkf3TU+ZOvu+xV1t9h3EtktRuEpaAoN7MVo2YVVlg51iyUz46/SUVPoZa0dgRZ6BTTVkT3GACb91R0DJlv2BqGAfIUGpTfrcVcMqdqeNhPRsqO9ASz8/oX5wleiQ== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BLUPR0801MB564; X-MS-Office365-Filtering-Correlation-Id: 845c7a6e-0e64-49c3-81e3-08d341502423 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB564; 20:qU62xhnTHaRcgjBXUrbvQ15Ny6Yr6dYnVcPlrBZ5NwxlWUTUNAQ/6PqEuvbI7lpMlYHItEIuWLTbOMHEjjKeGYIumaerLniKcxTAO3Cs88HrVHIETLTO0RrerdFw2a94jpkz9paPtmzR1f+J6zbSrRrCUVBZRHkGWrFPUYQ0jiqKdM9/gVdK4OoBHsLBsy/BJuOPYsu99AFMXceRjE2piomEmZGUpC4CyM2iN8s1ebjrCsPp+Wdg395JTExWPiKtbxDs6Jb8lh2CK+qISyh67gA0YKc/+isLACFndqUooRO8Uf2tMtO5wNkvrwYWxTmqSE0PIB1OmD1PAdIkrh7+6u83b4RIweD5tI6yhXhj43PUFizQPqI5hJqm8Z+gHPjpK+/OOInA4+uvDR/O7j+Q69jyqBIALM6zG8Hmdoq0pEHKNVS6s80e57by8wykQHYHPO1MuRFEi53z2HVpOTplT9lLP4WHfnegCz3B1Q4UlIyErgKYtdiHqp+T3ZD/DRKG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(255870821582301); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13018025)(5005006)(13017025)(13015025)(8121501046)(10201501046)(3002001); SRVR:BLUPR0801MB564; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0801MB564; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB564; 4:RQ+rpD6ZKPSHKHjtX4hMRJ4w56dpdgRh5YeOQslkRkwKz96gQ8PiV9ixvSn4H5YzfK4+7TH/W55ok4Ay8tsRsOfEGKOfbS/HZjkX/Vpz57C7mlNKnbOH3jZdnqQ4KWsDmRMd1xyX7iPKhG7U8PMHwkEQxll3p0dpIJjFGpQGZQCkqfeJ/caKJBsmVLGbm18KpzAmNwo3FRb7J+4jARB1XGO5xgUoc3Y9Xbipp2kuPS/ameeeiAkMIVobVLARvu6aVTDTPS0x6uJMpciATZjtkOPvIL8NxarhDyLC2wsUKqv2nd2m+B+48ITDIvouqks5qXp7ZOeE1en8dVbdct0Qhx4lgWn4bBKdJkUNQBAFY8ibu86i+NDgpm7pC2Jx5r/Gok4s2S/sf5s5K/PvKW0AuaqZXeI3ZbzCAY6+GC5/WatQgxCBWQfc8DrpPJ0NQI2B1EBvYqVegnfHLrZm2LjZ/vmzWLK5ys81KTLM6Lj6lRIeKYfTvBu3d3xYCgEZi9QP X-Forefront-PRVS: 0867F4F1AA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0801MB564; 23:dVlGoANIX8uPkQP6pfMBILCCVom+hG5phFsP1nEV?= =?us-ascii?Q?CNrexVGP1FUUACyYURoD5YfK6fuoXsouA0HALBAqNTknXo2lnB+XrGkRd1QT?= =?us-ascii?Q?zzxOn3FUuJKHTDWMirhQbVVU8Kpwc6eJk875z/Tywvo+e4AE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?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0801MB564; 5:BILoNNnlnDjy3bpCowofJqfjttRECxN7Bgb2bQSzZBN3TXJ4CcfgUJ+Otfa+hiBa9QXefxPc0aLpjHqJvUF8nfv4Fd8qoLYlzEcWW8d58tsoKrxIqDv5WQrWKNbCAdp8UyctqY0YRP4WC8JircFdDw==; 24:XWhbfEEEpMmAtazqHHo3k8EK3sGVlet1/TwXDpBGtK0roI1uiK8/plcgAcV0XHSY1xJLGdnnIKHGQAT7gDX8Qxk3TTl+I4ALpYUSPUaml1A= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2016 21:34:44.7307 (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.231]; Helo=[usculsndmail04v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0801MB564 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Mon, 29 Feb 2016 22:06:39 +0200: Eli Zaretskii wrote: > > Date: Mon, 29 Feb 2016 11:28:15 -0800 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > emacs-24.5 never called sys_rename(). > > ??? It does here. The call is in backup-buffer: it calls rename-file. > > Are you trying this in "emacs -Q"? If not, perhaps you have some > customizations, like backup-by-copying or > backup-by-copying-when-mismatch etc.? > > > emacs-25.0.91 calls sys_rename() but strangely old name and the new > > name are the same. See below. > > > > -Tak > > > > Breakpoint 1, sys_rename (old=0x880c9b8 "c:/d/ota/memo", > > new=0x880c9b8 "c:/d/ota/memo") at w32.c:4543 > > 4543 { > > (gdb) n > > 4544 return sys_rename_replace (old, new, TRUE); > > (gdb) s > > sys_rename_replace (oldname=oldname@entry=0x880c9b8 "c:/d/ota/memo", > > newname=newname@entry=0x880c9b8 "c:/d/ota/memo", force=force@entry=1) > > at w32.c:4404 > > Again, is this in "emacs -Q"? The backup file name is generated by > the function find-backup-file-name, you will find it in files.el. It > is called by backup-buffer. Please see what file names it produces in > this case. > I just tried again with "run -Q" from gdb and the result is the same. 24.5 never called sys_rename() and 25.0.91 called sys_rename() with two same names. -Tak From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 01 11:27:57 2016 Received: (at 22795) by debbugs.gnu.org; 1 Mar 2016 16:27:57 +0000 Received: from localhost ([127.0.0.1]:56513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aan9R-0007GF-9p for submit@debbugs.gnu.org; Tue, 01 Mar 2016 11:27:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60476) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aan9Q-0007G0-87 for 22795@debbugs.gnu.org; Tue, 01 Mar 2016 11:27:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aan9G-0006cR-3q for 22795@debbugs.gnu.org; Tue, 01 Mar 2016 11:27:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aan9F-0006c9-Rj; Tue, 01 Mar 2016 11:27:46 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2039 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aan9F-0005pS-6Z; Tue, 01 Mar 2016 11:27:45 -0500 Date: Tue, 01 Mar 2016 18:27:35 +0200 Message-Id: <83oaay6u4o.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160229.133436.92017905.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83bn6z8i9t.fsf@gnu.org> <20160229.112815.255467998.Takaaki.Ota@am.sony.com> <83a8mj8enk.fsf@gnu.org> <20160229.133436.92017905.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 29 Feb 2016 13:34:36 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > I just tried again with "run -Q" from gdb and the result is the same. > 24.5 never called sys_rename() and 25.0.91 called sys_rename() with > two same names. What about Frename_file? does 24.5 call it in this scenario? If it doesn't, then please look at the beginning of backup-buffer (in files.el), make sure it is called in 24.5 in this scenario, and then please tell what are the values of real-file-name and backup-info in this part at the beginning of backup-buffer: (let* ((real-file-name (file-chase-links buffer-file-name)) (backup-info (find-backup-file-name real-file-name))) Also, what are the values of make-backup-files, backup-inhibited, and buffer-backed-up in the buffer that visits the read-only file? Btw, is that file under some kind of version control, per chance? And please make sure, from now on, to test everything in "emacs -Q", to prevent any customizations from getting in the way of this investigation. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat May 14 05:17:02 2016 Received: (at 22795) by debbugs.gnu.org; 14 May 2016 09:17:03 +0000 Received: from localhost ([127.0.0.1]:50436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1Vh0-0004sF-NC for submit@debbugs.gnu.org; Sat, 14 May 2016 05:17:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1Vgz-0004rh-HW for 22795@debbugs.gnu.org; Sat, 14 May 2016 05:17:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1Vgp-0001EN-IG for 22795@debbugs.gnu.org; Sat, 14 May 2016 05:16:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1Vgp-0001EE-Ex; Sat, 14 May 2016 05:16:51 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1541 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b1Vgm-0000OV-Tr; Sat, 14 May 2016 05:16:49 -0400 Date: Sat, 14 May 2016 12:17:03 +0300 Message-Id: <83wpmx6ltc.fsf@gnu.org> From: Eli Zaretskii To: Takaaki.Ota@am.sony.com In-reply-to: <83oaay6u4o.fsf@gnu.org> (message from Eli Zaretskii on Tue, 01 Mar 2016 18:27:35 +0200) Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83bn6z8i9t.fsf@gnu.org> <20160229.112815.255467998.Takaaki.Ota@am.sony.com> <83a8mj8enk.fsf@gnu.org> <20160229.133436.92017905.Takaaki.Ota@am.sony.com> <83oaay6u4o.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Tue, 01 Mar 2016 18:27:35 +0200 > From: Eli Zaretskii > Cc: 22795@debbugs.gnu.org > > > Date: Mon, 29 Feb 2016 13:34:36 -0800 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > I just tried again with "run -Q" from gdb and the result is the same. > > 24.5 never called sys_rename() and 25.0.91 called sys_rename() with > > two same names. > > What about Frename_file? does 24.5 call it in this scenario? > > If it doesn't, then please look at the beginning of backup-buffer (in > files.el), make sure it is called in 24.5 in this scenario, and then > please tell what are the values of real-file-name and backup-info in > this part at the beginning of backup-buffer: > > (let* ((real-file-name (file-chase-links buffer-file-name)) > (backup-info (find-backup-file-name real-file-name))) > > Also, what are the values of make-backup-files, backup-inhibited, and > buffer-backed-up in the buffer that visits the read-only file? > > Btw, is that file under some kind of version control, per chance? > > And please make sure, from now on, to test everything in "emacs -Q", > to prevent any customizations from getting in the way of this > investigation. Ping! Can we please continue this investigation? If the problem is no longer reproducible with the latest pretest 25.0.9x, or if you can no longer afford looking into this, I will most probably close the bug. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 13:41:05 2016 Received: (at control) by debbugs.gnu.org; 16 May 2016 17:41:05 +0000 Received: from localhost ([127.0.0.1]:54163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2MVs-0007YS-Vo for submit@debbugs.gnu.org; Mon, 16 May 2016 13:41:05 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:48799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2MVr-0007Xr-Am for control@debbugs.gnu.org; Mon, 16 May 2016 13:41:03 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8589B1612E9 for ; Mon, 16 May 2016 10:40:57 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id J-mnKcgXNPtU for ; Mon, 16 May 2016 10:40:56 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E6AE01612EA for ; Mon, 16 May 2016 10:40:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id eg3bybmCXLvA for ; Mon, 16 May 2016 10:40:56 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id CF7D81612E9 for ; Mon, 16 May 2016 10:40:56 -0700 (PDT) To: control@debbugs.gnu.org From: Paul Eggert Subject: 22795 needs more info Organization: UCLA Computer Science Department Message-ID: <27f62458-dd35-214d-a6b6-605b3c63486f@cs.ucla.edu> Date: Mon, 16 May 2016 10:40:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) tags 22795 moreinfo From debbugs-submit-bounces@debbugs.gnu.org Thu May 19 14:48:20 2016 Received: (at 22795) by debbugs.gnu.org; 19 May 2016 18:48:20 +0000 Received: from localhost ([127.0.0.1]:58326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3Szc-00015U-ES for submit@debbugs.gnu.org; Thu, 19 May 2016 14:48:20 -0400 Received: from mail-by2on0092.outbound.protection.outlook.com ([207.46.100.92]:54304 helo=na01-by2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3SzZ-00015F-RK for 22795@debbugs.gnu.org; Thu, 19 May 2016 14:48:18 -0400 Received: from BN1PR08CA0026.namprd08.prod.outlook.com (10.242.217.154) by CY1PR08MB1384.namprd08.prod.outlook.com (10.161.172.11) with Microsoft SMTP Server (TLS) id 15.1.506.2; Thu, 19 May 2016 18:48:11 +0000 Received: from BY2FFO11OLC016.protection.gbl (2a01:111:f400:7c0c::196) by BN1PR08CA0026.outlook.office365.com (2a01:111:e400:16::26) with Microsoft SMTP Server (TLS) id 15.1.492.4 via Frontend Transport; Thu, 19 May 2016 18:48:10 +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; Received: from usculsndmail02v.am.sony.com (160.33.194.229) by BY2FFO11OLC016.mail.protection.outlook.com (10.1.15.61) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Thu, 19 May 2016 18:48:09 +0000 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 u4JIm7VC032437; Thu, 19 May 2016 18:48:07 GMT Date: Thu, 19 May 2016 11:47:51 -0700 Message-ID: <20160519.114751.70124842.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83wpmx6ltc.fsf@gnu.org> References: <20160229.133436.92017905.Takaaki.Ota@am.sony.com> <83oaay6u4o.fsf@gnu.org> <83wpmx6ltc.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-24.5.1 (i686-pc-mingw32 built on 2015-04-10) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:160.33.194.229; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(5423002)(199003)(189002)(8676002)(586003)(46406003)(50466002)(8936002)(6806005)(104016004)(106466001)(2950100001)(19580405001)(5003600100002)(19580395003)(103116003)(230700001)(97756001)(47776003)(50986999)(76176999)(92566002)(87936001)(4326007)(86362001)(50226002)(2906002)(5008740100001)(23726003)(1220700001)(2351001)(110136002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR08MB1384; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC016; 1:zTQLwGtf4yMNjDkAuRy9QEebflcV+GNztm7DN+sWR/Ef1aWwQTEamXfSDiZ2COUn3YmhlibUBPdrPXbbD7RDBc4SkSjOMw0zAPiZX0gZZS4o9nUFRcxvr9FBF5hZrORvln/t3DreIGU87NEmaMzRSWfntiX+zy+0/6PlumSmiiGYZxsQ1oBufzfy0cEgkr+KmCdlMcZ3eKvn0c8/QEI3HlLUY4tliLdyFMTP0NhYUe2vZMdpkngm710PPqpOrA/QDjt9K5Ucnk5Y1OtpQhbLfORfa+QnXfrO6p0ARCaCVO/F1vKPdMRmdoNPwaFHPuzPaXzIRvuCeJlnk1B8ST4yUoztQMKiyRLE+borZaI28mnRo5LjU7Kivcv+pTpIjqYL9Dd21E3tUYm2t464R4CZEmbtoCWwzLzNry70EjVlJKUQ3he9jgY17tYEnuwM3xI7/4v3xCvp5wgctakzHomePA== X-MS-Office365-Filtering-Correlation-Id: 6483f1c6-dafd-4b22-a5c4-08d380161fd5 X-Microsoft-Exchange-Diagnostics: 1; CY1PR08MB1384; 2:8JJm+xI0XovAeiuuV8EohmIDd3Epw5u2aQmAo9PN6iZEt1C4d4pgurISV5UtGJ/Ll+UG31IcjzY3g1EVB+T1fKp6svYwKlyEeYaLe68CeNb0TT9F6Xzt06dvuR1zUMb1BRVsAIzgwzE8f/rtJIl+ji90XpsB7LD7FNb/mwunJpAHnpjmVk2uo+ZV9+Awh376; 3:ak5lA3J6XB85t+Rd1V3g/CKnYbig1ZPL/P4LjZa9TSamf3uu5RkV5wBfD0MWxu6kZptot23HEW7IyY74c4x6SUubVSyriIWk61CtCLRBInRnS6TFarUzxxpA+vTUm3mXykHC3EX+45PRLL7HbFlCxrTzlSJLFi1lE5caEgB5rugCjtny7TLypvcVby0/pPhsqzx9BhDq+d781zEvGaRtso9WYtunatN1UyuuPofIwEYpSuVHJXxgL2jbYmuvcGovRlMxl0Ms5rAS7IvVUY8/jQ== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:CY1PR08MB1384; X-Microsoft-Exchange-Diagnostics: 1; CY1PR08MB1384; 25:nUq7xwplwBvFu98B4uaomYsyC+kDHTVRgtOP9Gi32jCtAbCWfb4W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Qbi6z7CyjsHc/dLx1FORXDGSMyLgV1CB2fgtR1KVA6zmyNwaGKGtB/buKW7umoCdse5fHrKQCCjhls9fXtvrSd9nxMaB01c1OuZIPfGa6BRZs2H7qASZMOVsaieeJ738tuRkGpw49EEKYit+qNbDjBElbgxIR7V7JO0p98D0fGUKNeZPEJr1UYodkuECFWpKZWPpJISE/rQeTQWS+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:CY1PR08MB1384; BCL:0; PCL:0; RULEID:; SRVR:CY1PR08MB1384; X-Microsoft-Exchange-Diagnostics: 1; CY1PR08MB1384; 4:bt7748TNtr+e0uaazoh0gF3SZaPBpdzw+F6lav7kCGxBAgORMrYPPRXh5HD0ywEbfr7yd1isKsl7rrVrm5EfKy0T548gMw2Q9upBZjAT3QMRTUKLZz5+hMOSSYZlmuY09citkZNK2if5zD75ecVI6wwGo9Z4GQTnLq2r5ocGcbiTws9ocj/lI4q6IsLSa0l4xZ0STZ4RoYOGeoXlbyputE7WTIHVdGBnLwg90DdmPzMp9GznkH5SNFObjFiPmFgaaBO0afyo9i8GtJwQgmkUN8PYIDRtRclGKS4x3frrAeEgbgIK4YTNgGaNHk4HVqc40xFadcCeE6uYBZd2YHyL9+Swlh441y5vJH1S1oLTjXnxnABD+lI7kENYKXUMl1xTK5ELkrtgpFrXFjX1o/9PqjeWRQ4hzPaEs4LLKE3LH9xV74VUgAJeanqI1aeNSp6+/IDLUnxVqxdVfo0O4ENReQ== X-Forefront-PRVS: 094700CA91 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR08MB1384; 23:PiZ03v7lGvVGb2dWX5KGXRzhxtK/IRlVADG5ViZxi?= =?us-ascii?Q?grEY/4SqPzjp6aNflbm8Ji0lRyKtyi9yaW3XUwlx3Nr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3P6LtCwQ09Msupae9HQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR08MB1384; 5:+ZD5KAKKbXz9KdtCr9JuxA8X9loVvsP3WWNWNOxogmWdJuXiPRymvKkKsAVDI2Qzhn/N4pHJIOYF1nFqumQoe0q0lmOOuaIAwElDZd3wbN4aPWhdGB62xRfl/EQkYjoWJkmWNiAXx/R8LfUaxlkgrg==; 24:7mNzvX1Rg4N78XKnHpJkknYkyelg8qMf2Wc3uPoLCc++wBPp+OuqEvh5RZUol+Ry1KcgEPG1dEoFF7iw0UBI1A2DXKEYgIqMzcmA60JuNhA=; 7:WUgim4V7lSodAeEUOFHdc8cHT4hVyHVFlNhi676TmiBP3SMgUkOK8rNK8WJw4SPNzZFPfowmBmaivi/PpPAY5fsEUpCFLjhG6XSvQWLiqVLrYNIDLsO2JwxfrI4nKdamqROH78GS/0JxnjkcjhuqPWrXu1fHe6oG98veqF9TICPWN3shywDV/7EvSAS3PAvL SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2016 18:48:09.8295 (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: CY1PR08MB1384 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Sorry, I haven't made much progress. I confirmed that it was reproducible with the latest 25.0.94. Let me resume looking into it and I will send you further facts and questions. -Tak Sat, 14 May 2016 12:17:03 +0300: Eli Zaretskii wrote: > > Date: Tue, 01 Mar 2016 18:27:35 +0200 > > From: Eli Zaretskii > > Cc: 22795@debbugs.gnu.org > > > > > Date: Mon, 29 Feb 2016 13:34:36 -0800 > > > CC: <22795@debbugs.gnu.org> > > > From: "Ota, Takaaki" > > > > > > I just tried again with "run -Q" from gdb and the result is the same. > > > 24.5 never called sys_rename() and 25.0.91 called sys_rename() with > > > two same names. > > > > What about Frename_file? does 24.5 call it in this scenario? > > > > If it doesn't, then please look at the beginning of backup-buffer (in > > files.el), make sure it is called in 24.5 in this scenario, and then > > please tell what are the values of real-file-name and backup-info in > > this part at the beginning of backup-buffer: > > > > (let* ((real-file-name (file-chase-links buffer-file-name)) > > (backup-info (find-backup-file-name real-file-name))) > > > > Also, what are the values of make-backup-files, backup-inhibited, and > > buffer-backed-up in the buffer that visits the read-only file? > > > > Btw, is that file under some kind of version control, per chance? > > > > And please make sure, from now on, to test everything in "emacs -Q", > > to prevent any customizations from getting in the way of this > > investigation. > > Ping! Can we please continue this investigation? > > If the problem is no longer reproducible with the latest pretest > 25.0.9x, or if you can no longer afford looking into this, I will most > probably close the bug. > > Thanks. > From debbugs-submit-bounces@debbugs.gnu.org Thu May 19 15:47:51 2016 Received: (at 22795) by debbugs.gnu.org; 19 May 2016 19:47:52 +0000 Received: from localhost ([127.0.0.1]:58353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3TvD-0002bp-LR for submit@debbugs.gnu.org; Thu, 19 May 2016 15:47:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3TvC-0002bc-9p for 22795@debbugs.gnu.org; Thu, 19 May 2016 15:47:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3Tv2-0003zQ-6j for 22795@debbugs.gnu.org; Thu, 19 May 2016 15:47:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3Tv2-0003z3-3o; Thu, 19 May 2016 15:47:40 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2053 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b3Tuz-0002vH-S4; Thu, 19 May 2016 15:47:38 -0400 Date: Thu, 19 May 2016 22:47:40 +0300 Message-Id: <831t4xakyr.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160519.114751.70124842.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <20160229.133436.92017905.Takaaki.Ota@am.sony.com> <83oaay6u4o.fsf@gnu.org> <83wpmx6ltc.fsf@gnu.org> <20160519.114751.70124842.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Thu, 19 May 2016 11:47:51 -0700 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > Sorry, I haven't made much progress. I confirmed that it was > reproducible with the latest 25.0.94. Let me resume looking into it > and I will send you further facts and questions. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed May 25 12:55:52 2016 Received: (at 22795) by debbugs.gnu.org; 25 May 2016 16:55:52 +0000 Received: from localhost ([127.0.0.1]:38503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5c64-0003Cc-0A for submit@debbugs.gnu.org; Wed, 25 May 2016 12:55:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5c62-0003CP-PZ for 22795@debbugs.gnu.org; Wed, 25 May 2016 12:55:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5c5u-0008TP-Ij for 22795@debbugs.gnu.org; Wed, 25 May 2016 12:55:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5c5u-0008T1-FA; Wed, 25 May 2016 12:55:42 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1538 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b5c5s-00020v-QC; Wed, 25 May 2016 12:55:41 -0400 Date: Wed, 25 May 2016 19:55:45 +0300 Message-Id: <83vb222i26.fsf@gnu.org> From: Eli Zaretskii To: Takaaki.Ota@am.sony.com In-reply-to: <83wpmx6ltc.fsf@gnu.org> (message from Eli Zaretskii on Sat, 14 May 2016 12:17:03 +0300) Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83bn6z8i9t.fsf@gnu.org> <20160229.112815.255467998.Takaaki.Ota@am.sony.com> <83a8mj8enk.fsf@gnu.org> <20160229.133436.92017905.Takaaki.Ota@am.sony.com> <83oaay6u4o.fsf@gnu.org> <83wpmx6ltc.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Sat, 14 May 2016 12:17:03 +0300 > From: Eli Zaretskii > Cc: 22795@debbugs.gnu.org > > > Date: Tue, 01 Mar 2016 18:27:35 +0200 > > From: Eli Zaretskii > > Cc: 22795@debbugs.gnu.org > > > > > Date: Mon, 29 Feb 2016 13:34:36 -0800 > > > CC: <22795@debbugs.gnu.org> > > > From: "Ota, Takaaki" > > > > > > I just tried again with "run -Q" from gdb and the result is the same. > > > 24.5 never called sys_rename() and 25.0.91 called sys_rename() with > > > two same names. > > > > What about Frename_file? does 24.5 call it in this scenario? > > > > If it doesn't, then please look at the beginning of backup-buffer (in > > files.el), make sure it is called in 24.5 in this scenario, and then > > please tell what are the values of real-file-name and backup-info in > > this part at the beginning of backup-buffer: > > > > (let* ((real-file-name (file-chase-links buffer-file-name)) > > (backup-info (find-backup-file-name real-file-name))) > > > > Also, what are the values of make-backup-files, backup-inhibited, and > > buffer-backed-up in the buffer that visits the read-only file? > > > > Btw, is that file under some kind of version control, per chance? > > > > And please make sure, from now on, to test everything in "emacs -Q", > > to prevent any customizations from getting in the way of this > > investigation. > > Ping! Can we please continue this investigation? > > If the problem is no longer reproducible with the latest pretest > 25.0.9x, or if you can no longer afford looking into this, I will most > probably close the bug. > > Thanks. Ping! Release of Emacs 25.1 is imminent, and I'd very much like to try to fix this problem, whatever it is, for that release. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 01 13:23:08 2016 Received: (at 22795) by debbugs.gnu.org; 1 Jun 2016 17:23:08 +0000 Received: from localhost ([127.0.0.1]:50096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b89rI-0000vT-FT for submit@debbugs.gnu.org; Wed, 01 Jun 2016 13:23:08 -0400 Received: from mail-bn1bon0071.outbound.protection.outlook.com ([157.56.111.71]:61248 helo=na01-bn1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b89rH-0000ut-AF for 22795@debbugs.gnu.org; Wed, 01 Jun 2016 13:23:07 -0400 Received: from BL2PR08CA0021.namprd08.prod.outlook.com (10.255.170.139) by BN3PR08MB1319.namprd08.prod.outlook.com (10.163.41.26) with Microsoft SMTP Server (TLS) id 15.1.511.6; Wed, 1 Jun 2016 17:23:01 +0000 Received: from BL2FFO11FD047.protection.gbl (2a01:111:f400:7c09::123) by BL2PR08CA0021.outlook.office365.com (2a01:111:e400:c4b::11) with Microsoft SMTP Server (TLS) id 15.1.511.6 via Frontend Transport; Wed, 1 Jun 2016 17:23:01 +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; Received: from usculsndmail02v.am.sony.com (160.33.194.229) by BL2FFO11FD047.mail.protection.outlook.com (10.173.161.209) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Wed, 1 Jun 2016 17:23:00 +0000 Received: from usculsndmail14v.am.sony.com (usculsndmail14v.am.sony.com [146.215.230.105]) by usculsndmail02v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u51HMx1d023739; Wed, 1 Jun 2016 17:22:59 GMT Date: Wed, 1 Jun 2016 10:22:53 -0700 Message-ID: <20160601.102253.02067758.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83vb222i26.fsf@gnu.org> References: <83oaay6u4o.fsf@gnu.org> <83wpmx6ltc.fsf@gnu.org> <83vb222i26.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.94.1 (i686-pc-mingw32 built on 2016-05-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:160.33.194.229; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(5423002)(199003)(24454002)(189002)(586003)(5003600100002)(6806005)(104016004)(76176999)(50986999)(2950100001)(92566002)(5008740100001)(19580395003)(19580405001)(23726003)(2351001)(106466001)(11100500001)(86362001)(50226002)(189998001)(8936002)(2906002)(46406003)(47776003)(230700001)(8676002)(110136002)(4326007)(103116003)(50466002)(97756001)(87936001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR08MB1319; H:usculsndmail02v.am.sony.com; FPR:; SPF:Pass; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD047; 1:0QQSOkNWuZcZDQu78VZAdZREGkoCRrjM+9mFVSi08yVCp6PtpRGOpGM4B13P67syy+wsxEDT9NLecvzaS4wWUvfFP//cA/ciNGAK1IJcSbXmqrVP5ttDIKEUmSJ4/I5zcS5nQaWdnlrkj7DIXeGe+aw6Z9O4hodXYVr0u3Gb0vRyfh1G6cQMGFbkHM28yFYM2dxcxfqFqWNnqIMum0o/3Kx1lCVHNa/CNDFqvHGfavu8yke0gJkz7d2VCsxyMlK+tsQww0uDIje9PYVpOLsetgoIkVBsytMh4/aHycVwC9ZK1YG51hvH35/yC1NQd/SM6Q59vKmMMFxS6aQq5ZnruZadr+TXKhcxtmR4FktL2VvhHl8ZvOEc45lHHaXvr+5Hwjfoul1+xMskOeJeW3lU1CkwJ7E2+K/FADBTiLlhGPWLeOFpquShD+JyElODHBlGy5cd8V4dBiFPBiD2ivDljhQznXbs04lQhXU0wEAXK3w= X-MS-Office365-Filtering-Correlation-Id: 28624fbb-36cd-4300-f6e1-08d38a4161c8 X-Microsoft-Exchange-Diagnostics: 1; BN3PR08MB1319; 2:skelipl7KRc0YcSbqNWFchkzuq26iLelu51gsByBhAF7hv4jtLJPKPburNZoRs/pSWbx7ccLAx/A7ACy7m11v1Y5vXsoHe4SnV4yFWLGUKzeEgyL88H43CTfuaPdEhGFNu7SzHm7/vGKTs6Qum0TP5P6iowF+OZcjdxwAcTsgKO5u9zsrNSdaWMppr83eEQL; 3:aFKnzZioVWPxt5rfbbitmYgTO3VzyRd9vmOT1dROX8kmHkp2nO5oVYSLDbBhoyawbClmgHfyjPWA57A61AVtnuZRyNx73kB/rZxJXKvIAcyuDzFPUzLfU/3xHNApzqqnwPE+o+7/jiFcOXiZYz8AiZWBwI3lDBZWdDPq5+sEWedFJIpNEWAE1ZZrEhPYCHGThiZe4vMcPUp2fm5xLHthudyRCAz0/ifzjz3s5uppiC558nU1trtPOAOFIH+n+IjWv9ox1aRbzVvX/OH4zOZCtw== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BN3PR08MB1319; X-Microsoft-Exchange-Diagnostics: 1; BN3PR08MB1319; 25:DNlnNxeC3E1dvxJg2blpaJosqmklKugp1Hhgsk8lMiNQ0rCYr7sYMWvi2hguFD2hnoz/YVnHzRcZapQMicdHfQqj6DjHDWWBOsykezc1Dpndqb2A/dkpTycdyW9e1iL/52oTSxJLSNi6ECpkm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BoMckNMbueikf7HnLoW7GjMYBdNkpPuQIOzTshSnrivwEHC+rAMWV8hzQ9rOwQ18uyCGerOSMpEuzgUiX5GFbzU8IC 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)(8121501046)(5005006)(13024025)(13018025)(13023025)(13016025)(3002001)(10201501046)(6055026); SRVR:BN3PR08MB1319; BCL:0; PCL:0; RULEID:; SRVR:BN3PR08MB1319; X-Microsoft-Exchange-Diagnostics: 1; BN3PR08MB1319; 4:8cKXhIYNybqN/Dud2D/dhI+1wIE/q7+4J9lSzzFXuMYkMh4yrwyUyqDVw0vyeoGAWnDlPcbOq2pje1tJaapjy1vC/LiVgC0Nwzs7oZFuz4G1ddNVfK1JCFaGv6merZdjv0Lf6Gc6aFu9yL2NzX26XdNwqr7+vEMMrI1/hsaeYpkHfas07+v5ZNkRfpaSstlmz6LXPNbzkRurNiND7DLH/Y8nce+ByHkVdnsfBxPnl5xxcvxMpYRa9cg0JdH4wRwPDLgtWudvqisy0PxgE7NCPcoiSDwbVn8YHn34Jw1dw7+uckxMpD+oaBmWrFKgYWqXX4dvKPMERCJpNzx+B86+HlyKMeq/ABnjQAsi9wr2el04NT25xFCFOEfU8YKz+9yXlwVx69e1+om/P7plYz0qWIpMAqiEONEFmzwWUCL4i7IxLhY3rj9rPFhlzRNBO+zEif1pynCl7G/ou8qipxlcyUPcuglT9omlC3TG4V8sZfYhAflXqdf83VXSAeqrg76JHJ4untIbaNO3SHOYQxJgyL6T9qojn9+8AhkwbDYjNytFpfCWXSQpfOEp5kOy7cKM X-Forefront-PRVS: 096029FF66 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR08MB1319; 23:zN5gS0qHMghHhGJEuLvH+f9SmqXJCxfunKzyGEX2E?= =?us-ascii?Q?q+pOOpaKYVA75mPqiQZgvQuYaafnBUcwS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ascii?Q?TjygbT0ZR8gw6X4Gd1y6N3OBkgPvSQYQ6wlQXM0gg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR08MB1319; 5:MozSGBo0L88j1VE+ySUXKhPEAa3AwQkYpj8XjQMLg/GD8EpLL/0jrdT5R4jWsVHIN3zKpMJSfoR1Gk9g+WLIroXFNdIaqaiRKj+G5agoodwTSKIvPrHbJeln5XepNNMniQRxY7NOJzuYRmyFSAX6bw==; 24:r9Q7evc4OjSUf5K6zf7QXlNpPDjgV4CA8vl+hgafLo1JdSALO4HHpirE9KV8drhCgbVNmuEIWVz16wUwTriAdNe7Xht/kuNdYQyVrIA/FGc=; 7:6b7U02TmUwBI8xuyOmeq78DGn2foAUI2cj5v1YpgxC1Xr7P5AJ8tAWxMzs0EPY/2MHzszWHx2mGjM5U3GTNnQ6tW5Ln0lerDVXOQP9Y8/L02yKVNtJmZzHmItrdOdEueMCqlm1jq4mHOolWqd0HesiCVeSsmGMXNxGy9+hlWNEMWnYRTgw3NowceX+w07388 SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2016 17:23:00.5880 (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: BN3PR08MB1319 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. -Tak Wed, 25 May 2016 19:55:45 +0300: Eli Zaretskii wrote: > > Date: Sat, 14 May 2016 12:17:03 +0300 > > From: Eli Zaretskii > > Cc: 22795@debbugs.gnu.org > > > > > Date: Tue, 01 Mar 2016 18:27:35 +0200 > > > From: Eli Zaretskii > > > Cc: 22795@debbugs.gnu.org > > > > > > > Date: Mon, 29 Feb 2016 13:34:36 -0800 > > > > CC: <22795@debbugs.gnu.org> > > > > From: "Ota, Takaaki" > > > > > > > > I just tried again with "run -Q" from gdb and the result is the same. > > > > 24.5 never called sys_rename() and 25.0.91 called sys_rename() with > > > > two same names. > > > > > > What about Frename_file? does 24.5 call it in this scenario? > > > > > > If it doesn't, then please look at the beginning of backup-buffer (in > > > files.el), make sure it is called in 24.5 in this scenario, and then > > > please tell what are the values of real-file-name and backup-info in > > > this part at the beginning of backup-buffer: > > > > > > (let* ((real-file-name (file-chase-links buffer-file-name)) > > > (backup-info (find-backup-file-name real-file-name))) > > > > > > Also, what are the values of make-backup-files, backup-inhibited, and > > > buffer-backed-up in the buffer that visits the read-only file? > > > > > > Btw, is that file under some kind of version control, per chance? > > > > > > And please make sure, from now on, to test everything in "emacs -Q", > > > to prevent any customizations from getting in the way of this > > > investigation. > > > > Ping! Can we please continue this investigation? > > > > If the problem is no longer reproducible with the latest pretest > > 25.0.9x, or if you can no longer afford looking into this, I will most > > probably close the bug. > > > > Thanks. > > Ping! > > Release of Emacs 25.1 is imminent, and I'd very much like to try to > fix this problem, whatever it is, for that release. > > Thanks. > From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 04 05:01:14 2016 Received: (at 22795) by debbugs.gnu.org; 4 Jun 2016 09:01:14 +0000 Received: from localhost ([127.0.0.1]:53722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b97SE-0004kZ-C9 for submit@debbugs.gnu.org; Sat, 04 Jun 2016 05:01:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b97SD-0004kN-0G for 22795@debbugs.gnu.org; Sat, 04 Jun 2016 05:01:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b97S3-0005eo-B5 for 22795@debbugs.gnu.org; Sat, 04 Jun 2016 05:01:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b97S3-0005ej-7g; Sat, 04 Jun 2016 05:01:03 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2347 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b97S0-0007KT-Hp; Sat, 04 Jun 2016 05:01:01 -0400 Date: Sat, 04 Jun 2016 12:01:29 +0300 Message-Id: <83bn3hwcnq.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160601.102253.02067758.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83oaay6u4o.fsf@gnu.org> <83wpmx6ltc.fsf@gnu.org> <83vb222i26.fsf@gnu.org> <20160601.102253.02067758.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > 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? From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 12:24:34 2016 Received: (at 22795) by debbugs.gnu.org; 6 Jun 2016 16:24:34 +0000 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 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 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 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; 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 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 Date: Mon, 6 Jun 2016 09:24:23 -0700 Message-ID: <20160606.092423.09676870.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83bn3hwcnq.fsf@gnu.org> References: <83vb222i26.fsf@gnu.org> <20160601.102253.02067758.Takaaki.Ota@am.sony.com> <83bn3hwcnq.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.94.1 (i686-pc-mingw32 built on 2016-05-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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/+3EdfsdohhEecMPrZCTHVI0ViUna5x3EjwhXssGWUn0cQM44osTNq1EPMCvK2S7UL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3OFy5SpymHHOP6sLOFrjOIIKOZ2D1Jy/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: =?us-ascii?Q?1; BN1PR08MB009; 23:4V3wIE/fRObJXeDtUWC53HX2BCRALbJwWmKFZaJKXp?= =?us-ascii?Q?CX9LqABrtXW+8eTGblcOYlas0hQ4njcmLpKKB/g2wPuORTqYr5GhISUS3pDi?= =?us-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lL1Tbofj2Oz5HIsdPJ48r9/xJx?= =?us-ascii?Q?fRCvlqTCbvJOc7XQU8cTnA?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR08MB009; 5:bFNqwbPbnNsNqpiUCkoNxfFpz5dXodjH0aDcp8zgJXpSDuF4gBRugxcgF5GJh9QBMy/p+9d1VU+iNNuRWWMPDxuWswkeaBCV5KblGoIIM7K3wfjGG5R4zWqHuYqYoC3FpHVTwpbPMRrVvTuEtLpe3A==; 24:cRVI2Du9luWN2NCGzDQNyyXcPELkRPzkVIS4Jja4BuoUu0AHWBFyTWw8QRVuX9V9yhM3muDE8A1ky1ig1KeEJwNIK4eIpBLggxoSjJIigWo=; 7:FyVoB0/jwu3oeY9jTxKeX6MjrTrTMpMDwvg7TSC0i8oRDTdgq50S9z23FRTl1Li++eOqKmTdhUi9opfAvxtkFblFzkELyErpYvJk5GyDL44CK3PcbmFeKAK4KntbCG/qkQHAJOkp0ghiONzNwlrTk/1cxOuvGIYibof9MoSLIFKU591m2Lwrfhk6uQpA09vZ69QAV7iHy7lYCFKd3e5JtnjmWGSlVVV8KdcU8urRlns= SpamDiagnosticOutput: 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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? > From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 15:10:15 2016 Received: (at 22795) by debbugs.gnu.org; 6 Jun 2016 19:10:15 +0000 Received: from localhost ([127.0.0.1]:57054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9zuh-0007X9-JL for submit@debbugs.gnu.org; Mon, 06 Jun 2016 15:10:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9zuf-0007Ww-EP for 22795@debbugs.gnu.org; Mon, 06 Jun 2016 15:10:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9zuW-0007qJ-Qc for 22795@debbugs.gnu.org; Mon, 06 Jun 2016 15:10:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9zuW-0007pp-Lp; Mon, 06 Jun 2016 15:10:04 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4151 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b9zuV-00023F-9H; Mon, 06 Jun 2016 15:10:04 -0400 Date: Mon, 06 Jun 2016 22:10:29 +0300 Message-Id: <83wpm2rv4q.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160606.092423.09676870.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83vb222i26.fsf@gnu.org> <20160601.102253.02067758.Takaaki.Ota@am.sony.com> <83bn3hwcnq.fsf@gnu.org> <20160606.092423.09676870.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Mon, 6 Jun 2016 09:24:23 -0700 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > 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. What does (file-attributes FILENAME 'integer) return for that file? And what does (user-uid) return? > 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. OK, thanks for the update. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 16:46:47 2016 Received: (at 22795) by debbugs.gnu.org; 6 Jun 2016 20:46:47 +0000 Received: from localhost ([127.0.0.1]:57094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA1Q7-0001M5-Fs for submit@debbugs.gnu.org; Mon, 06 Jun 2016 16:46:47 -0400 Received: from mail-bn1on0056.outbound.protection.outlook.com ([157.56.110.56]:18056 helo=na01-bn1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA1Q5-0001Lt-Rb for 22795@debbugs.gnu.org; Mon, 06 Jun 2016 16:46:46 -0400 Received: from BY2PR08CA0082.namprd08.prod.outlook.com (10.163.62.178) by BY2PR08MB315.namprd08.prod.outlook.com (10.242.237.147) with Microsoft SMTP Server (TLS) id 15.1.506.2; Mon, 6 Jun 2016 20:46:39 +0000 Received: from BY2FFO11FD049.protection.gbl (2a01:111:f400:7c0c::193) by BY2PR08CA0082.outlook.office365.com (2a01:111:e400:58a4::50) with Microsoft SMTP Server (TLS) id 15.1.517.2 via Frontend Transport; Mon, 6 Jun 2016 20:46:39 +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; Received: from usculsndmail03v.am.sony.com (160.33.194.230) by BY2FFO11FD049.mail.protection.outlook.com (10.1.15.186) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Mon, 6 Jun 2016 20:46:38 +0000 Received: from usculsndmail14v.am.sony.com (usculsndmail14v.am.sony.com [146.215.230.105]) by usculsndmail03v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u56Kkaut003447; Mon, 6 Jun 2016 20:46:36 GMT Date: Mon, 6 Jun 2016 13:46:32 -0700 Message-ID: <20160606.134632.327444666.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83wpm2rv4q.fsf@gnu.org> References: <83bn3hwcnq.fsf@gnu.org> <20160606.092423.09676870.Takaaki.Ota@am.sony.com> <83wpm2rv4q.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.94.1 (i686-pc-mingw32 built on 2016-05-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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)(5423002)(189002)(24454002)(51914003)(199003)(23726003)(86362001)(106466001)(2950100001)(5003600100002)(5008740100001)(47776003)(8676002)(50226002)(8936002)(246002)(19580395003)(97756001)(92566002)(104016004)(586003)(19580405001)(103116003)(6806005)(2351001)(11100500001)(50466002)(4326007)(50986999)(110136002)(189998001)(46406003)(230700001)(2906002)(76176999)(87936001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR08MB315; H:usculsndmail03v.am.sony.com; FPR:; SPF:Pass; PTR:mail.sonyusa.com,mail03.sonyusa.com; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD049; 1:DSnOmzPYYgiq95OJlKbETIHjZf0+exizl3E2iRfxrwcd9vlFtvt+BHpllfniff/fNix6RRHwFW9ljBcnVUKNuKTI544bIBO5PJHIhMDcPO5bkt9dSpIxNY/MNciT6FKWw9ZGqDJ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mc6IKjCvr2Nap6IBrtJu5DqoByvPDcaIXgGrpmmielji8KC33tPqy140bYq1/cTzk4uzzm6/4WecPABMqbiZahTISMUcSXs1nkcqd4kKl+LCZVx1ZYhVjPDIKMbFzKzzy+GSv9GZKPDpS1IybhrHf2qRzuPyV1Lmn3MMT+QmjoPtRqx4eHV9PqlCNU4C9MFHh00ym/lMUOqrxUnac79bUr58YicL/2ibrGps8EgB2SyYuI3z6YC9zvX5qFlVAYovx96wVNWaddeAedmNwPhm0LIsrvU1rtateg0x0= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BY2PR08MB315; X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB315; 20:U6KbspvWeevDq7O5/NN4C90mZ0oISZlx//g1fylOfmKYsNvhk6BNkRkG0vOWfO4bHGw6JiVkMqlKpnU5bx8PA6foOU9gahT8T5ZGqOhLmEE7xozL1HA5/r4WuhFokU0NmsWML/dKgQh90Y4JXBrRQBQLMdkXbDYalvTJx01U+NLsjCHT8WBsvrcmpAavExQ6UIzHpesVZccwNwwpEssLwmLkHszae4yjB4Xoi/bWjYeGDcVDyRgluBhkAROkGv7ywJA3R1J/uwCLV9aTXRbPeq89kNgcptJjI7BVCDoiE3/dyRN0WQ36G1wcuRHSXKkcggdL5MDFc4Epr2x7lZlrcwEqqySVHpejHtNL1nMaHfn3PLvm4O6zxUhpnUXs+HBlMdW9clNbyvszfEY0SzepjuVk+mrmCyv//iPTOwJNCgzHLYNUiiVUwtJpSWWQZvfLsXskpwvZO3uxpejOjM+iU1f+fcahL/XooRAPqTROtvkvYOOmXVO8/GJtMGtwseO5 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)(13023025)(13017025)(8121501046)(13018025)(13015025)(13024025)(5005006)(3002001)(10201501046)(6055026); SRVR:BY2PR08MB315; BCL:0; PCL:0; RULEID:; SRVR:BY2PR08MB315; X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB315; 4:Lf4IL0aZoCOLg0hmRQpWAjwi6myrqOD1OaYiKV4aLSKCJU4y+YLQmC+asK0XSScZxG/DabSX5m1vgTRUeKubmDmcXHxbl/ZYVL7by7VFsIvrSttGBS+MroZ+xIzrn3TOgApXagIiXFrH7Z0wCx3J1qaojswUTCLQsor3SSft1kh2Ifbjcm1cjYX0RTEUg/iYubh3x+4ogaEB6Upwculf7De9GjgRQq//WrwuOWiHzqmqpeSBvxBgWX+aGrL3xu8z8GA4QM9xitKDTu/acM+g/IUZHJGiimUvqg7/5C9vKcrINnRaQnQTDAUcvaNR872+TNVIGiLHDoa6fByK2zidQvWnlYU5O3AO4lXwoNE1QGuowRxMVIAukPd6dnRuknMEnLPuyiKr3iO/Z1OTKgwfSKktGlFSnbSMY6JFFPIN2d0ToibCsUPDzqcqIzKHrBKL098lXioAirsEcL0gTPzn4F8ZeWSaSeNxkk/jgAf3ErrRfJUhIy9PS6mU+bxHkh1agFkaBR5sFgCmSRIEvLFsmDy48tIbzL01mbZ13IE9lbzPqd8trTpDzYF/SLfl9jwlUPi63Ns6ArKDjjISWmkxZQ== X-Forefront-PRVS: 096507C068 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR08MB315; 23:SyuvQbjDVYJuLIPivGFWu8eKwed4eG/V2J4OYlLtGu?= =?us-ascii?Q?pQUc6UB/sYrRr0RKccmF3IzCYewCf8o/IuECLAE4DN1BtpF4JZdevzgTYCiA?= =?us-ascii?Q?HTwRMIOlkDoCMv3gtv0Y4pJD1ams2/zrSAz6UOmVkr7PMb7DJAzA/x7wOIYm?= =?us-ascii?Q?ahMF75Spbmb4vKVbfL+d1rV3RVhati3cSpgwG8ktc467IfUMHD84YdKEwUwN?= =?us-ascii?Q?eE1evDEakPmVP+xoSrOYGGheR+iiKAMfjks+5CwbK5W+d5M9xJ988lQJEgh7?= =?us-ascii?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MdpaB2NAbDWagOfV8BBJJw0t9SJ9In3FMSSKj5q+PDvaZkKZ1A==; 24:T7LrrIvE1hP5YNr9/QhSPE2PlOl2QbsL2o8NjN40TsvONG+nO2fiIZ55Le+jCE1IBCZprR2Cb9FH9mn+VxvU1Z2xLxW/gjTTPli2IAqAa9E=; 7:Fh9m2lbiWkGIa2/iFB2dYAHDBTYODWQMwHqmWBpTW/m6gTQ5XgV3R+IWV+KYt4vt3TkspXOXo5i6rUAyoqgQksa5n6hzPnNVDJb4+MNUpj2MRHZ3Uc4egngUKCYvCjngg0FDghSVgEGivlOow3vsaH1m/wpRfzG7/PJACik2vRzycFiGJ/491UUvfMESAEAsfkDw0JPbK5G30wSc6S1d1ySYCzxsAnHcZ3adFsfESZI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2016 20:46:38.3433 (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: BY2PR08MB315 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Mon, 6 Jun 2016 22:10:29 +0300: Eli Zaretskii wrote: > > Date: Mon, 6 Jun 2016 09:24:23 -0700 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > 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. > > What does (file-attributes FILENAME 'integer) return for that file? > And what does (user-uid) return? On Linux (file-attributes "~/memo" 'integer) (nil 1 1000 1000 (22351 8780 403703 908000) (22351 6556 219830 864000) (22351 6556 223830 864000) 1827 "-r--r--r--" t 131312 2049) (user-uid) 1000 On Windows (both 24.5 and 25.0.94) (file-attributes "~/memo" 'integer) (nil 1 544 513 (21821 905 0 0) (22357 41339 0 0) (20624 9296 0 0) 289738 "-r--r--r--" t (1024 1 . 32777) (50396 . 34426)) (user-uid) 1001 > > > 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. > > OK, thanks for the update. > From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 22:42:30 2016 Received: (at 22795) by debbugs.gnu.org; 7 Jun 2016 02:42:30 +0000 Received: from localhost ([127.0.0.1]:57326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA6yM-00067x-BK for submit@debbugs.gnu.org; Mon, 06 Jun 2016 22:42:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA6yL-00067l-34 for 22795@debbugs.gnu.org; Mon, 06 Jun 2016 22:42:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bA6yA-000226-Oy for 22795@debbugs.gnu.org; Mon, 06 Jun 2016 22:42:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bA6yA-00021u-Li; Mon, 06 Jun 2016 22:42:18 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4350 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bA6y8-0002JI-Kp; Mon, 06 Jun 2016 22:42:17 -0400 Date: Tue, 07 Jun 2016 05:42:52 +0300 Message-Id: <83portsor7.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160606.134632.327444666.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83bn3hwcnq.fsf@gnu.org> <20160606.092423.09676870.Takaaki.Ota@am.sony.com> <83wpm2rv4q.fsf@gnu.org> <20160606.134632.327444666.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Mon, 6 Jun 2016 13:46:32 -0700 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > Mon, 6 Jun 2016 22:10:29 +0300: Eli Zaretskii wrote: > > > > Date: Mon, 6 Jun 2016 09:24:23 -0700 > > > CC: <22795@debbugs.gnu.org> > > > From: "Ota, Takaaki" > > > > > > 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. > > > > What does (file-attributes FILENAME 'integer) return for that file? > > And what does (user-uid) return? > > On Linux > > (file-attributes "~/memo" 'integer) > (nil 1 1000 1000 (22351 8780 403703 908000) (22351 6556 219830 864000) (22351 6556 223830 864000) 1827 "-r--r--r--" t 131312 2049) > (user-uid) > 1000 > > On Windows (both 24.5 and 25.0.94) > > (file-attributes "~/memo" 'integer) > (nil 1 544 513 (21821 905 0 0) (22357 41339 0 0) (20624 9296 0 0) 289738 "-r--r--r--" t (1024 1 . 32777) (50396 . 34426)) > (user-uid) > 1001 This may be part of the problem: your home directory is not owned by your user, it is owned by the Administrators group. That is definitely why file-ownership-preserved-p returns nil in your case, but it can also be part of the larger problem we are investigating. (On my machines, I always take ownership of the home directory and all of its subdirectories, recursively, to avoid any ownership issues.) From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 07 19:02:57 2016 Received: (at 22795) by debbugs.gnu.org; 7 Jun 2016 23:02:57 +0000 Received: from localhost ([127.0.0.1]:59226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAQ1Q-0002D4-Uy for submit@debbugs.gnu.org; Tue, 07 Jun 2016 19:02:57 -0400 Received: from mail-by2on0072.outbound.protection.outlook.com ([207.46.100.72]:11627 helo=na01-by2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAQ1M-0002Cn-45 for 22795@debbugs.gnu.org; Tue, 07 Jun 2016 19:02:55 -0400 Received: from BLUPR08CA0046.namprd08.prod.outlook.com (10.141.200.26) by BY2PR08MB015.namprd08.prod.outlook.com (10.242.35.21) with Microsoft SMTP Server (TLS) id 15.1.497.12; Tue, 7 Jun 2016 23:02:44 +0000 Received: from BN1AFFO11FD036.protection.gbl (2a01:111:f400:7c10::176) by BLUPR08CA0046.outlook.office365.com (2a01:111:e400:88d::26) with Microsoft SMTP Server (TLS) id 15.1.506.2 via Frontend Transport; Tue, 7 Jun 2016 23:02:44 +0000 Authentication-Results: spf=pass (sender IP is 160.33.194.231) 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.231 as permitted sender) receiver=protection.outlook.com; client-ip=160.33.194.231; helo=usculsndmail04v.am.sony.com; Received: from usculsndmail04v.am.sony.com (160.33.194.231) by BN1AFFO11FD036.mail.protection.outlook.com (10.58.52.240) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Tue, 7 Jun 2016 23:02:43 +0000 Received: from usculsndmail11v.am.sony.com (usculsndmail11v.am.sony.com [146.215.230.102]) by usculsndmail04v.am.sony.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u57N2gH1011901; Tue, 7 Jun 2016 23:02:42 GMT Date: Tue, 7 Jun 2016 16:02:38 -0700 Message-ID: <20160607.160238.139405630.Takaaki.Ota@am.sony.com> To: Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 From: "Ota, Takaaki" In-Reply-To: <83portsor7.fsf@gnu.org> References: <83wpm2rv4q.fsf@gnu.org> <20160606.134632.327444666.Takaaki.Ota@am.sony.com> <83portsor7.fsf@gnu.org> X-Mailer: Mew-6.6 on Emacs-25.0.94.1 (i686-pc-mingw32 built on 2016-05-17) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:160.33.194.231; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(5423002)(24454002)(199003)(189002)(5008740100001)(50986999)(76176999)(50466002)(50226002)(87936001)(23726003)(246002)(6806005)(104016004)(5003600100002)(230700001)(103116003)(47776003)(92566002)(586003)(8936002)(2351001)(46406003)(11100500001)(2906002)(4326007)(97756001)(19580395003)(86362001)(110136002)(189998001)(2950100001)(8676002)(106466001)(19580405001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR08MB015; H:usculsndmail04v.am.sony.com; FPR:; SPF:Pass; PTR:mail.sonyusa.com,mail04.sonyusa.com; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD036; 1:411MkdFoNzupqOilYAZ7WZt6FN09JyNrpqTxXzdwwCprSDzRajcNlf666QN3gIHi+aG7RS+D6ckFHDwvvg3hKXD4X8dY6+gyQp3HyuentF7/nwU/6/MpTY0LbL9JYNUzKy+dsAmBfB5vTBTuTbo/+1sTqpckvpeWT7FwY7cxq6wfDNP/YcbWNAI6CmdsvSAv9DiZpxGYjODDkv6ftV/xHpm8xaX7CmjHJPK1xCT1iMh9o6IcJDwtBC+3CfaMJRThpLE9KwWlgqkX+8zA+iLT+RFHvkrQSmN6ybOM/tlG3Smb5+CnZHWmcM0d7A0HlF0yxvrVMsjJJVHQRYSPnUcmoy/CXQ3dzorw9Yppi8nWrmNq0GdWHbI68i0VDosZ+EEcnLIpk2c8o8Lk+wcCvYaioUBL6PLTdyU+9vRGHZ8ohCeWqIhz2xPrXkTq0eK/TG2d3g7HwWysbhXCPQJcAAM6mx1fcnjnHk/ZhXz1JCMTxoM= X-MS-Office365-Filtering-Correlation-Id: 3cee4b71-c655-46e1-7de3-08d38f27d5ad X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB015; 2:fu2U4yyXXU12s8mo7Y+SwjCzZlbRgM33co8AXKQP5iYBLBI/mi9+7XocngkV3zkO4GIOLSw8c8Q0u/nTJZWYVtg2nkHVi21dDVSj+0/G/6ZNVFebIcGwBTbFcRzPXrVMhheJDXnE2DT2dkUr4hEEwmgN4x3pQn70sHpmS/1ZFQ+sQAP+Y0GLbhatYK0NJq+q; 3:mxu5OTphLTf3xn22+VRC+4ltSUgtjjmQ0inmeae65km6P6w61EUgG1wiIThj+w51qo99nbw8WvWWPlH/ZnKoKpDAJ8e+u0d8T36UILJwChF7oSlZdjAyU5VtYthxNiSk3xe80N5fp0wIqxsx5FOQKG3zSmeOyNneCaidg7CmTzjv7ACXlqHyR5QpXnxMDGNHRcUVpf1Z/+eaVKNKthopO9QmqnuI9LpcVjPahVwEMSQOMYFw/U7AXldSryHkw+MjXbtRpDlFQapJ0M4YkJswrw==; 25:TE+sII/Ca0FDYCb7GoA/8vc+yyMJmJniliby2RTNu1fFsPfkb9GM1PVtaihYQgNMSCIoh9RT0wkWXPlawt4FwSQEMNtcVzzd7n+Eypx7C0rG3C9w3eAGT3qP5bQRbOzU04jnUc4PlZCQ4xY6qHgl+5ma7rC2w2dl6N6VHXmo9/c30Kfqd9okOCWwUPZEOJtierxgYHkVuBDglU/oyXv/JuVUuwpNKO/tyoUtQfxAJZnlC8CNIARwbJc/d8gpm0Z27eMSFMIhvejZDz4cPsdQFXnSBWxGxaU5rK2kieG5pghlw1HCAVz0Krrgw68QTQBDk4ulxpLkshVhL6/1ju2AK58dpUAPDDkd/N2Igd1h9iCuxjgwBq6jXr0jxVHoRSUeDP++VXNJHoafyv5J4GvmkjpA+hZm/xNwzMtkc16FNy8= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BY2PR08MB015; X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB015; 20:DLBvaewwj8r1EuptR2vnDPB42WMcsAI2/k0OmTYw3vp1nW9UESHpDd1Umu2PzyeUJY7Up7IQ9Oz4CbsP/tmWfzvuWmFa6g6dONMHtrU+2nosju+qaOTT1Ope61/uy9PZHGA16LNnRb9eeHda44RzDn39Rl6mRkPtVmB0s7bTaKBnUyfvMV32CzG3F1qZEf645niTXbdLFiDUXSPCkA58yY2ehZ+RkIx7RaJ0lYMVkxaO1ghuRS5HBeFnaA6TxsFWbbrlcxh4z3CbitMYntYux62SKN0myHBg3xe6SGtuRQc8Xl11JeO5mQsyypRAquen/88IQdr/PTbsLIGpC2z/dTjJDZ7EAD8EBsUkGu33t5ZpOBGUundobf858B23LiUpkm6wdpQWm+pnbVaOnc9DjQpIyGGaBkOn+Ew2ABtSJwl9HoRUkid21CaIPbGH/hM0tR2CAnVLw2K7900sH9a9SWkM02wWezA1VPjyzM59u9C+VVvbCyDQx59E0XtCeRzm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(60795455431006)(182409339516656)(22074186197030)(255870821582301); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13023025)(13018025)(13017025)(13024025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BY2PR08MB015; BCL:0; PCL:0; RULEID:; SRVR:BY2PR08MB015; X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB015; 4:JKfr7EITpFmxYtTLCuFEFbAgxat8IHJXOny3FevJEw3qxEA/mXYgiyZeFTEDQePp7m/0GhY0A9C/TXX1fKBas1Gv/7BQznrYLvPd+cRYjqidQeU7/dOHZOI5fNQB4GM/0w6ljbUNx/x6GnFaMNwyXr5aAUyf4A3ZJVd6SyAX7RaVTseyqK7k+w/Mcp/BpLTm2Zttt36J9/wJhIm9CUnVdmkQ+nwpK+UAkA3pKRhbkuh7aCid1ZcpkS6fBmNTE+mKSQ4iSqt/QvtJZ5wsDheK0V1l2lB3afM62fu/BTWlvQ79aT68tS7G0hDcd4509/p9cVVz78uYKh6B4xITz82UDL2sonG84movLoiU2ZHYg+H01+jIw897Y3NhuUVizzmNx86eRn5KiGW5hElP7CtlWYoDNWmpr4r2xvMnc/FGFsrcEnpjLqFNNn3topO80MBmi3HbuitIdu7lTaDZoeEuk6HxPSkuizJM6Rb9NTsSH35vx3LhpZxbz800OTrKAQaiPOuUseigNY2uIETgYDFcoVycuyySxmOdDIAfkHfzvivUm+mMgBwsDGt34uyHVN7DkJMYzhtRLY5wUn/rmaef6jjwnieepckYVvKDqF+jFLv8VQ7hPW8fPJs2HIKDZZ2t X-Forefront-PRVS: 09669DB681 X-Microsoft-Exchange-Diagnostics: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yU8O1oczrWHf5S2bRjMYHVFstW2Sof?= =?us-ascii?Q?MkqC3hpUpAA0Wev5Pj8/Lyek3mmKlOUpoTjTG01Pb2aQAUKhU3nN08qi+kGg?= =?us-ascii?Q?MtIg76ovNrUchJnmT0oeCDVQgZ8PJ/k6opxGxuqMv2YnHeiRpKfj+qJDI1sU?= =?us-ascii?Q?oMvgCdhqq4y3wQFa/ACIO6?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR08MB015; 5:KRoiN1oDqmEptzPC8LN3ZKK3GIlcEmvitocEkilAarRaOW0CpM6iPw8TpsOVYatHEcKDvybfeVwmoHuU+dsp68LgxLDTZWBizpgAWHzOrHy1MWvrIrSTS9P9pidfbX81rGzwv79dNDiYcKuyb4T/vg==; 24:FPPHzbR8xnE1k5iAgzwKOYViVKSFbFCbgh9jj3dyGCd0fNV2D+nnLPEE/TF9EoNFgD8GxmJj7nnY2TbIJUuLU1G4Jpu001/rSsni7VsIZ2I=; 7:vNlf5rRLhewfHSwKn6nMcGCFR4MtDRhfHLZXkCxdlvHv2P5SLi8NDNC8NCZt5tfKXnTmfQjsvPO9IJvA3zQ2GGwBOPZI0o0IKzDI765ML+lD9h4ucFPUoQrPNz/rETRbDaoOHHvj1W851z0dac0HKsvFmupjflYUz1wfplq3hngpwR1vIwd02lj0ddZJPLGudkaqYPEyQ3XyDTQvN/5CrhaQaURlr4JVUUdGOdvD9uY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: am.sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2016 23:02:43.9381 (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.231]; Helo=[usculsndmail04v.am.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR08MB015 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I changed the ownership of the home directory. Then performed the next test. Does this tell you anything? (user-uid) 1001 ;; I manually deleted ~/memo~ before this test (file-attributes "~/memo" 'integer) (nil 1 1001 513 (22359 18939 0 0) (22359 18939 0 0) (20624 9296 0 0) 289738 "-r--r--r--" t (1536 1 . 32777) (50396 . 34426)) ;; Find the file, perform read-only-mode and then save it - the save succeed. (file-attributes "~/memo~" 'integer) (nil 1 1001 513 (22359 18939 0 0) (22359 18939 0 0) (20624 9296 0 0) 289738 "-r--r--r--" t (1536 1 . 32777) (50396 . 34426)) (file-attributes "~/memo" 'integer) (nil 1 1001 513 (22359 20386 0 0) (22359 20386 0 0) (20624 9296 0 0) 289738 "-r--r--r--" t (16128 10 . 5242) (50396 . 34426)) ;; close the file ;; Find the file, perform read-only-mode and then try to save again - the save fails by error "Cannot write backup file ..." "Removing old name: Permission denied ..." ;; And now (file-attributes "~/memo~" 'integer) (nil 1 1001 513 (22359 18939 0 0) (22359 18939 0 0) (20624 9296 0 0) 289738 "-r--r--r--" t (1536 1 . 32777) (50396 . 34426)) (file-attributes "~/memo" 'integer) (nil 1 1001 513 (22359 20386 0 0) (22359 20386 0 0) (20624 9296 0 0) 289738 "-r--r--r--" t (16128 10 . 5242) (50396 . 34426)) (file-attributes "~/.emacs.d/%backup%~" 'integer) (nil 1 1001 513 (20624 4722 0 0) (22359 18939 0 0) (20624 4722 0 0) 289738 "-r--r--r--" t (256 3 . 42744) (50396 . 34426)) -Tak Tue, 7 Jun 2016 05:42:52 +0300: Eli Zaretskii wrote: > > Date: Mon, 6 Jun 2016 13:46:32 -0700 > > CC: <22795@debbugs.gnu.org> > > From: "Ota, Takaaki" > > > > Mon, 6 Jun 2016 22:10:29 +0300: Eli Zaretskii wrote: > > > > > > Date: Mon, 6 Jun 2016 09:24:23 -0700 > > > > CC: <22795@debbugs.gnu.org> > > > > From: "Ota, Takaaki" > > > > > > > > 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. > > > > > > What does (file-attributes FILENAME 'integer) return for that file? > > > And what does (user-uid) return? > > > > On Linux > > > > (file-attributes "~/memo" 'integer) > > (nil 1 1000 1000 (22351 8780 403703 908000) (22351 6556 219830 864000) (22351 6556 223830 864000) 1827 "-r--r--r--" t 131312 2049) > > (user-uid) > > 1000 > > > > On Windows (both 24.5 and 25.0.94) > > > > (file-attributes "~/memo" 'integer) > > (nil 1 544 513 (21821 905 0 0) (22357 41339 0 0) (20624 9296 0 0) 289738 "-r--r--r--" t (1024 1 . 32777) (50396 . 34426)) > > (user-uid) > > 1001 > > This may be part of the problem: your home directory is not owned by > your user, it is owned by the Administrators group. That is > definitely why file-ownership-preserved-p returns nil in your case, > but it can also be part of the larger problem we are investigating. > (On my machines, I always take ownership of the home directory and all > of its subdirectories, recursively, to avoid any ownership issues.) > From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 08 13:07:25 2016 Received: (at 22795) by debbugs.gnu.org; 8 Jun 2016 17:07:25 +0000 Received: from localhost ([127.0.0.1]:33067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAgwv-0007ue-7d for submit@debbugs.gnu.org; Wed, 08 Jun 2016 13:07:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAgws-0007uQ-WB for 22795@debbugs.gnu.org; Wed, 08 Jun 2016 13:07:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAgwk-000633-M4 for 22795@debbugs.gnu.org; Wed, 08 Jun 2016 13:07:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAgwk-00062u-J8; Wed, 08 Jun 2016 13:07:14 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1392 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bAgwj-0000Lw-O5; Wed, 08 Jun 2016 13:07:14 -0400 Date: Wed, 08 Jun 2016 20:07:53 +0300 Message-Id: <83k2hzr4ly.fsf@gnu.org> From: Eli Zaretskii To: "Ota\, Takaaki" In-reply-to: <20160607.160238.139405630.Takaaki.Ota@am.sony.com> Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83wpm2rv4q.fsf@gnu.org> <20160606.134632.327444666.Takaaki.Ota@am.sony.com> <83portsor7.fsf@gnu.org> <20160607.160238.139405630.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 22795 Cc: 22795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Tue, 7 Jun 2016 16:02:38 -0700 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > I changed the ownership of the home directory. Then performed the > next test. Does this tell you anything? Not really, no. I guess we still need the answers to the questions I asked back in March, repeated below: > > I just tried again with "run -Q" from gdb and the result is the same. > > 24.5 never called sys_rename() and 25.0.91 called sys_rename() with > > two same names. > > What about Frename_file? does 24.5 call it in this scenario? > > If it doesn't, then please look at the beginning of backup-buffer (in > files.el), make sure it is called in 24.5 in this scenario, and then > please tell what are the values of real-file-name and backup-info in > this part at the beginning of backup-buffer: > > (let* ((real-file-name (file-chase-links buffer-file-name)) > (backup-info (find-backup-file-name real-file-name))) > > Also, what are the values of make-backup-files, backup-inhibited, and > buffer-backed-up in the buffer that visits the read-only file? > > Btw, is that file under some kind of version control, per chance? > > And please make sure, from now on, to test everything in "emacs -Q", > to prevent any customizations from getting in the way of this > investigation. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 14 14:12:10 2016 Received: (at control) by debbugs.gnu.org; 14 Jun 2016 18:12:10 +0000 Received: from localhost ([127.0.0.1]:40835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCsos-0005DD-K8 for submit@debbugs.gnu.org; Tue, 14 Jun 2016 14:12:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCsoq-0005Cx-HC for control@debbugs.gnu.org; Tue, 14 Jun 2016 14:12:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCsok-0001cc-Lu for control@debbugs.gnu.org; Tue, 14 Jun 2016 14:12:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCsok-0001cQ-Is for control@debbugs.gnu.org; Tue, 14 Jun 2016 14:12:02 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bCsoj-0002Lm-51 for control@debbugs.gnu.org; Tue, 14 Jun 2016 14:12:01 -0400 Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 14 Jun 2016 14:12:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) unblock 19759 by 22795 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 16:08:10 2016 Received: (at 22795-done) by debbugs.gnu.org; 7 Dec 2016 21:08:10 +0000 Received: from localhost ([127.0.0.1]:60379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEjRh-0008RH-RV for submit@debbugs.gnu.org; Wed, 07 Dec 2016 16:08:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEjRg-0008R2-CM for 22795-done@debbugs.gnu.org; Wed, 07 Dec 2016 16:08:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEjRa-0002vD-Jc for 22795-done@debbugs.gnu.org; Wed, 07 Dec 2016 16:08:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEjRa-0002v9-Ga for 22795-done@debbugs.gnu.org; Wed, 07 Dec 2016 16:08:02 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cEjRZ-0004jW-W4; Wed, 07 Dec 2016 16:08:02 -0500 From: Glenn Morris To: 22795-done@debbugs.gnu.org Subject: Re: bug#22795: 25.0.91; Can't write read only file on w32 References: <83wpm2rv4q.fsf@gnu.org> <20160606.134632.327444666.Takaaki.Ota@am.sony.com> <83portsor7.fsf@gnu.org> <20160607.160238.139405630.Takaaki.Ota@am.sony.com> <83k2hzr4ly.fsf@gnu.org> X-Spook: Ansar al-Islam Khaddafi strategic TSA USCODE Delays X-Ran: XeD^(5\/sPkmgm@ow4pf{vrrZexHiJZYSjfJ?@Bo,ws/<6t-yy,$K|\]9VYi[EUI[n&+nw X-Hue: magenta X-Attribution: GM Date: Wed, 07 Dec 2016 16:08:01 -0500 In-Reply-To: <83k2hzr4ly.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Jun 2016 20:07:53 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 22795-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) Eli Zaretskii wrote: > Not really, no. I guess we still need the answers to the questions I > asked back in March, repeated below: No further response in 6 months, closing. From unknown Wed Jun 18 00:28:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Jan 2017 12:24:17 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator