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 "rsreelat@in.ibm.com".
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:20 EST