Fixed missing initialisation of vp->v_type for types Pfile and Pmem

in procfs_allocvp().  This fixes at least stat() of /proc/*/mem.

stat() of /proc/*/file already worked.  I think procfs_allocvp() isn't
actually called for type Pfile.
This commit is contained in:
Bruce Evans 1997-03-08 16:06:34 +00:00
parent 03001f577f
commit 90106ad38b
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,7 @@
*
* @(#)procfs_subr.c 8.6 (Berkeley) 5/14/95
*
* $Id$
* $Id: procfs_subr.c,v 1.13 1997/02/22 09:40:30 peter Exp $
*/
#include <sys/param.h>
@ -164,6 +164,7 @@ loop:
case Pmem:
pfs->pfs_mode = (VREAD|VWRITE) |
(VREAD) >> 3;;
vp->v_type = VREG;
break;
case Pregs:

View File

@ -36,7 +36,7 @@
*
* @(#)procfs_subr.c 8.6 (Berkeley) 5/14/95
*
* $Id$
* $Id: procfs_subr.c,v 1.13 1997/02/22 09:40:30 peter Exp $
*/
#include <sys/param.h>
@ -164,6 +164,7 @@ loop:
case Pmem:
pfs->pfs_mode = (VREAD|VWRITE) |
(VREAD) >> 3;;
vp->v_type = VREG;
break;
case Pregs: