GNU bug report logs - #10257
23.3.1 Cygwin: network drives - file is write protected (false positive)

Previous Next

Package: emacs;

Reported by: Jari Aalto <jari.aalto <at> cante.net>

Date: Fri, 9 Dec 2011 18:25:02 UTC

Severity: normal

Found in version 23.3+1-4

Fixed in version 24.0.93

Done: Ken Brown <kbrown <at> cornell.edu>

Bug is archived. No further changes may be made.

Full log


Message #65 received at 10257 <at> debbugs.gnu.org (full text, mbox):

From: Ken Brown <kbrown <at> cornell.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 10257 <at> debbugs.gnu.org, Jari Aalto <jari.aalto <at> cante.net>
Subject: Re: bug#10257: 23.3.1 Cygwin: network drives - file is write protected
	(false positive)
Date: Wed, 14 Dec 2011 07:55:07 -0500
On 12/14/2011 7:24 AM, Ken Brown wrote:
> On 12/14/2011 3:35 AM, Eli Zaretskii wrote:
>>> From: Jari Aalto<jari.aalto <at> cante.net>
>>> Cc: Stefan Monnier<monnier <at> iro.umontreal.ca>, Eli
>>> Zaretskii<eliz <at> gnu.org>, 10257 <at> debbugs.gnu.org,
>>> jari<jari.aalto <at> cante.net>
>>> Date: Wed, 14 Dec 2011 10:01:47 +0200
>>>
>>> I'm proposing following,
>>> Jari
>>>
>>> 2011-12-14 Jari Aalto<jari.aalto <at> cante.net>
>>>
>>> * files.el (basic-save-buffer-2): Add
>>> `save-buffer-read-only-confirm-flag' to control asking to a
>>> write-protected file.
>>> (save-buffer-read-only-confirm-flag): New user variable
>>> (bug#10257).
>>
>> Yuck! Are we going to add a knob for every possible misconfiguration
>> of network filesystems and/or for every incompatibility in Posix
>> emulation layers on Windows?
>>
>> Up till now, the way to deal with this was either to change the
>> generic code (where it was deemed to be deficient in the first place),
>> 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?
>
> 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?

Ignore my question.  I don't think it's relevant, nor do I think there's 
any need for Cygwin-specific code in emacs to deal with this.  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.  Jari, you were 
already told on the Cygwin list how to work around this problem.  Why 
not just do it?

Ken




This bug report was last modified 13 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.