Mail Archives: djgpp-workers/2000/08/17/05:35:45
Eli Zaretskii wrote:
> What you described above should be a primitive which can be hooked.
It was something that has been overlooked. (If you have my old symlink
patches, you might check them, if they contain patches for fstat(). I
doubt that). And FSEXT just made this little flaw very clear.
> > Now if I provide
> > int __internal_readlink(const char * path, int fhandle, char * buf, int max);
>
> Assuming that we won't get the user into trouble by requesting to have
> the same hook that is called both from __FSEXT_call_open_handlers and
> by a handle-related code, this is okay, I think.
I will document that user should call __internal_readlink() from its fstat
handler, if he/she does not support his/her own symlink format.
> > BTW, if file was opened for write only, __internal_readlink() would
> > fail here
>
> This should be documented.
Yes.
Laurynas
- Raw text -