From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#10257: 23.3.1 Cygwin: network drives - file is write protected (false positive) Date: Fri, 09 Dec 2011 15:33:46 -0500 Message-ID: <4EE270AA.2080702@cornell.edu> References: <87aa71mwng.fsf@picasso.cante.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1323462855 12041 80.91.229.12 (9 Dec 2011 20:34:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2011 20:34:15 +0000 (UTC) Cc: 10257@debbugs.gnu.org To: Jari Aalto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 09 21:34:11 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 1RZ790-0004rE-TF for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Dec 2011 21:34:11 +0100 Original-Received: from localhost ([::1]:43106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZ790-0006T8-3V for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Dec 2011 15:34:10 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZ78x-0006T2-Dc for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2011 15:34:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZ78w-0006mM-0O for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2011 15:34:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZ78v-0006mH-OE for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2011 15:34:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RZ79p-0001xx-TV for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2011 15:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Dec 2011 20:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10257 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10257-submit@debbugs.gnu.org id=B10257.13234628927541 (code B ref 10257); Fri, 09 Dec 2011 20:35:01 +0000 Original-Received: (at 10257) by debbugs.gnu.org; 9 Dec 2011 20:34:52 +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 1RZ79f-0001xa-B6 for submit@debbugs.gnu.org; Fri, 09 Dec 2011 15:34:52 -0500 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141] helo=authusersmtp.mail.cornell.edu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RZ79a-0001xQ-V2 for 10257@debbugs.gnu.org; Fri, 09 Dec 2011 15:34:49 -0500 Original-Received: from [192.168.1.3] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id pB9KXmsg002967 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Dec 2011 15:33:49 -0500 (EST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <87aa71mwng.fsf@picasso.cante.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 09 Dec 2011 15:35:01 -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:54844 Archived-At: On 12/9/2011 1:23 PM, Jari Aalto wrote: > 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 Is there really a problem on *any* network drive, or is the issue that you have some particular file system on that drive for which Cygwin can't get reliable permission information? I would think that you should try to get help on the Cygwin list before talking about making emacs bypass permission checks on Cygwin. I don't use network drives myself, but I know that plenty of people do, and the Cygwin maintainers are very accommodating in trying to teach Cygwin to recognize problematic file systems. And if that fails, can't you solve the problem by mounting your drive with the noacl option? > 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.