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 #23 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 <jari.aalto <at> cante.net>
Subject: Re: bug#10257: 23.3.1 Cygwin: network drives - file is write protected
	(false positive)
Date: Tue, 13 Dec 2011 10:12:46 -0500
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.




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

Previous Next


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