## Exercise 4

Improve the solution of the previous exercise in following ways:

 1. If the target of the symlink is a symlink, follow that too,
    until you find a non-symlink,
 2. if the symlinks form a loop, say so and give up.

Solving this requires C skills on top of what we have already done.
If you are new to C, feel free to skip this exercise.

In any case, the next item to look at is ‹readdir.c›.
