unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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: Mon, 6 Jun 2016 09:24:23 -0700	[thread overview]
Message-ID: <20160606.092423.09676870.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <83bn3hwcnq.fsf@gnu.org>

After opening a read only file, execute read-only-mode, modify the
file and try to save the file under emacs 25.0.94 on Linux and Windows
file-ownership-preserved-p returns non nil value on Linux and nil on
Windows.

But I spoke too early about this.  After this, I then compared emacs
25.0.94 and 24.5 on Windows.  On both version
file-ownership-preserved-p returns nil while save succeeds on 24.5 and
25.0.94 fails with "Opening output file: Permission denined," error.

So file-ownership-preserved-p is not the root cause.  I still need to
continue to chase.

-Tak

Sat, 4 Jun 2016 12:01:29 +0300: Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Wed, 1 Jun 2016 10:22:53 -0700
> > CC: <22795@debbugs.gnu.org>
> > From: "Ota, Takaaki" <Takaaki.Ota@am.sony.com>
> > 
> > I still don't have a conclusion but the root cause seems to be related
> > to file-ownership-preserved-p that has some platform specific
> > implementation.  When I open a read only file on both Linux and
> > windows-nt, Linux returns t while windows-nt returns nil.
> 
> Thanks.  Just to make sure I understand you correctly: which function
> returns nil or t when you open a read-only file?
> 





  reply	other threads:[~2016-06-06 16:24 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
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 [this message]
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=20160606.092423.09676870.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).