lkml.org 
[lkml]   [1999]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRecursion level of symlinks limitted to five?
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.022 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site