From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jari Newsgroups: gmane.emacs.bugs Subject: bug#10257: 23.3.1 Cygwin: network drives - file is write protected (false positive) Date: Wed, 14 Dec 2011 16:15:21 +0200 Message-ID: <20111214141521.GE22678@picasso.cante.net> References: <4EE76B6E.7070904@cornell.edu> <4EE7B2A9.6060308@cornell.edu> <4EE8178F.5040004@cornell.edu> <87liqf1t04.fsf@picasso.cante.net> <4EE89590.2040503@cornell.edu> <4EE89CAB.8080301@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1323872164 18958 80.91.229.12 (14 Dec 2011 14:16:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2011 14:16:04 +0000 (UTC) Cc: 10257@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 14 15:16:00 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 1Rapcj-0005hS-UZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Dec 2011 15:15:58 +0100 Original-Received: from localhost ([::1]:33784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rapce-0000dq-7l for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Dec 2011 09:15:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RapcV-0000KE-9J for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2011 09:15:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RapcQ-0000PC-KV for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2011 09:15:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RapcQ-0000Oz-Ip for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2011 09:15:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Rapdl-0005V2-LN for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2011 09:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: jari Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Dec 2011 14:17: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.132387221521113 (code B ref 10257); Wed, 14 Dec 2011 14:17:01 +0000 Original-Received: (at 10257) by debbugs.gnu.org; 14 Dec 2011 14:16:55 +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 1Rapdf-0005UU-Bx for submit@debbugs.gnu.org; Wed, 14 Dec 2011 09:16:55 -0500 Original-Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rapdb-0005UK-CP for 10257@debbugs.gnu.org; Wed, 14 Dec 2011 09:16:53 -0500 Original-Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh07-2.mail.saunalahti.fi (Postfix) with SMTP id CBACF18CDFC; Wed, 14 Dec 2011 16:15:25 +0200 (EET) Original-Received: from emh04.mail.saunalahti.fi ([62.142.5.110]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A046A7C8D34; Wed, 14 Dec 2011 16:15:25 +0200 Original-Received: from picasso.cante.net (a91-155-176-245.elisa-laajakaista.fi [91.155.176.245]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id 15A1241BE9; Wed, 14 Dec 2011 16:15:21 +0200 (EET) Original-Received: from jaalto by picasso.cante.net with local (Exim 4.77) (envelope-from ) id 1Rapc9-00049b-Hj; Wed, 14 Dec 2011 16:15:21 +0200 Content-Disposition: inline In-Reply-To: <4EE89CAB.8080301@cornell.edu> X-Gpg-Key-Id: 0xD189E680 X-Gpg-Key-Info: http://key-server.de:11371/pks/lookup?search=0xD189E680&op=vindex X-Gpg-Key-Get: ttp://key-server.de:11371/pks/lookup?search=0xD189E680&op=get User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jaalto@picasso.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: Wed, 14 Dec 2011 09:17: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:54951 Archived-At: On 2011-12-14 07:55, Ken Brown wrote: | ... | >> [Eli] or ask the maintainers of the platform to fix that either in the | >> platform libraries or in platform-specific code in Emacs. I think | >> that is the right way; adding a user option every time is not, IMNSHO. | >> | >> If native Windows and even MS-DOS ports can DTRT with this, then how | >> come Cygwin cannot? To recap: - Cygwin can, but it needs special setup. This setup is not trivial: if you intend to use same Windows Mapped Network Drive. If you use mount(1), you lose Windows File Manager Integration because paths are no longer the same. - Emacs can't rely on UID, GID on Cygwin to be correct. | >The MS-DOS port uses system-specific code in `check_writable' (see | >fileio.c). I don't know whether the native Windows port DTRT for Jari's | >network filesystem. Jari, can you test this? Yes, Windows NT EMacs port works fine. No problems - File on remote drive are not marked read-only - File on remote drive are written without asking. | As I understand it, this is a filesystem problem: Samba returns a | fake SID to Windows, so Cygwin can't determine the correct uid/gid. Yes. | Jari, you were already told on the Cygwin list how to work around | this problem. Why not just do it? It's too complex, and doesn't work with multiple Samaba severs that would use all different GID, UIDs for the same user name, and I cannot get right UIDs and GIDs installed ... too many issues. I can work just fine under Cygwin without these GID, UIDs set. But I can't use Emacs effectively. I would expect there to be at least an option to control these pre-emptive confirmation questions. Without any control, the situation is a nightmare. Compare: confirm-kill-emacs dired-no-confirm message-kill-buffer-on-exit vc-suppress-confirm ... Jari