patch-2.1.123 linux/fs/romfs/inode.c

Next file: linux/fs/super.c
Previous file: linux/fs/proc/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.122/linux/fs/romfs/inode.c linux/fs/romfs/inode.c
@@ -451,7 +451,8 @@
 }
 
 static struct dentry *romfs_follow_link(struct dentry *dentry,
-					struct dentry *base)
+					struct dentry *base,
+					unsigned int follow)
 {
 	struct inode *inode = dentry->d_inode;
 	char *link;
@@ -470,7 +471,7 @@
 	} else
 		link[len] = 0;
 
-	dentry = lookup_dentry(link, base, 1);
+	dentry = lookup_dentry(link, base, follow);
 	kfree(link);
 
 	if (0) {

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