summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-03-08 16:06:34 +0000
committerbde <bde@FreeBSD.org>1997-03-08 16:06:34 +0000
commit0309fd38a3de651d5590ba03130e75846cbb9a2d (patch)
treeebbcbb5b5c69338010e288897505934eae18d6fd /sys/fs/procfs
parent7645c8bdd7e6a84946502c5fd03d7522d03500af (diff)
downloadFreeBSD-src-0309fd38a3de651d5590ba03130e75846cbb9a2d.zip
FreeBSD-src-0309fd38a3de651d5590ba03130e75846cbb9a2d.tar.gz
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.
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_subr.c b/sys/fs/procfs/procfs_subr.c
index e6e8ada..8c5224b 100644
--- a/sys/fs/procfs/procfs_subr.c
+++ b/sys/fs/procfs/procfs_subr.c
@@ -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:
OpenPOWER on IntegriCloud