Mail Archives: djgpp-workers/2000/08/14/14:19:05
Eli Zaretskii wrote:
> I simply don't know who is right, but somehow I don't think Unix
> imposes limits of the number of symlinks to a file (which is what
> LINK_MAX and _POISX_LINK_MAX are about).
This is not number of symlinks to file. This is a number of how many
symlinks you can encounter when processing a path. (link1 -> link2 -> etc...)
After I hit that maximum, I stop processing with ELOOP. This is probably
the easiest and the most widespread way to detect symlink loops. Sorry for
not being clear.
> Do you even need a maximum here?
Well, I don't want infinite loop in __solve_symlinks()...
I think I will get away with simple define in xsymlink.c, if it doesn't
matter.
Laurynas
- Raw text -