From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10257: 23.3.1 Cygwin: network drives - file is write protected (false positive) Date: Tue, 13 Dec 2011 09:43:21 -0500 Message-ID: References: <87aa71mwng.fsf@picasso.cante.net> <4EE270AA.2080702@cornell.edu> <20111210095858.GA19881@cante.cante.net> <4EE742B0.1080703@cornell.edu> <20111213140042.GA22678@picasso.cante.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1323787441 13325 80.91.229.12 (13 Dec 2011 14:44:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2011 14:44:01 +0000 (UTC) Cc: 10257@debbugs.gnu.org To: jari Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 13 15:43:56 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 1RaTaB-00081U-PZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 15:43:51 +0100 Original-Received: from localhost ([::1]:59431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaTaA-0005nY-Th for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 09:43:50 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaTa5-0005mo-EV for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 09:43:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaTa3-0005jR-QL for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 09:43:45 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaTa3-0005jN-NT for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 09:43:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RaTbJ-00055W-Gj for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 09:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Dec 2011 14:45: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.132378748219522 (code B ref 10257); Tue, 13 Dec 2011 14:45:01 +0000 Original-Received: (at 10257) by debbugs.gnu.org; 13 Dec 2011 14:44:42 +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 1RaTb0-00054o-IV for submit@debbugs.gnu.org; Tue, 13 Dec 2011 09:44:42 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RaTay-00054i-PP for 10257@debbugs.gnu.org; Tue, 13 Dec 2011 09:44:41 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RaTZh-0006H7-3R; Tue, 13 Dec 2011 09:43:21 -0500 In-reply-to: <20111213140042.GA22678@picasso.cante.net> (message from jari on Tue, 13 Dec 2011 16:00:42 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 13 Dec 2011 09:45: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:54917 Archived-At: > Date: Tue, 13 Dec 2011 16:00:42 +0200 > From: jari > Cc: 10257@debbugs.gnu.org > > | So why don't you ask on the Cygwin list whether access() and > | euidaccess() can be taught to give the "right" answer for files on > | such drives. Or maybe the question is simply whether Cygwin can be > | taught to determine the correct UID. > > Sure, but because The network drive is not part of Windows Domain, I'm > afraid Cygwin has any means to determine what the correct UID or GID > would be are as they have no correspondence on the Windows side. ??? As long as the network drive is mounted using Windows APIs (which must be the case), the NT security features should be fully supported for it. That includes the user and group IDs of every file. So why does Cygwin's `stat' return 4294967295 (which AFAIU is a fancy way of saying -1) for UID and GID of these files? > In any case, this is a big problem in daily use; especially because > the file system check cannot be ignored, bypassed or configured to > "just to go ahead and write without questions". We don't want to put some ad-hoc "solution" into Emacs just because it is urgent for you. We want to understand the problem, and in particular figure out whether it is an Emacs problem or a problem with the Cygwin implementation of some library function. Only then it will be possible to establish what is the best solution. Ken repeatedly suggested that you ask on the Cygwin list about this. I think this is a good idea, as people here (with the exception of Ken) know very little about Cygwin internals. In any case, if you don't wish to follow Ken's advice, but want to solve this urgent problem, you have the sources, don't you?