Mail Archives: djgpp-workers/2003/03/19/13:32:09
Hello.
Eli Zaretskii wrote:
>
> > Date: Wed, 19 Mar 2003 12:56:09 +0000
> > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> >
> > > > Apparently stat doesn't return the same inode each time on Win2k/XP.
> > >
> > > OK.
> >
> > I don't think this will be difficult to fix. It would be similar to the
> > proposed fix for fstat.
> >
> > The fstat fix uses the stored file name from fd_props, which is the true
> > name of the original file name, then uses _invent_inode on that.
>
> Then how will ``a similar fix'' for `stat' solve the problem? `stat'
> already uses the real name of the file, right?
[snip]
Yup. So for stat'ing directories we use _truename on that and then
_invent_inode to invent an inode for it. This will ensure we always return the
same inode for directories. Admittedly I haven't looked particularly closely
at the code.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -