unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10257: 23.3.1 Cygwin: network drives - file is write protected (false positive)
@ 2011-12-09 18:23 Jari Aalto
  2011-12-09 20:33 ` Ken Brown
  0 siblings, 1 reply; 41+ messages in thread
From: Jari Aalto @ 2011-12-09 18:23 UTC (permalink / raw)
  To: 10257

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.





^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2011-12-17 17:08 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 18:23 bug#10257: 23.3.1 Cygwin: network drives - file is write protected (false positive) Jari Aalto
2011-12-09 20:33 ` Ken Brown
2011-12-10  9:58   ` jaalto
2011-12-13 12:18     ` Ken Brown
2011-12-13 14:00       ` jari
2011-12-13 14:43         ` Eli Zaretskii
2011-12-13 15:12           ` Ken Brown
2011-12-13 19:27             ` Stefan Monnier
2011-12-13 20:16               ` Ken Brown
2011-12-14  2:54                 ` Stefan Monnier
2011-12-14  3:27                   ` Ken Brown
2011-12-14  8:01                     ` Jari Aalto
2011-12-14  8:35                       ` Eli Zaretskii
2011-12-14 12:24                         ` Ken Brown
2011-12-14 12:55                           ` Ken Brown
2011-12-14 13:10                             ` Eli Zaretskii
2011-12-14 14:19                               ` Ken Brown
2011-12-14 14:47                                 ` jari
2011-12-14 17:30                                 ` Eli Zaretskii
2011-12-14 17:57                                   ` Ken Brown
2011-12-15  2:43                                     ` Ken Brown
2011-12-15  2:53                                       ` Ken Brown
2011-12-15  3:19                                         ` Ken Brown
2011-12-15  4:04                                       ` Eli Zaretskii
2011-12-15 14:42                                         ` Ken Brown
2011-12-16 19:37                                           ` Ken Brown
2011-12-16 19:46                                             ` Eli Zaretskii
2011-12-16 23:15                                             ` Stefan Monnier
2011-12-17 17:08                                               ` Ken Brown
2011-12-14 14:15                             ` jari
2011-12-14 14:29                               ` Ken Brown
2011-12-14 14:43                                 ` jari
2011-12-14 17:21                                 ` Eli Zaretskii
2011-12-14 17:23             ` Richard Stallman
2011-12-13 16:26           ` jari
2011-12-13 16:52             ` Ken Brown
2011-12-13 17:48               ` jari
2011-12-13 17:48             ` Eli Zaretskii
2011-12-13 18:05               ` jari
2011-12-13 18:36                 ` Eli Zaretskii
2011-12-15 14:44           ` Jason Rumney

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).