Mail Archives: djgpp-workers/2001/01/07/06:38:46
On Sun, Jan 07, 2001 at 12:08:27PM +0200, Eli Zaretskii wrote:
>
> On Sat, 6 Jan 2001, Richard Dawe wrote:
>
> > There appears to be a bug in lstat() - see line 910 of
> > src/libc/posix/sys/stat/lstat.c:
> >
> > if (__FSEXT_call_open_handlers(__FSEXT_stat, &ret, &real_path))
> > return ret;
> >
> > __FSEXT_call_open_handlers() should be called with the third arg as a
> > va_list, not a pointer like this.
>
> I think this is a result of replacing `path' with `real_path' when
> symlink support was added to `stat': the former was on the stack, since
> it's the argument of `stat' (now `lstat'), and so passing a pointer to
> it does TRT, evebn though it is not declared as a va_list.
>
Well spotted, thanks. I'll fix this shortly, also I'll try to
make a testsuite for this case.
Laurynas
- Raw text -