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

Next file: linux/fs/pipe.c
Previous file: linux/fs/nfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.122/linux/fs/nfs/symlink.c linux/fs/nfs/symlink.c
@@ -19,7 +19,7 @@
 #include <asm/uaccess.h>
 
 static int nfs_readlink(struct dentry *, char *, int);
-static struct dentry *nfs_follow_link(struct dentry *, struct dentry *);
+static struct dentry *nfs_follow_link(struct dentry *, struct dentry *, unsigned int);
 
 /*
  * symlinks can't do much...
@@ -68,7 +68,7 @@
 }
 
 static struct dentry *
-nfs_follow_link(struct dentry * dentry, struct dentry *base)
+nfs_follow_link(struct dentry * dentry, struct dentry *base, unsigned int follow)
 {
 	int error;
 	unsigned int len;
@@ -94,7 +94,7 @@
 	path[len] = 0;
 	kfree(mem);
 
-	result = lookup_dentry(path, base, 1);
+	result = lookup_dentry(path, base, follow);
 	kfree(path);
 out:
 	return result;

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