More than 5 symlinks

Urs Thuermann (thuerman@ibr.cs.tu-bs.de)
Thu, 14 Jan 1999 12:15:43 +0100


Linux-2.1.x and 2.2.0-prex only follow 5 symlinks. This is not enough
in some environments. I patch each kernel I install to follow 20
symlinks which is the same as in SunOS and Solaris.

I'd like to see this patch make it into 2.2.0

--- linux/fs/namei.c.orig Wed Dec 23 21:52:39 1998
+++ linux/fs/namei.c Thu Jan 14 10:17:00 1999
@@ -280,7 +280,7 @@
struct inode * inode = dentry->d_inode;

if (inode && inode->i_op && inode->i_op->follow_link) {
- if (current->link_count < 5) {
+ if (current->link_count < 20) {
struct dentry * result;

current->link_count++;

urs

-
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/