Bug 15696

Summary: A minor bug in procfs code
Product: Base System Reporter: taka <taka>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description taka 1999-12-26 04:50:00 UTC
In the file,
ftp://ftp3.freebsd.org/pub/FreeBSD/FreeBSD-stable/src/sys/miscfs/procfs/procfs_status.c

procfs_dostatus(curp, p, pfs, uio)
...
        pid = p->p_pid;
        ppid = p->p_pptr ? p_p_pptr->p_pid : 0,
        pgid = p->p_pgrp->pg_id;

I believe the middle line should be:

        ppid = p->p_pptr ? p->p_pptr->p_pid : 0;

it seems like every procfs code has this bug since 1996....
Comment 1 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 1999-12-27 14:58:40 UTC
State Changed
From-To: open->closed

The repository as well as the ftp URL in this PR both show that the in 
the PR mentioned `typo' never existed. 

The given `fix' for the middle line has been in the code since 1996, 
not the other way around.