patch-2.1.123 linux/fs/proc/link.c
Next file: linux/fs/proc/mem.c
Previous file: linux/fs/pipe.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Sat Sep 19 15:11:37 1998
- Orig file:
v2.1.122/linux/fs/proc/link.c
- Orig date:
Wed Aug 26 11:37:43 1998
diff -u --recursive --new-file v2.1.122/linux/fs/proc/link.c linux/fs/proc/link.c
@@ -17,7 +17,7 @@
#include <linux/stat.h>
static int proc_readlink(struct dentry *, char *, int);
-static struct dentry * proc_follow_link(struct dentry *, struct dentry *);
+static struct dentry * proc_follow_link(struct dentry *, struct dentry *, unsigned int);
/*
* links can't do much...
@@ -57,7 +57,8 @@
};
static struct dentry * proc_follow_link(struct dentry *dentry,
- struct dentry *base)
+ struct dentry *base,
+ unsigned int follow)
{
struct inode *inode = dentry->d_inode;
struct task_struct *p;
@@ -172,7 +173,7 @@
{
int error;
- dentry = proc_follow_link(dentry, NULL);
+ dentry = proc_follow_link(dentry, NULL, 1);
error = PTR_ERR(dentry);
if (!IS_ERR(dentry)) {
error = -ENOENT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov