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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jari Aalto <jari.aalto <at> cante.net>
Subject: bug#10257: closed (Re: bug#10257: 23.3.1 Cygwin: network drives -
 file is write protected (false positive))
Date: Sat, 17 Dec 2011 17:10:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 10257 <at> debbugs.gnu.org.

-- 
10257: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10257
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ken Brown <kbrown <at> cornell.edu>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 10257-done <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: Sat, 17 Dec 2011 12:08:07 -0500
Version: 24.0.93

I've applied the patch and am closing the bug.

[Message part 3 (message/rfc822, inline)]
From: Jari Aalto <jari.aalto <at> cante.net>
To: submit <at> debbugs.gnu.org
Subject: 23.3.1 Cygwin: network drives - file is write protected (false
	positive)
Date: Fri, 09 Dec 2011 20:23:47 +0200
Package: emacs
Version: 23.3+1-4
Severity: normal

TEST CASE

    - OS: Windows 7 64 bit
    - Start Cygwin X server:
      XWin :0 -unixkill -multiwindow
    - Start Cygwin Emacs:
      DISPLAY=:0 emacs-X11 &
    - C-x C-f any network drive file

    Emacs marks the file as read-only (%%) and asks every time a question
    after pressing C-x C-s:

        File <name here> is write-protected; try to save anyway? (y or n)

PROBLEM

    The constant prompting "Y/N" makes writing to a network drive location
    exessively hard. It's nuissance to have to be able to confirm every
    save action.

    There doens't seem to be way to turn of this prompting.

SUGGESTION

    The logic of checking if file is write protedted or not does not seem
    to be reliable under Cygwin regarding network drives. The Permissions
    probably don't come through correctly for Emacs to examine them.

    A) Offer option to turn of confirmation
    B) or bypass write protection checks under Cygwin

TEST DATA

Here is an example under Cygwin Emacs:

    (file-attributes "/cygdrive/z/tmp/test-epackage.el")
    => (nil 1 4294967295.0 4294967295.0 (20194 11100) (20194 19792) (20194
    19792) 437 "-rwxr--r--" t (-1735557 1952988 . 8890) (30147 . 13405))

Under Cygwin Bash shell it looks like this:

    $ ls -la /cygdrive/z/tmp/test-epackage.el
    -rwxr--r-- 1 ???????? ???????? 437 Dec  9 20:02 /cygdrive/z/tmp/test-epackage.el

Note: the uid and gid information is not available from this non-domain
network drive.



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.