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 #74 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 <at> cante.net
Subject: Re: bug#10257: 23.3.1 Cygwin: network drives - file is write protected
	(false positive)
Date: Wed, 14 Dec 2011 09:19:16 -0500

On 12/14/2011 8:10 AM, Eli Zaretskii wrote:
>> Date: Wed, 14 Dec 2011 07:55:07 -0500
>> From: Ken Brown<kbrown <at> cornell.edu>
>> CC: 10257 <at> debbugs.gnu.org, Jari Aalto<jari.aalto <at> cante.net>
>>
>> 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?
>
> Either that, or make euidaccess/check_writable return success in such
> cases.

I don't know how to determine what "such cases" are.  In the case at 
hand, Jari has a network filesystem that is configured in such a way 
that the uid/gid of a file can't be determined by standard system calls. 
 As explained on the Cygwin list, he can set up his /etc/passwd and 
/etc/group to work around this.  [He has to map the fake SID returned by 
Samba to a real one.]  If he doesn't want to do that, I think it would 
clearly be wrong for euidaccess to return success.

Maybe check_writable could be a little more lenient, but I'm not sure 
what the implications of that would be.

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.