diff options
author | bde <bde@FreeBSD.org> | 1997-03-08 16:06:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-08 16:06:34 +0000 |
commit | 0309fd38a3de651d5590ba03130e75846cbb9a2d (patch) | |
tree | ebbcbb5b5c69338010e288897505934eae18d6fd | |
parent | 7645c8bdd7e6a84946502c5fd03d7522d03500af (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/fs/procfs/procfs_subr.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_subr.c | 3 |
2 files changed, 4 insertions, 2 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: diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c index e6e8ada..8c5224b 100644 --- a/sys/miscfs/procfs/procfs_subr.c +++ b/sys/miscfs/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: |