diff options
| -rw-r--r-- | sys/fs/procfs/procfs_subr.c | 4 | ||||
| -rw-r--r-- | sys/miscfs/procfs/procfs_subr.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_subr.c b/sys/fs/procfs/procfs_subr.c index a7bbfd716075..053a6206b2eb 100644 --- a/sys/fs/procfs/procfs_subr.c +++ b/sys/fs/procfs/procfs_subr.c @@ -163,7 +163,9 @@ loop: break; case Pfile: - pfs->pfs_mode = (VREAD|VEXEC); + pfs->pfs_mode = (VREAD|VEXEC) | + (VREAD|VEXEC) >> 3 | + (VREAD|VEXEC) >> 6; vp->v_type = VLNK; break; diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c index a7bbfd716075..053a6206b2eb 100644 --- a/sys/miscfs/procfs/procfs_subr.c +++ b/sys/miscfs/procfs/procfs_subr.c @@ -163,7 +163,9 @@ loop: break; case Pfile: - pfs->pfs_mode = (VREAD|VEXEC); + pfs->pfs_mode = (VREAD|VEXEC) | + (VREAD|VEXEC) >> 3 | + (VREAD|VEXEC) >> 6; vp->v_type = VLNK; break; |
