+---------- On Mar 27, Rob Mayoff said:
> A correctly working realpath() must use chdir() at least sometimes.
> System calls only accept paths up to PATH_MAX bytes long, but the
> filesystem allows us to construct paths of any length. The only reliable
> way to access those long paths is by using chdir().

Actually, now that I think about it, realpath is documented to take
an output buffer of only PATH_MAX bytes, so this doesn't apply to
PATH_MAX. But the problem remains for any program that wants to reliably
compute pathnames. And realpath should have been written to allocate a
suitably-sized output buffer...


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/

Reply via email to