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:
parent
03001f577f
commit
90106ad38b
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user