summaryrefslogtreecommitdiffstats
path: root/sys/fs/fdescfs
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-05-12 15:44:49 +0000
committerjilles <jilles@FreeBSD.org>2013-05-12 15:44:49 +0000
commit88b36000c5fb11d443ad96ab85bbdff8744da4e6 (patch)
treebb2882ee5dfda7f113e75ec41b9faf09974a3294 /sys/fs/fdescfs
parentb0d72f0d7ad6703e4a6d78b99590ac1fbcb716fb (diff)
downloadFreeBSD-src-88b36000c5fb11d443ad96ab85bbdff8744da4e6.zip
FreeBSD-src-88b36000c5fb11d443ad96ab85bbdff8744da4e6.tar.gz
fdescfs: Supply a real value for d_type in readdir.
All the fdescfs nodes (except . and ..) appear as character devices to stat(), so DT_CHR is correct.
Diffstat (limited to 'sys/fs/fdescfs')
-rw-r--r--sys/fs/fdescfs/fdesc_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c
index 7923fc6..e54c77e 100644
--- a/sys/fs/fdescfs/fdesc_vnops.c
+++ b/sys/fs/fdescfs/fdesc_vnops.c
@@ -538,7 +538,7 @@ fdesc_readdir(ap)
break;
dp->d_namlen = sprintf(dp->d_name, "%d", fcnt);
dp->d_reclen = UIO_MX;
- dp->d_type = DT_UNKNOWN;
+ dp->d_type = DT_CHR;
dp->d_fileno = i + FD_DESC;
break;
}
OpenPOWER on IntegriCloud