Hello,
The comments for do_follow_link in fs/namei.c say the maximum number for
recursive symbolic links is 8, but somehow its been modified to 5.
This value used to be 8 before 2.4.12 version of the kernel.
A patch submitted for kernel 2.4.12 has changed the limit for
recursive symlinks (current->link_count) from 8 to 5( but the comment
has not changed).
Here is a patch to revert this number back to 8.
I have not subscribed to lkml.
So,please reply to me at "[email protected]".
thanks,
Sreelatha.
diff -u linux-2.4.16/fs/namei.c /home/sree/namei.c
--- linux-2.4.16/fs/namei.c Tue Dec 11 16:06:18 2001
+++ /home/sree/namei.c Tue Dec 11 17:37:52 2001
@@ -334,7 +334,7 @@
static inline int do_follow_link(struct dentry *dentry, struct nameidata
*nd)
{
int err;
- if (current->link_count >= 5)
+ if (current->link_count >= 8)
goto loop;
if (current->total_link_count >= 40)
goto loop;