summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2009-07-19 12:56:20 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2009-07-19 12:56:20 +0000
commit46b6a514f4de53a5ae1a61be419d3e14534f3ab4 (patch)
tree2da28c5a6cd333d21d407764354fb6b68dac049a /sys/kern
parenta6eb7b3bc0342e3540566537ce60fa5d2fca5de4 (diff)
Hook up "text" (executable) output and implement for fuser too.
Man page bits adapted from FreeBSD. OK miod@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sysctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 313fb8402f0..86a14a2f8b1 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.175 2009/06/15 17:59:45 deraadt Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.176 2009/07/19 12:56:19 millert Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -1232,6 +1232,8 @@ sysctl_file2(int *name, u_int namelen, char *where, size_t *sizep,
continue;
}
fdp = pp->p_fd;
+ if (pp->p_textvp)
+ FILLIT(NULL, NULL, KERN_FILE_TEXT, pp->p_textvp, pp);
if (fdp->fd_cdir)
FILLIT(NULL, NULL, KERN_FILE_CDIR, fdp->fd_cdir, pp);
if (fdp->fd_rdir)