summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2000-10-05 23:19:51 +0000
committeralfred <alfred@FreeBSD.org>2000-10-05 23:19:51 +0000
commit1e98080e99e63fbbac211727737394dad816bb83 (patch)
tree9c8bab3251d4bb044e278b50f42092d27ababa78 /sys/fs
parent4766bec535d51e5c3b2a84c117b71b575bf2de80 (diff)
downloadFreeBSD-src-1e98080e99e63fbbac211727737394dad816bb83.zip
FreeBSD-src-1e98080e99e63fbbac211727737394dad816bb83.tar.gz
return correct type for process directory entries, DT_DIR not DT_REG
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/procfs/procfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c
index e771128..e37f3c2 100644
--- a/sys/fs/procfs/procfs_vnops.c
+++ b/sys/fs/procfs/procfs_vnops.c
@@ -860,7 +860,7 @@ procfs_readdir(ap)
dp->d_fileno = PROCFS_FILENO(p->p_pid, Pproc);
dp->d_namlen = sprintf(dp->d_name, "%ld",
(long)p->p_pid);
- dp->d_type = DT_REG;
+ dp->d_type = DT_DIR;
p = p->p_list.le_next;
break;
}
OpenPOWER on IntegriCloud