From: "Ota, Takaaki" <Takaaki.Ota@am.sony.com>
To: <eliz@gnu.org>
Cc: 22795@debbugs.gnu.org
Subject: bug#22795: 25.0.91; Can't write read only file on w32
Date: Thu, 25 Feb 2016 09:08:38 -0800 [thread overview]
Message-ID: <20160225.090838.192544111.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <83h9gwg2j8.fsf@gnu.org>
Thu, 25 Feb 2016 18:47:39 +0200: Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Wed, 24 Feb 2016 13:57:49 -0800
> > CC: <22795@debbugs.gnu.org>
> > From: "Ota, Takaaki" <Takaaki.Ota@am.sony.com>
> >
> > Wed, 24 Feb 2016 21:09:57 +0200: Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > > Date: Wed, 24 Feb 2016 08:44:02 -0800
> > > > From: "Ota, Takaaki" <Takaaki.Ota@am.sony.com>
> > > >
> > > > When a file is read only on w32 platform I used to be able to write a
> > > > file by toggling the buffer's read-only-mode state and answering yes
> > > > to this question "File memo is write-protected; try to save anyway?
> > > > (yes or no)" but now the writing fails by an error message "Opening
> > > > output file: Permission denied, c:/d/ota/memo"
> > >
> > > I cannot reproduce this, neither with today's emacs-25 nor with the
> > > last pretest of 25.1. If I answer yes to that question, the file is
> > > saved without any errors.
> > >
> > > How did you make the file read-only? (I used a Windows port of
> > > 'chmod' and the 'attrib' command.)
> >
> > I used Windows Explorer's GUI to open the file property window and
> > placed a check on Read-only attribute. I am using mingw to build the
> > emacs. I just tried with 24.5 and it works but not on 25.0.90/91.
> > They are all build by the same mingw.
>
> This doesn't happen for me even if I use the Explorer.
>
> There's some other factor at work here. Does this happen with any
> file, anywhere on your filesystems? E.g., can you try on a drive
> other than C: ?
>
> Also, do you, as the user, own the directory where this file lives, or
> is its owner another user?
>
> And what filesystem is that? NTFS or FAT32?
>
> Finally, does this happen in "emacs -Q", or do you need some
> customizations for the problem to happen?
>
> Thanks.
>
Yes, I own and have full permission of the directory. I noticed one
thing when I tried other than C: drive. An external USB drive with
NTFS file system exhibits the same problem as C: drive. A flash drive
with FAT32 doesn't show the same problem. Have you tried with NTFS?
-Tak
next prev parent reply other threads:[~2016-02-25 17:08 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 16:44 bug#22795: 25.0.91; Can't write read only file on w32 Ota, Takaaki
2016-02-24 19:09 ` Eli Zaretskii
2016-02-24 21:57 ` Ota, Takaaki
2016-02-25 16:47 ` Eli Zaretskii
2016-02-25 17:08 ` Ota, Takaaki [this message]
2016-02-25 17:12 ` Ota, Takaaki
2016-02-25 18:09 ` Eli Zaretskii
2016-02-25 18:15 ` Ota, Takaaki
2016-02-26 19:26 ` Ota, Takaaki
2016-02-26 21:53 ` Eli Zaretskii
2016-02-29 16:40 ` Ota, Takaaki
2016-02-29 17:13 ` Eli Zaretskii
2016-02-29 17:39 ` Ota, Takaaki
2016-02-29 17:53 ` Ota, Takaaki
2016-02-29 18:05 ` Ota, Takaaki
2016-02-29 18:48 ` Eli Zaretskii
2016-02-29 19:28 ` Ota, Takaaki
2016-02-29 20:06 ` Eli Zaretskii
2016-02-29 21:34 ` Ota, Takaaki
2016-03-01 16:27 ` Eli Zaretskii
2016-05-14 9:17 ` Eli Zaretskii
2016-05-19 18:47 ` Ota, Takaaki
2016-05-19 19:47 ` Eli Zaretskii
2016-05-25 16:55 ` Eli Zaretskii
2016-06-01 17:22 ` Ota, Takaaki
2016-06-04 9:01 ` Eli Zaretskii
2016-06-06 16:24 ` Ota, Takaaki
2016-06-06 19:10 ` Eli Zaretskii
2016-06-06 20:46 ` Ota, Takaaki
2016-06-07 2:42 ` Eli Zaretskii
2016-06-07 23:02 ` Ota, Takaaki
2016-06-08 17:07 ` Eli Zaretskii
2016-12-07 21:08 ` Glenn Morris
2016-02-29 18:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160225.090838.192544111.Takaaki.Ota@am.sony.com \
--to=takaaki.ota@am.sony.com \
--cc=22795@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).