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: Tue, 13 Dec 2011 10:12:46 -0500 Message-ID: <4EE76B6E.7070904@cornell.edu> References: <87aa71mwng.fsf@picasso.cante.net> <4EE270AA.2080702@cornell.edu> <20111210095858.GA19881@cante.cante.net> <4EE742B0.1080703@cornell.edu> <20111213140042.GA22678@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 1323789244 27485 80.91.229.12 (13 Dec 2011 15:14:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2011 15:14:04 +0000 (UTC) Cc: 10257@debbugs.gnu.org, jari To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 13 16:13:57 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 1RaU3H-0008Uo-9L for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 16:13:55 +0100 Original-Received: from localhost ([::1]:40172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaU3G-00055f-JW for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 10:13:54 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaU3A-000556-4R for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:13:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaU36-0003r6-5Y for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:13:47 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaU36-0003r2-2T for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:13:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RaU4L-0005qU-Qx for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 10:15: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: Tue, 13 Dec 2011 15:15: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.132378924922396 (code B ref 10257); Tue, 13 Dec 2011 15:15:01 +0000 Original-Received: (at 10257) by debbugs.gnu.org; 13 Dec 2011 15:14:09 +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 1RaU3U-0005pB-Te for submit@debbugs.gnu.org; Tue, 13 Dec 2011 10:14:09 -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 1RaU3S-0005p4-SB for 10257@debbugs.gnu.org; Tue, 13 Dec 2011 10:14:08 -0500 Original-Received: from [128.84.254.146] (rrdhcp254-146.redrover.cornell.edu [128.84.254.146]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id pBDFClON013842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 13 Dec 2011 10:12:47 -0500 (EST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 13 Dec 2011 10:15: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:54918 Archived-At: I have a question about the emacs side of this. I wonder what the rationale is for testing writability before trying to save the file, and then asking the user for confirmation in case the (unreliable) test for writability fails (*). It might be reasonable to just assume that the user really wants to save the file; the worst thing that can happen is that the write fails. Am I missing something? Ken (*) According to the documentation at http://www.kernel.org/doc/man-pages/online/pages/man3/euidaccess.3.html euidaccess() and access () are not reliable for checking permissions. The advice there is to simply try the desired operation and check for errors.