This adds a new constant SYMLOOP_MAX, which corresponds to the POSIX
variable of the number of symbolic links that may be followed. A new
error Eloop was added to signal when SYMLOOP_MAX is exceeded.
SYMLOOP_MAX has been arbitrarily set to 10 while on linux it is set
to 40 and the POSIX minimum is 8.
find_node when encountering a symbolic link anywhere in the given path
will attempt to follow it.
Note that SYMLOOP_MAX is only the limit of symbolic links to
follow per symbolic link. There is currently no attempt to limit
the total number of symbolic links followed when resolving a path.
This adds tests for path resolution of symbolic links as well.
2013-11-25 14:26:46 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca