From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.bugs Subject: bug#10257: 23.3.1 Cygwin: network drives - file is write protected (false positive) Date: Fri, 09 Dec 2011 20:23:47 +0200 Message-ID: <87aa71mwng.fsf@picasso.cante.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323455057 22129 80.91.229.12 (9 Dec 2011 18:24:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2011 18:24:17 +0000 (UTC) To: 10257@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 09 19:24:12 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RZ57D-0004Mg-Rt for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Dec 2011 19:24:11 +0100 Original-Received: from localhost ([::1]:38100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZ57D-0006Xn-A1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Dec 2011 13:24:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZ57A-0006XY-1j for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2011 13:24:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZ579-0000Ua-1K for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2011 13:24:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZ578-0000UW-Ue for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2011 13:24:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RZ582-0007PN-UB for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2011 13:25:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jari Aalto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Dec 2011 18:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10257 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132345509028445 (code B ref -1); Fri, 09 Dec 2011 18:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Dec 2011 18:24:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RZ57p-0007Oj-L6 for submit@debbugs.gnu.org; Fri, 09 Dec 2011 13:24:50 -0500 Original-Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RZ57m-0007OZ-FX for submit@debbugs.gnu.org; Fri, 09 Dec 2011 13:24:48 -0500 Original-Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh07-2.mail.saunalahti.fi (Postfix) with SMTP id E0C8E18D1C5 for ; Fri, 9 Dec 2011 20:23:48 +0200 (EET) Original-Received: from emh05.mail.saunalahti.fi ([62.142.5.111]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A06E91DC71E; Fri, 09 Dec 2011 20:23:48 +0200 Original-Received: from picasso.cante.net (a91-155-176-245.elisa-laajakaista.fi [91.155.176.245]) by emh05.mail.saunalahti.fi (Postfix) with ESMTP id CC71327D86 for ; Fri, 9 Dec 2011 20:23:47 +0200 (EET) Original-Received: from jaalto by picasso.cante.net with local (Exim 4.77) (envelope-from ) id 1RZ56p-0000ds-AP for submit@debbugs.gnu.org; Fri, 09 Dec 2011 20:23:47 +0200 Mail-Copies-To: poster X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jari.aalto@cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 09 Dec 2011 13:25:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54838 Archived-At: Package: emacs Version: 23.3+1-4 Severity: normal TEST CASE - OS: Windows 7 64 bit - Start Cygwin X server: XWin :0 -unixkill -multiwindow - Start Cygwin Emacs: DISPLAY=:0 emacs-X11 & - C-x C-f any network drive file Emacs marks the file as read-only (%%) and asks every time a question after pressing C-x C-s: File is write-protected; try to save anyway? (y or n) PROBLEM The constant prompting "Y/N" makes writing to a network drive location exessively hard. It's nuissance to have to be able to confirm every save action. There doens't seem to be way to turn of this prompting. SUGGESTION The logic of checking if file is write protedted or not does not seem to be reliable under Cygwin regarding network drives. The Permissions probably don't come through correctly for Emacs to examine them. A) Offer option to turn of confirmation B) or bypass write protection checks under Cygwin TEST DATA Here is an example under Cygwin Emacs: (file-attributes "/cygdrive/z/tmp/test-epackage.el") => (nil 1 4294967295.0 4294967295.0 (20194 11100) (20194 19792) (20194 19792) 437 "-rwxr--r--" t (-1735557 1952988 . 8890) (30147 . 13405)) Under Cygwin Bash shell it looks like this: $ ls -la /cygdrive/z/tmp/test-epackage.el -rwxr--r-- 1 ???????? ???????? 437 Dec 9 20:02 /cygdrive/z/tmp/test-epackage.el Note: the uid and gid information is not available from this non-domain network drive.