diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-29 04:24:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-29 04:24:39 +0000 |
commit | bc97d70b104321c37625720fd106238186cb9029 (patch) | |
tree | 61c99cc510fa6ad32ab8f4a77e6ff06a7f9a0417 /sys/miscfs/procfs/procfs_vnops.c | |
parent | 023685defa1afec18bef0ad9c73dfd5aea854b72 (diff) |
From NetBSD (thorpej):
Fix a reversed argument which caused procfs_checkioperm() to always
return OK". Add a few comments to avoid further confusion.
Diffstat (limited to 'sys/miscfs/procfs/procfs_vnops.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index d125626df43..281b301b8d8 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_vnops.c,v 1.5 1997/08/16 02:00:50 millert Exp $ */ +/* $OpenBSD: procfs_vnops.c,v 1.6 1997/08/29 04:24:38 millert Exp $ */ /* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */ /* @@ -217,8 +217,8 @@ procfs_open(v) struct proc *a_p; } */ *ap = v; struct pfsnode *pfs = VTOPFS(ap->a_vp); - struct proc *p1 = ap->a_p; - struct proc *p2; + struct proc *p1 = ap->a_p; /* tracer */ + struct proc *p2; /* traced */ int error; if ((p2 = PFIND(pfs->pfs_pid)) == 0) |