Recursion level of symlinks limitted to five?

Ruben Schattevoy (schattev@imb-jena.de)
Mon, 08 Mar 1999 11:03:17 +0100


Hi,

I have encountered an unexpected limitation
in the maxiumum recursion level of symlinks
(2.2.2 kernel, glibc2.0, SuSE 6.0) which can
be resolved.

If I run the following script:

#!/usr/bin/tcsh
#
touch test
foreach sub ( 1 2 3 4 5 6 7 8 9 0 )
mkdir $sub ; cd $sub ; ln -s '../test' ; ls -alFL test
end

The output is as follows:

-rw-rw-r-- 1 schattev gendev 0 Mar 5 15:16 test
-rw-rw-r-- 1 schattev gendev 0 Mar 5 15:16 test
-rw-rw-r-- 1 schattev gendev 0 Mar 5 15:16 test
-rw-rw-r-- 1 schattev gendev 0 Mar 5 15:16 test
-rw-rw-r-- 1 schattev gendev 0 Mar 5 15:16 test
lrwxrwxrwx 1 schattev gendev 7 Mar 5 15:16 test -> ../test
lrwxrwxrwx 1 schattev gendev 7 Mar 5 15:16 test -> ../test
lrwxrwxrwx 1 schattev gendev 7 Mar 5 15:16 test -> ../test
lrwxrwxrwx 1 schattev gendev 7 Mar 5 15:16 test -> ../test
lrwxrwxrwx 1 schattev gendev 7 Mar 5 15:16 test -> ../test

So, how many symlinks can be nested? I acctually expected
a big number here, at least a number much greater than 5...

Is there something, I can do to increase the number of
nested symlinks? Is this a known limitation?

Thanks,

Ruben

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/