GNU bug report logs -
#22795
25.0.91; Can't write read only file on w32
Previous Next
Reported by: "Ota, Takaaki" <Takaaki.Ota <at> am.sony.com>
Date: Wed, 24 Feb 2016 18:18:02 UTC
Severity: normal
Tags: moreinfo
Found in version 25.0.91
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #64 received at 22795 <at> debbugs.gnu.org (full text, mbox):
Mon, 29 Feb 2016 22:06:39 +0200: Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Date: Mon, 29 Feb 2016 11:28:15 -0800
> > CC: <22795 <at> debbugs.gnu.org>
> > From: "Ota, Takaaki" <Takaaki.Ota <at> am.sony.com>
> >
> > emacs-24.5 never called sys_rename().
>
> ??? It does here. The call is in backup-buffer: it calls rename-file.
>
> Are you trying this in "emacs -Q"? If not, perhaps you have some
> customizations, like backup-by-copying or
> backup-by-copying-when-mismatch etc.?
>
> > emacs-25.0.91 calls sys_rename() but strangely old name and the new
> > name are the same. See below.
> >
> > -Tak
> >
> > Breakpoint 1, sys_rename (old=0x880c9b8 "c:/d/ota/memo",
> > new=0x880c9b8 "c:/d/ota/memo") at w32.c:4543
> > 4543 {
> > (gdb) n
> > 4544 return sys_rename_replace (old, new, TRUE);
> > (gdb) s
> > sys_rename_replace (oldname=oldname <at> entry=0x880c9b8 "c:/d/ota/memo",
> > newname=newname <at> entry=0x880c9b8 "c:/d/ota/memo", force=force <at> entry=1)
> > at w32.c:4404
>
> Again, is this in "emacs -Q"? The backup file name is generated by
> the function find-backup-file-name, you will find it in files.el. It
> is called by backup-buffer. Please see what file names it produces in
> this case.
>
I just tried again with "run -Q" from gdb and the result is the same.
24.5 never called sys_rename() and 25.0.91 called sys_rename() with
two same names.
-Tak
This bug report was last modified 8 years and 163 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.