patch-2.1.123 linux/fs/isofs/symlink.c

Next file: linux/fs/minix/namei.c
Previous file: linux/fs/isofs/rock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.122/linux/fs/isofs/symlink.c linux/fs/isofs/symlink.c
@@ -19,7 +19,7 @@
 #include <asm/uaccess.h>
 
 static int isofs_readlink(struct dentry *, char *, int);
-static struct dentry * isofs_follow_link(struct dentry *, struct dentry *);
+static struct dentry * isofs_follow_link(struct dentry *, struct dentry *, unsigned int);
 
 /*
  * symlinks can't do much...
@@ -66,7 +66,8 @@
 }
 
 static struct dentry * isofs_follow_link(struct dentry * dentry,
-					struct dentry *base)
+					struct dentry *base,
+					unsigned int follow)
 {
 	char * pnt;
 
@@ -76,7 +77,7 @@
 		return ERR_PTR(-ELOOP);
 	}
 
-	base = lookup_dentry(pnt, base, 1);
+	base = lookup_dentry(pnt, base, follow);
 
 	kfree(pnt);
 	return base;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov