patch-2.1.107 linux/fs/proc/base.c
Next file: linux/fs/proc/net.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Mon Jun 15 12:56:36 1998
- Orig file:
v2.1.106/linux/fs/proc/base.c
- Orig date:
Tue Mar 17 22:18:15 1998
diff -u --recursive --new-file v2.1.106/linux/fs/proc/base.c linux/fs/proc/base.c
@@ -62,10 +62,14 @@
read_lock(&tasklist_lock);
if (fill && (p = find_task_by_pid(pid)) != NULL) {
+ uid_t uid = 0;
+ gid_t gid = 0;
if (p->dumpable || ino == PROC_PID_INO) {
- inode->i_uid = p->euid;
- inode->i_gid = p->gid;
+ uid = p->euid;
+ gid = p->egid;
}
+ inode->i_uid = uid;
+ inode->i_gid = gid;
}
read_unlock(&tasklist_lock);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov