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

Next file: linux/fs/bad_inode.c
Previous file: linux/fs/affs/symlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.122/linux/fs/autofs/symlink.c linux/fs/autofs/symlink.c
@@ -27,12 +27,13 @@
 }
 
 static struct dentry * autofs_follow_link(struct dentry *dentry,
-					struct dentry *base)
+					struct dentry *base,
+					unsigned int follow)
 {
 	struct autofs_symlink *sl;
 
 	sl = (struct autofs_symlink *)dentry->d_inode->u.generic_ip;
-	return lookup_dentry(sl->data, base, 1);
+	return lookup_dentry(sl->data, base, follow);
 }
 
 struct inode_operations autofs_symlink_inode_operations = {

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