[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] symlinks and hostfs
On Fri, 2009-08-28 at 17:21 +0200, Vincent Rivière wrote:
> Thanks for your efforts, Alan.
>
> But I'm still a bit annoyed...
>
> > int32 HostFs::host_stat64( XfsCookie *fc, const char *fpathName,
> > struct stat *statBuf ) {
>
> Basically you changed the behaviour of that function from stat() to
> lstat(), according to its name it may not be a good thing, because it is
> certainly called from other places.
And actually, it's probably a "good" change :-)
Because in every other case than a "symlink" it will use the information
from lstat() anyway in the first call.
I'm not sure why symlinks are specially treated and then go off and follow
their real pointers. It's just wrong.
Alan.