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
- Lines: 27
- Date:
Sat Sep 19 13:43:09 1998
- Orig file:
v2.1.122/linux/fs/nfs/symlink.c
- Orig date:
Sun Jan 4 00:53:41 1998
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